We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c966cf5 commit 914b65dCopy full SHA for 914b65d
1 file changed
src/main.cpp
@@ -95,9 +95,14 @@ int main(int argc,
95
w.setWindowFlags(Qt::WindowContextHelpButtonHint | Qt::WindowCloseButtonHint);
96
w.hide();
97
98
- if (!parser.isSet(tray))
+ if (!parser.isSet(tray))
99
{
100
- w.show();
+ /* Session manager: Prevent system from launching this app maximized on session restore (= system startup).
101
+ * Affects DEs with enabled session restore feature; is independent from the built-in autostart feature */
102
+ if(!qApp->isSessionRestored())
103
+ {
104
+ w.show();
105
+ }
106
}
107
108
QApplication::setQuitOnLastWindowClosed(true);
0 commit comments