File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -3,12 +3,13 @@ Type=Application
33
44Name =System Settings
55Comment =Change system and user settings
6- Categories =GNOME; GTK;System;
6+ Categories =GTK;System;
77Keywords =Center;Control;Panel;Preferences;System;
88
99Icon =io.elementary.settings
1010Exec =io.elementary.settings %u
1111DBusActivatable =true
12+ OnlyShowIn =Pantheon;
1213SingleMainWindow =true
1314StartupNotify =true
1415Terminal =false
Original file line number Diff line number Diff line change @@ -261,6 +261,11 @@ namespace Switchboard {
261261 }
262262
263263 public static int main (string [] args ) {
264+ if (GLib . Environment . get_variable (" XDG_CURRENT_DESKTOP" ) != " Pantheon" ) {
265+ critical (" System Settings can only be run in a Pantheon desktop session" );
266+ return 1 ;
267+ }
268+
264269 var app = new SwitchboardApp ();
265270 return app. run (args);
266271 }
You can’t perform that action at this time.
0 commit comments