cwhittier
July 20th, 2011, 07:53 PM
I need to disable all access to anything except my application that is set to launch on start-up. I have seen this referred to as kiosk setup. I have written a script to do this. I need to keep gnome-panel running, because it seems if I don't then USB drivers will not show up in the /media folder which my application relies on.
I am using these commands:
#delete bottom panel (can't delete both, or else they will reset)
gconftool -s -t list --list-type string /apps/panel/general/toplevel_id_list [top_panel_screen0]
#Hide Top Panel
gconftool --set -t bool /apps/panel/toplevels/top_panel_screen0/auto_hide true
gconftool --set -t int /apps/panel/toplevels/top_panel_screen0/unhide_delay 2147483646
gconftool --set -t int /apps/panel/toplevels/top_panel_screen0/auto_hide_size 0
#Turn Off Desktop
gconftool --set -t bool /apps/nautilus/preferences/show_desktop false
#Disable 2nd Desktop
gconftool --set -t int /apps/metacity/general/num_workspaces 1
I also have reset using the following code, to make sure I didn't fudge some setting while experimenting:
gconftool --recursive-unset /apps/panel
pkill gnome-panel
Can anyone tell me why it might not be working, or suggest a better way to eliminate all the panels without losing the automount to the /media folder?
P.S. I am running Ubuntu 9.04 - upgrading is not a possible solution in this instance.
I am using these commands:
#delete bottom panel (can't delete both, or else they will reset)
gconftool -s -t list --list-type string /apps/panel/general/toplevel_id_list [top_panel_screen0]
#Hide Top Panel
gconftool --set -t bool /apps/panel/toplevels/top_panel_screen0/auto_hide true
gconftool --set -t int /apps/panel/toplevels/top_panel_screen0/unhide_delay 2147483646
gconftool --set -t int /apps/panel/toplevels/top_panel_screen0/auto_hide_size 0
#Turn Off Desktop
gconftool --set -t bool /apps/nautilus/preferences/show_desktop false
#Disable 2nd Desktop
gconftool --set -t int /apps/metacity/general/num_workspaces 1
I also have reset using the following code, to make sure I didn't fudge some setting while experimenting:
gconftool --recursive-unset /apps/panel
pkill gnome-panel
Can anyone tell me why it might not be working, or suggest a better way to eliminate all the panels without losing the automount to the /media folder?
P.S. I am running Ubuntu 9.04 - upgrading is not a possible solution in this instance.