LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 02-18-2004, 04:58 PM   #1
quartertone
LQ Newbie
 
Registered: Jun 2003
Distribution: Gentoo (and Fedora Core 1, Fedora Core 2)
Posts: 26

Rep: Reputation: 15
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..
 
Old 02-18-2004, 05:19 PM   #2
Nis
Member
 
Registered: Jul 2003
Location: Virginia
Distribution: Ubuntu Hoary (5.04)
Posts: 550

Rep: Reputation: 31
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.
 
Old 02-18-2004, 05:24 PM   #3
quartertone
LQ Newbie
 
Registered: Jun 2003
Distribution: Gentoo (and Fedora Core 1, Fedora Core 2)
Posts: 26

Original Poster
Rep: Reputation: 15
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?
 
Old 02-18-2004, 05:32 PM   #4
Nis
Member
 
Registered: Jul 2003
Location: Virginia
Distribution: Ubuntu Hoary (5.04)
Posts: 550

Rep: Reputation: 31
Here's the source. I don't know where an RPM might be. I use Dropline and GConf comes default.
 
Old 02-18-2004, 06:05 PM   #5
quartertone
LQ Newbie
 
Registered: Jun 2003
Distribution: Gentoo (and Fedora Core 1, Fedora Core 2)
Posts: 26

Original Poster
Rep: Reputation: 15
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!

thanks
q
 
Old 02-18-2004, 06:40 PM   #6
Nis
Member
 
Registered: Jul 2003
Location: Virginia
Distribution: Ubuntu Hoary (5.04)
Posts: 550

Rep: Reputation: 31
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"/>
I think that might work.
 
Old 02-18-2004, 07:46 PM   #7
quartertone
LQ Newbie
 
Registered: Jun 2003
Distribution: Gentoo (and Fedora Core 1, Fedora Core 2)
Posts: 26

Original Poster
Rep: Reputation: 15
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
{{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?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
gnome-panel won't start after upgrade to GNOME 2.6 computergeek84 Debian 5 08-12-2007 01:37 PM
Gnome panel keeps crashing when starting gnome-session elluva Linux - Software 3 01-24-2006 04:26 PM
Gnome-panel, nautilus and gnome settings daemon Fail on Startup hitman_et Linux - General 0 04-01-2005 09:06 PM
After upgrading to Gnome 2.8, Gnome Panel doesn't work Xavius Linux - Software 0 12-27-2004 02:17 PM
gnome-panel crashes. Which file is responsible for the position of the panel? Satriani Linux - General 1 06-20-2003 06:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration