summaryrefslogtreecommitdiffstats
path: root/os-plugins/plugins/vmchooser
diff options
context:
space:
mode:
authorBastian Wissler2008-06-05 18:15:09 +0200
committerBastian Wissler2008-06-05 18:15:09 +0200
commitba4325b58104588c45f79682b71a9ce7ac0409a8 (patch)
tree00073ca6ad92997e1b03a96eb8bc48ffa7504b38 /os-plugins/plugins/vmchooser
parentUeberfluessiger Kommandozeilen-Parameter (diff)
downloadcore-ba4325b58104588c45f79682b71a9ce7ac0409a8.tar.gz
core-ba4325b58104588c45f79682b71a9ce7ac0409a8.tar.xz
core-ba4325b58104588c45f79682b71a9ce7ac0409a8.zip
/etc/X11/sessions/ is no longer supported in modern Linux Distributions ?!?
git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1847 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'os-plugins/plugins/vmchooser')
-rw-r--r--os-plugins/plugins/vmchooser/OpenSLX/OSPlugin/vmchooser.pm1
-rw-r--r--os-plugins/plugins/vmchooser/XX_vmchooser.sh12
-rw-r--r--os-plugins/plugins/vmchooser/files/default.desktop10
3 files changed, 11 insertions, 12 deletions
diff --git a/os-plugins/plugins/vmchooser/OpenSLX/OSPlugin/vmchooser.pm b/os-plugins/plugins/vmchooser/OpenSLX/OSPlugin/vmchooser.pm
index c889d60d..885f1110 100644
--- a/os-plugins/plugins/vmchooser/OpenSLX/OSPlugin/vmchooser.pm
+++ b/os-plugins/plugins/vmchooser/OpenSLX/OSPlugin/vmchooser.pm
@@ -79,6 +79,7 @@ sub installationPhase
copyFile("$pluginBasePath/$file", "$pluginRepoPath/");
chmod 0755, "$pluginRepoPath/$file";
}
+ copyFile("$pluginBasePath/default.desktop", "/usr/share/xsessions/");
return;
}
diff --git a/os-plugins/plugins/vmchooser/XX_vmchooser.sh b/os-plugins/plugins/vmchooser/XX_vmchooser.sh
index 27a7bf77..a1a81c86 100644
--- a/os-plugins/plugins/vmchooser/XX_vmchooser.sh
+++ b/os-plugins/plugins/vmchooser/XX_vmchooser.sh
@@ -5,18 +5,6 @@ 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=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=
- Type=Application' >> /mnt/etc/X11/sessions/default.desktop
-
[ $DEBUGLEVEL -gt 0 ] && echo "done with 'vmchooser' os-plugin ...";
fi
fi
diff --git a/os-plugins/plugins/vmchooser/files/default.desktop b/os-plugins/plugins/vmchooser/files/default.desktop
new file mode 100644
index 00000000..1bb8186a
--- /dev/null
+++ b/os-plugins/plugins/vmchooser/files/default.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Encoding=UTF-8
+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=
+Type=Application