2009-11-25, 05:42
Just updated to beta 1 and all my configuration, themes, sources were gone to my surprise.
Little poking around I found that xbmc was now starting as a different user. It was no longer starting as xbmc where it would have found all my settings and themes.
In /usr/bin/runXBMC, it will attempt to detect the user by:
This assumes the intended user has an id of 1000, where as my xbmc user id is actually 1001.
Would it be possible to see this updated to allow us to override this through a configuration file? Or even better yet, if the xbmc user exists use that, otherwise fall back to the user with id=1000.
Perhaps something like this
Thanks.
Little poking around I found that xbmc was now starting as a different user. It was no longer starting as xbmc where it would have found all my settings and themes.
In /usr/bin/runXBMC, it will attempt to detect the user by:
xbmcUser=$(getent passwd 1000 | sed -e 's/\:.*//')
This assumes the intended user has an id of 1000, where as my xbmc user id is actually 1001.
Would it be possible to see this updated to allow us to override this through a configuration file? Or even better yet, if the xbmc user exists use that, otherwise fall back to the user with id=1000.
Perhaps something like this
Code:
if [ "$(whoami)" == "root" ] ; then
x=`getent passwd xbmc`
if [ "$x" == "" ]; then
xbmcUser=$(getent passwd 1000 | sed -e 's/\:.*//')
if [ -z "$xbmcUser" ]; then
echo "User for XBMC not found, exiting..."
break
fi
else
xbmcUser="xbmc"
fi
else
xbmcUser=$(whoami)
fi
Thanks.