Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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?
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!
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!
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
{{confirm_panel_remove now appears as key in gconf-editor, under apps->panel->global}}
$ grep -d recurse confirm_panel_remove ~/.g*
{{nothing}}
# cd /etc/
# grep -d recurse confirm_panel_remove *
gconf/gconf.xml.defaults/schemas/apps/panel/global/%gconf.xml: \ {{wrapped for length}}
<entry name="confirm_panel_remove" mtime="1077060517" \
muser="root" type="schema" stype="bool" owner="panel">
gconf/schemas/panel-global.schemas: <key>/schemas/apps/panel/global/confirm_panel_remove</key>
gconf/schemas/panel-global.schemas: <applyto>/apps/panel/global/confirm_panel_remove</applyto>
{{I don't think these are directly relevant}}
$ mv ~/.gconf/apps/panel/profiles/default/ ~/.gconf/apps/panel/profiles/defaultbackup
# killall gconfd-2; killall gnome-panel
{deletion of panel still no-confirm}
$ mv ~/.gnome2/panel2.d/panel2.d ~/.gnome2/panel2.d/panel2.dbackup
# killall gconfd-2; killall gnome-panel
{deletion of panel still no-confirm}
I noticed, when I had the generic panel after removing my customizations, that the delete menu item was disabled. That's what I want to do. Arrg..
Any ideas?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.