diff options
Diffstat (limited to 'os-plugins/plugins/vmchooser/XX_vmchooser.sh')
-rw-r--r-- | os-plugins/plugins/vmchooser/XX_vmchooser.sh | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/os-plugins/plugins/vmchooser/XX_vmchooser.sh b/os-plugins/plugins/vmchooser/XX_vmchooser.sh index 037a857c..fc446f2f 100644 --- a/os-plugins/plugins/vmchooser/XX_vmchooser.sh +++ b/os-plugins/plugins/vmchooser/XX_vmchooser.sh @@ -8,17 +8,25 @@ if [ -e $CONFFILE ]; then [ $DEBUGLEVEL -gt 0 ] && echo "creating default session entry ..."; echo '[Desktop Entry] Encoding=UTF-8 - Name=VMCHOOSER - Name[de]=VMCHOOSER + Name=virtual machine chooser (default) + Name[de]=Virtuelle Maschine auswählen Comment=This session starts the vm session chooser Comment[de]=Diese Sitzung startet das Auswahlmenü für die vorhandenen Sitzungen - Exec=/opt/openslx/plugin-repo/vmchooser/vmchooser - TryExec=/opt/openslx/plugin-repo/vmchooser/vmchooser - Icon= + Exec=/etc/X11/sessions/default.sh + TryExec=/etc/X11/sessions/default.sh + Icon= Type=Application' >> /mnt/etc/X11/sessions/default.desktop - - + + [ $DEBUGLEVEL -gt 0 ] && echo "creating wrapper script ..."; + echo '#!/bin/bash + # This script was created from XX_vmchooser.sh + # and is a wrapper script for the vmchooser program + /opt/openslx/plugin-repo/vmchooser/vmchooser -s /etc/X11/sessions/ + /etc/X11/sessions/session.sh & + ' >> /mnt/etc/X11/sessions/default.sh + chmod +x /mnt/etc/X11/sessions/default.sh + [ $DEBUGLEVEL -gt 0 ] && echo "done with 'vmchooser' os-plugin ..."; fi fi |