Locking the gnome panel?
Hi,
I'm trying to find out if there is a way to lock panels/menubars in GNOME, so that they are un-deletable (for alternate search: undeletable). I really hate that the "Delete this panel" option is directly between "Add to Panel" and "Properties". Seriously, whose twisted idea was that? I have, on more than one occasion, accidentally deleted my meticulously customized panel because my pointer (mouse/trackpad/whatever) slipped. I've searched Google and here for any possible hints, but "gnome panel lock" or other similar vairiations invariably results in something about the "Lock screen" button.. If i remember correctly (and I probably don't), there used to be a confirmation dialog if there existed any items in the panel. Now (I'm using Fedore Core 1) the panel gets deleted irrevocably without so much as a "see ya later". So anyway, what I'm wondering is if there is a configuration option inside one of the panel's config files that will set it to be un-deletable. I imagine this should be possible, since in a multi-user environment, it would (at the very least) suck if someone deleted a panel full of essentials. Thanks.. :study: |
Use the GConf editor. It's kinda like the Windows registry: it stores preferences for many GNOME apps. Under apps/panel there is a host of options. One in global is confirm_panel_remove. Just make sure that's set to true and then removing the panel is harder to do. :)
|
Thanks, Nis.
Where is the GConf editor? Does it have a corresponding (preferrably text-based) config file within the user's home directory (or elsewhere) that I can edit manually? |
Here's the source. I don't know where an RPM might be. I use Dropline and GConf comes default.
|
Ah. <bonk self on head> .. I should have looked before asking. There's a tool called "gconf-editor" in RH/Fedora. I was editing files earlier in the ~/.gconf/ directory, so i should have picked up on the name, but i didn't recognize it because of capitalization! :p
Funny what Linux will do to you.. Now the problem is that there doesn't seem to be an entry for confirm_panel_remove, so i added one in apps->panel->general. It didn't seem to have any effect, even after restarting gnome-panel (kill {pid of gnome-panel}). Well, I'll try to figure this out. If I get it right, I'll post my results here, but I'd appreciate any and all help! thanks q |
Alright, check your /etc/gconf/gconf.xml.defaults/apps/panel/global directory. In there is a file %gconf.xml. Make sure this line is in there
Code:
<entry name="confirm_panel_remove" mtime="1076991160" schema="/schemas/apps/panel/global/confirm_panel_remove"/> |
Thanks again!
Unfortunately, I didn't have a global subdirectory inside my /etc/gconf/gconf.xml.defaults/apps/panel/ . But a google search for "confirm_panel_remove" gave me just a handful of results, so I found what i needed pretty quickly. {later...} Ok, i thought it was what i wanted, but still no juice. Here's what I've done: Code:
# gconftool-2 -s /apps/panel/global/confirm_panel_remove -t bool true Any ideas? |
All times are GMT -5. The time now is 06:24 PM. |