Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to use gedit as a programming IDE and as a regular text editor. Would I be able to make some .desktop file to load a different configuration?

share|improve this question
up vote 5 down vote accepted

It doesn't seem to be supported right now, see this upstream bug report.

However, you could create a wrapper for gedit, that sets the specific plugins you want via gconftool-2.

This would look something like:

old_config=$(gconftool-2 --get "/apps/gedit-2/plugins/active-plugins")
gconftool-2 --set --type list --list-type string "/apps/gedit-2/plugins/active-plugins" "[$1]"
gconftool-2 --set --type list --list-type string "/apps/gedit-2/plugins/active-plugins" "$old_config"

Now save this somewhere as eg. gedit_profile and make it executable:

chmod +x  gedit_profile

To load different profiles, just call it with a comma-separated list of plugins you want to enable, for example:

/path/to/gedit_profile "terminal,colorpicker"

[Of course you then can put this into separate launchers.]

share|improve this answer
This works better for my needs: #!/bin/bash normalConfig= gconftool-2 -g "/apps/gedit-2/plugins/active-plugins" gconftool-2 -s --type list --list-type string "/apps/gedit-2/plugins/active-plugins" "[$1]" gedit gconftool-2 -s --type list --list-type string "/apps/gedit-2/plugins/active-plugins" "[$normalConfig]" – MetaDark Dec 6 '10 at 21:59
Yeah, that's the advanced version (hence the "something like" part in my answer :P). – htorque Dec 6 '10 at 22:03
Setting values via gconf works for other options too (eg. color scheme)... Because the new setting are effective immediately, just adding a couple of External Tools menu items (with optional shortcut keys) may suit (External Tools is a standard plugin)... I was interested in this because I like the idea of two instances of gedit with different colour settings, but I don't think that gedit allows concurrernt instances :( – Peter.O Dec 7 '10 at 7:39

Your Answer


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.