Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

For example, how to add a "Startup Applications Preferences" launcher to this Window?

System Settings window in 11.10

share|improve this question
    
have you tried the dconf-editor for access to the settings –  Ringtail Feb 26 '12 at 23:29
add comment

2 Answers

up vote 10 down vote accepted

Add custom App entries to System Settings

Custom Entries in 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

Edit desktop entries to show in System Settings

After the modifications run this command:

sudo update-desktop-database

This was tried and tested on Ubuntu 12.04 LTS with gnome-control-center version 3.4.2-0ubuntu0.12

Things to Note:

  1. 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.
  2. 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 vanilla gnome-control-center used by other distros.
share|improve this answer
    
Actually, having X-GNOME-Settings-Panel;X-GNOME-SystemSettings; in Categories and adding X-GNOME-Settings-Panel=sample is sufficient. –  nem75 Aug 24 '12 at 7:52
    
@nem75 that didn't work for me on Ubuntu 12.04, but the settings from lancer did –  realgt Oct 17 '12 at 12:44
    
the settings from lancer allowed me to add gnome-tweak-tool to my System Settings by modifying /usr/share/applications/gnome-tweak-tool.desktop –  realgt Oct 17 '12 at 13:19
    
If you want the launcher show up under Personal section, use X-GNOME-PersonalSettings instead of X-GNOME-SystemSettings. For Hardware section, use HardwareSettings (note that prefix X-GNOME is not used and doesn't even work. Some inconsistency here, don't you think?) –  Akseli Palén Jan 22 '13 at 15:00
add comment

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_.
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.