Xbmc 9.11 beta1 - Default User Problem
#1
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:
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.
Reply
#2
point taken, noted for next release.
Reply
#3
FYI - This also causes other issues, such as inability to shutdown and sleep from xbmc, as I reported here:

http://forum.xbmc.org/showpost.php?p=444...stcount=94
Reply

Logout Mark Read Team Forum Stats Members Help
Xbmc 9.11 beta1 - Default User Problem0