touch-packages team mailing list archive
-
touch-packages team
-
Mailing list archive
-
Message #08455
[Bug 1326814] Re: Should be smarter about detecting X use
[Expired for click-apparmor (Ubuntu) because there has been no activity
for 60 days.]
** Changed in: click-apparmor (Ubuntu)
Status: Incomplete => Expired
--
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to click-apparmor in Ubuntu.
https://bugs.launchpad.net/bugs/1326814
Title:
Should be smarter about detecting X use
Status in “click-apparmor” package in Ubuntu:
Expired
Bug description:
click-apparmor has the following code:
# Perhaps there is a better way to detect this, but for now, this works
if [ -d "/tmp/.X11-unix" ]; then
num_sockets=`ls -1 /tmp/.X11-unix | wc -l`
if [ "$num_sockets" != "0" ] && [ "$use_insecure_x" != "yes" ]; then
echo "Detected click app running under X! Aborting"
exit 1
fi
fi
But ofono-phonesim runs itself under xvfb. Which puts a socket like
:99 in /tmp/.X11-unix. So you can't have both ofono-phonesim
installed and use click apps.
We could maybe detect X by checking $XAUTHORITY instead. Or we could
look for Mir instead by seeing if $MIR_SOCKET is non-empty.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/click-apparmor/+bug/1326814/+subscriptions