summaryrefslogtreecommitdiffstats
path: root/os-plugins/plugins/vmchooser/XX_vmchooser.sh
blob: 037a857c8009f9a2d1a473ba217372c1594fc7c9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24

CONFFILE="/initramfs/plugin-conf/vmchooser.conf"

if [ -e $CONFFILE ]; then
	. $CONFFILE
	if [ $vmchooser_active -ne 0 ]; then
		[ $DEBUGLEVEL -gt 0 ] && echo "executing the 'vmchooser' os-plugin ...";
                [ $DEBUGLEVEL -gt 0 ] && echo "creating default session entry ...";
                echo '[Desktop Entry]
                Encoding=UTF-8
                Name=VMCHOOSER
                Name[de]=VMCHOOSER
                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=
                Type=Application' >> /mnt/etc/X11/sessions/default.desktop

                
		
		[ $DEBUGLEVEL -gt 0 ] && echo "done with 'vmchooser' os-plugin ...";
	fi
fi