We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 26302dd commit 938edb2Copy full SHA for 938edb2
VERSION
@@ -1 +1 @@
1
-beta-v0.2.4
+beta-v0.2.4+t02
src/ckb/main.cpp
@@ -208,7 +208,13 @@ int main(int argc, char *argv[]){
208
break;
209
}
210
211
- // Launch in background if requested
+#ifdef Q_OS_LINUX
212
+ // This isn't technically a command line option, but some WMs will add it when restoring a previous session.
213
+ // We don't want to activate the window when that happens.
214
+ if(qApp->arguments().contains("-session") || qApp->arguments().contains("--session"))
215
+ background = true;
216
+#endif
217
+
218
if(isRunning(background ? 0 : "Open")){
219
printf("ckb is already running. Exiting.\n");
220
return 0;
0 commit comments