Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 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 @@ -71,6 +71,11 @@ namespace Switchboard {
public override void startup () {
base.startup ();

if (GLib.Environment.get_variable ("XDG_CURRENT_DESKTOP") != "Pantheon") {
critical (_("System Settings can only be run in a Pantheon desktop session"));
quit ();
}

Granite.init ();

var granite_settings = Granite.Settings.get_default ();
Expand Down