Public bug reported:

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.

** Affects: click-apparmor (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1326814

Title:
  Should be smarter about detecting X use

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/click-apparmor/+bug/1326814/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to