Moreover, if using ssh shell I do:
$ MIR_SOCKET=/var/run/mir_socket ubuntu-app-launch 
com.ubuntu.calculator_calculator_2.2.322

then the app starts loading on the phone, the icon shows, and then it
closes down before the app UI kicks in. And that's it.

-- 
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

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to