Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use uxlaunch to start XBMC

  • Loading branch information...
commit 989cbed163321a38759ef19040436386de7e385c 1 parent cf49ecf
@lcapriotti lcapriotti authored
View
5 SDK/buildLive/Files/binary_local-includes/install/Hooks/setup_uxlaunch.sh
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+xbmcUser=$(getent passwd 1000 | sed -e 's/\:.*//')
+
+sed -i "s/^user=.*/user=$xbmcUser/" /etc/uxlaunch/uxlaunch
View
31 SDK/buildLive/Files/chroot_local-hooks/20-uxlaunchConfig
@@ -0,0 +1,31 @@
+#!/bin/bash
+
+# Copyright (C) 2005-2008 Team XBMC
+# http://www.xbmc.org
+#
+# This Program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# This Program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with XBMC; see the file COPYING. If not, write to
+# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
+# http://www.gnu.org/copyleft/gpl.html
+
+echo ""
+echo "Configure uxlaunch..."
+echo ""
+
+sed -i '/^user=*/ s/^/#/' /etc/uxlaunch/uxlaunch
+sed -i '/^tty=*/ s/^/#/' /etc/uxlaunch/uxlaunch
+sed -i '/^session=*/ s/^/#/' /etc/uxlaunch/uxlaunch
+
+echo 'user=xbmc' >> /etc/uxlaunch/uxlaunch
+echo 'tty=8' >> /etc/uxlaunch/uxlaunch
+echo 'session=/usr/bin/xbmc-standalone' >> /etc/uxlaunch/uxlaunch
View
2  SDK/buildLive/Files/chroot_local-packageslists/packages.list
@@ -6,7 +6,7 @@ acpi acpi-support
alsa-utils hal lirc pm-utils psmisc
fakeroot
grub-pc
-xorg xinit fluxbox
+xorg xinit fluxbox uxlaunch
mesa-utils libgl1-mesa-dri xlibmesa-glu
genext2fs
cpufrequtils
Please sign in to comment.
Something went wrong with that request. Please try again.