Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion data/settings.desktop.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@ Type=Application

Name=System Settings
Comment=Change system and user settings
Categories=GNOME;GTK;System;
Categories=GTK;System;
Keywords=Center;Control;Panel;Preferences;System;

Icon=io.elementary.settings
Exec=io.elementary.settings %u
DBusActivatable=true
OnlyShowIn=Pantheon;
SingleMainWindow=true
StartupNotify=true
Terminal=false
Expand Down
5 changes: 5 additions & 0 deletions src/Application.vala
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,11 @@ namespace Switchboard {
}

public static int main (string[] args) {
if (GLib.Environment.get_variable ("XDG_CURRENT_DESKTOP") != "Pantheon") {
critical ("System Settings can only be run in a Pantheon desktop session");
return 1;
}

var app = new SwitchboardApp ();
return app.run (args);
}
Expand Down