I am not a programmer but I have managed to modify /usr/local/jwm_config/pdesktop
It is just a gui menu
My question is how do I get it to clean up after it exits?
I need to add rm /$HOME/.jwm/tmp/*
Code: Select all
#!/bin/sh
export TEXTDOMAIN=puppy
[ ! -d "$HOME/.jwm/tmp" ] && mkdir -p "$HOME/.jwm/tmp"
# <togglebutton image-position="2">
# <label>'$(gettext 'Applets')'</label>
# '"`/usr/lib/gtkdialog/xml_button-icon clock.svg huge`"'
# <sensitive>false</sensitive>
# <action>if true show:VBOX_APPLETS</action>
# <action>if false hide:VBOX_APPLETS</action>
# </togglebutton>
# Icon location /usr/share/pixmaps/puppy/
echo '
<window title="'$(gettext 'Puppy Desktop')'" icon-name="gtk-preferences" default_width="500">
<vbox space-expand="true" space-fill="true">
'"`/usr/lib/gtkdialog/xml_info fixed windows.svg 60 "$(gettext 'Please choose from the options below which aspect of the desktop you would like to change.')"`"'
<vbox space-expand="true" space-fill="true">
<frame>
<hbox spacing="10" homogeneous="true" space-expand="true" space-fill="true">
<button image-position="2" tooltip-text="'$(gettext 'Manage Trays posistion, apps, Desktops and clock')'">
<label>'$(gettext 'Tray')'</label>
'"`/usr/lib/gtkdialog/xml_button-icon desktop_tray.svg huge`"'
<action> ./tray &</action>
</button>
<button image-position="2" tooltip-text="'$(gettext 'Decoration of menu, tray and window borders')'">
<label>'$(gettext 'Windows')'</label>
'"`/usr/lib/gtkdialog/xml_button-icon windows.svg huge`"'
<action> ./window &</action>
</button>
<button image-position="2" tooltip-text="'$(gettext 'Add and remove menu items')'">
<label>'$(gettext 'Menu')'</label>
'"`/usr/lib/gtkdialog/xml_button-icon menu.svg huge`"'
<action> menumanager &</action>
</button>
<button image-position="2" tooltip-text="'$(gettext 'Define keyboard and mouse shortcut')'">
<label>'$(gettext 'Shortcuts')'</label>
'"`/usr/lib/gtkdialog/xml_button-icon mouse_keyboard_shortcut.svg huge`"'
<action> ./shortcuts &</action>
</button>
</hbox>
<hbox spacing="10" homogeneous="true" space-expand="true" space-fill="true">
<button image-position="2" tooltip-text="'$(gettext 'Select screen background image')'">
<label>'$(gettext 'Wallpaper')'</label>
'"`/usr/lib/gtkdialog/xml_button-icon wallpaper.svg huge`"'
<action> /usr/local/apps/Wallpaper/AppRun &</action>
</button>
<button image-position="2" tooltip-text="'$(gettext 'Select icon theme for desktop and menu')'">
<label>'$(gettext 'Icons')'</label>
'"`/usr/lib/gtkdialog/xml_button-icon puppy_theme.svg huge`"'
<action> ./icon_switcher &</action>
</button>
<button image-position="2" tooltip-text="'$(gettext 'Set Font size and appearance')'">
<label>'$(gettext 'Font')'</label>
'"`/usr/lib/gtkdialog/xml_button-icon font.svg huge`"'
<action> fontmanager &</action>
</button>
<button image-position="2" tooltip-text="'$(gettext 'Select mouse and touchpad cursor')'">
<label>'$(gettext 'Mouse')'</label>
'"`/usr/lib/gtkdialog/xml_button-icon mouse_cursor.svg huge`"'
<action> pcur &</action>
</button>
</hbox>
<hbox spacing="10" space-expand="true" space-fill="true">
<button image-position="2" tooltip-text="'$(gettext 'Define actions when mouse-pointer is moved to the corner')'">
<label>'$(gettext 'Corner actions')'</label>
'"`/usr/lib/gtkdialog/xml_button-icon placement_corners.svg huge`"'
<action> ./corner &</action>
</button>
<button image-position="2" tooltip-text="'$(gettext 'Set screensaver delay')'">
<label>'$(gettext 'Screen Saver')'</label>
'"`/usr/lib/gtkdialog/xml_button-icon graphics.svg huge`"'
<action> pupx &</action>
</button>
<button image-position="2" tooltip-text="'$(gettext 'Appearance of items inside windows')'">
<label>'$(gettext 'gtk Theme')'</label>
'"`/usr/lib/gtkdialog/xml_button-icon windows_theme.svg huge`"'
<action> ptheme_gtk &</action>
</button>
</hbox>
</frame>
</vbox>
<vbox visible="true">
<frame '$(gettext 'Desktop icons')'>
<hbox space-expand="true" space-fill="true">
<button tooltip-text="'$(gettext 'Drag an application icon to the desktop to add it there')'">
<label>" '$(gettext 'Add app')' "</label>
'"`/usr/lib/gtkdialog/xml_button-icon add.svg big`"'
<action>rox /usr/share/applications &</action>
</button>
<button tooltip-text="'$(gettext 'Manage which drive icons will appear on the desktop and in what position')'">
<label>" '$(gettext 'Drives')' "</label>
'"`/usr/lib/gtkdialog/xml_button-icon harddisk.svg big`"'
<action>eventmanager desktop &</action>
</button>
</hbox>
</frame>
<variable>VBOX_ICONS</variable>
</vbox>
<hbox space-expand="false" space-fill="false">
<button space-expand="false" space-fill="false">
<label>'$(gettext 'Quit')'</label>
'"`/usr/lib/gtkdialog/xml_button-icon quit`"'
<action>EXIT:ok</action>
</button>
</hbox>
</vbox>
</window>' >> $HOME/.jwm/tmp/pdesktop_xml
. /usr/lib/gtkdialog/xml_info gtk #build bg_pixmap for gtk-theme
gtkdialog -f $HOME/.jwm/tmp/pdesktop_xml --styles=/tmp/gtkrc_xml_info.css