Is it possible to add custom items to System Settings window?
Add custom App entries to System Settings
To add a custom app to System Settings (Gnome Control Center), find its desktop entry file - /usr/share/applications/{appname}.desktop
and edit it to ensure that the following entries are present:
Categories=Settings;X-GNOME-Settings-Panel;xxxxx;
X-GNOME-Settings-Panel={appname}
Replace {appname}
with the name of the App you're adding to System Settings.
xxxxx
decides the Section where your app is displayed. Replace xxxxx
with one of these possible options:
X-GNOME-PersonalSettings - Personal Section
HardwareSettings - Hardware Section (Note that prefix X-GNOME is not used)
X-GNOME-SystemSettings - System Section
After the modifications run this command:
sudo update-desktop-database
This was tried and tested on Ubuntu 12.04 LTS12.04 with gnome-control-center version 3.4.2-0ubuntu0.12
Things to Note:
- System Settings don't recognise desktop files in
~/.local/share/applications
and as a result,it's not possible to add Apps to System Settings for one user alone. - As noted by Manish Sinha in this Answer, Ubuntu uses a
gnome-control-center
with Ubuntu specific patches which enables the addition of custom entries. As a result,this method is Ubuntu specific and won't work on vanillagnome-control-center
used by other distros.
11.10
Right now adding custom items to System Settings is not support upstream from GNOME
Ubuntu patches System Settings gnome-control-center
so that it can include it's own ubuntu specific entries in it.
Long story short, you need to install libgnome-control-center-dev
and create a wrapper around your application which is built against gnome-control-center package using libgnome-control-center-dev
for pkg-config
Right now there is no GUI method to add it. You need to do it programmatically using C and it would work only on Ubuntu.
The reasoning for not allowing third party entries (called panels) is detailed by David Zeuthen
> Thu, May 12, 2011 at 4:39 PM, Sergey Udaltsov wrote:
> My whole point was that in the ideal world GNOME could be extensible
> enough so that no _forking_ would be necessary. Extension modules, not
> patches. That would be not a side effect of the license but the
> fundamental feature of the architecture. Do you see the difference?
Yes. I also think we tried that with GNOME 2 and failed. I mean, look
at GNOME 2's control center - on all distros, it's a royal mess of
random crap from either GNOME, the distro or 3rd party app written by
a kid in a basement. With GNOME 3.2, we will have a simpler control
center (since the extension mechanism is going away) but it will be
_awesome_.
Update of answer from @lancer for Ubuntu 14.04 lts:
It may come from the fork of gnome-system-settings from the ubuntu team as I could read on some blog post somewhere ( can't recall where .. :/ )
anyway, the following 2 lines shows the differences, & a more thorough example follows
X-Unity-Settings-Panel={appname}
Categories=GNOME;GTK;Settings;X-Unity-Settings-Panel;xxxx;
ex:
[Desktop Entry]
Encoding=UTF-8
Type=Application
Name=TefApp
Name[C]=TefApp
Exec=/home/stephaneag/Documents/ubuntu_CustomSystemSettingsEntryApp/dummyScript.sh
Comment[C]=dumb dummy app
StartupNotify=true
Icon=utilities-terminal
Terminal=false
NoDisplay=false
# the following is necessary for the .desktop to be accepted in System Settings
# for our stuff to appear in "System" section:
#Categories=GNOME;GTK;Settings;X-Unity-Settings-Panel;X-GNOME-SystemSettings;
# for our stuff to appear in "Hardware" section:
#Categories=GNOME;GTK;Settings;X-Unity-Settings-Panel;HardwareSettings;
# for our stuff to appear in the "Personal" section:
Categories=GNOME;GTK;Settings;X-Unity-Settings-Panel;X-GNOME-PersonalSettings;
OnlyShowIn=Unity;