Michael, the command fails because /run/user/0/dbus-session doesn't exist.
I also looks like I have a different version installed. I see 264 and 277 
(besides common) in /root/snap/unity8-session.

I adjusted your command to not set DBUS_SESSION_ADDRESS and explicitly
set LD_LIBRARY_PATH (without using snappyenv):

1_DEBUG=1 SNAP_USER_COMMON=/root/snap/unity8-session/common
SNAP_USER_DATA=/root/snap/unity8-session/277 SNAP_ARCH=amd64
HOME=/root/snap/unity8-session/277
LD_LIBRARY_PATH=/snap/unity8-session/current/usr/lib/x86_64-linux-gnu
/snap/unity8-session/current/usr/lib/x86_64-linux-gnu/unity-
scopes/scoperunner "" /snap/unity8-session/current/usr/lib/x86_64-linux-
gnu/unity-scopes/clickapps/clickscope.ini

This yields:

# U1_DEBUG=1 SNAP_USER_COMMON=/root/snap/unity8-session/common 
SNAP_USER_DATA=/root/snap/unity8-session/277 SNAP_ARCH=amd64 
HOME=/root/snap/unity8-session/277 
LD_LIBRARY_PATH=/snap/unity8-session/current/usr/lib/x86_64-linux-gnu 
/snap/unity8-session/current/usr/lib/x86_64-linux-gnu/unity-scopes/scoperunner 
"" 
/snap/unity8-session/current/usr/lib/x86_64-linux-gnu/unity-scopes/clickapps/clickscope.ini
 QSqlDatabase: QSQLITE driver not loaded
QSqlDatabase: available drivers: 
QSqlDatabase: an instance of QCoreApplication is required for loading driver 
plugins
Failed to open departments db: Cannot open departments database
[2016-12-09 05:56:44.991] ERROR: clickscope: unity::scopes::ConfigException: 
Cannot instantiate run time for clickscope, config file: :
    unity::scopes::MiddlewareException: cannot initialize zmq middleware for 
scope clickscope:
        unity::scopes::ConfigException: No endpoint directories specified, and 
XDG_RUNTIME_DIR environment variable not set
scoperunner: unity::scopes::ConfigException: Cannot instantiate run time for 
clickscope, config file: :
    unity::scopes::MiddlewareException: cannot initialize zmq middleware for 
scope clickscope:
        unity::scopes::ConfigException: No endpoint directories specified, and 
XDG_RUNTIME_DIR environment variable not set

Running this with snappyenv, I get:

# U1_DEBUG=1 SNAP_USER_COMMON=/root/snap/unity8-session/common 
SNAP_USER_DATA=/root/snap/unity8-session/277 SNAP_ARCH=amd64 
HOME=/root/snap/unity8-session/277 /snap/unity8-session/current/snappyenv 
/snap/unity8-session/current/usr/lib/x86_64-linux-gnu/unity-scopes/scoperunner 
"" 
/snap/unity8-session/current/usr/lib/x86_64-linux-gnu/unity-scopes/clickapps/clickscope.ini
 ERROR: ld.so: object '/lib/libsnap-preload-shim.so' from LD_PRELOAD cannot be 
preloaded (cannot open shared object file): ignored.
mkdir: cannot create directory ‘/lightdm-data’: Read-only file system
/snap/unity8-session/current/snappyenv: 113: exec: /bin/desktop-launch: not 
found

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to unity-scopes-api in
Ubuntu.
https://bugs.launchpad.net/bugs/1645798

Title:
  No snaps appear in scope on Core 16

Status in Canonical System Image:
  Confirmed
Status in Unity8 Session Snap:
  Confirmed
Status in unity-api package in Ubuntu:
  Invalid
Status in unity-scope-click package in Ubuntu:
  New
Status in unity-scopes-api package in Ubuntu:
  In Progress

Bug description:
  No snaps appear in scope on Core 16 whereas they do appear in unity8
  snap on classic

To manage notifications about this bug go to:
https://bugs.launchpad.net/canonical-devices-system-image/+bug/1645798/+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