aboutsummaryrefslogtreecommitdiff
path: root/tools/Linux
diff options
context:
space:
mode:
authortopfs2 <topfs2@svn>2009-12-07 06:40:43 +0000
committertopfs2 <topfs2@svn>2009-12-07 06:40:43 +0000
commita30ed03c3806963a73b3b2c77049c9c877a94a69 (patch)
tree4f3247a2cf84bef98b80bde08bab51c3ea315b35 /tools/Linux
parentd270162b3f82148899c29c43e1fa88882f3d935d (diff)
[Fixed] xbmc xsession needs to try and start pulseaudio if this is installed on the computer, thxkitlaan and Stager
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@25389 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
Diffstat (limited to 'tools/Linux')
-rwxr-xr-xtools/Linux/xbmc-standalone.sh7
-rw-r--r--tools/Linux/xbmc-xsession.desktop5
2 files changed, 8 insertions, 4 deletions
diff --git a/tools/Linux/xbmc-standalone.sh b/tools/Linux/xbmc-standalone.sh
index 04d90bd9af..146b3e0ba2 100755
--- a/tools/Linux/xbmc-standalone.sh
+++ b/tools/Linux/xbmc-standalone.sh
@@ -1,3 +1,6 @@
#!/bin/sh
-xbmc --standalone "$@"
-
+if which pulse-session; then
+ pulse-session xbmc --standalone "$@"
+else
+ xbmc --standalone "$@"
+fi
diff --git a/tools/Linux/xbmc-xsession.desktop b/tools/Linux/xbmc-xsession.desktop
index 3e5bd49a3f..6455dfeaa8 100644
--- a/tools/Linux/xbmc-xsession.desktop
+++ b/tools/Linux/xbmc-xsession.desktop
@@ -1,5 +1,6 @@
[Desktop Entry]
-Type=XSession
+Name=XBMC
+Comment=This session will start XBMC Media Center
Exec=xbmc-standalone
TryExec=xbmc-standalone
-Name=XBMC
+Type=Application