If you write about sudo systemctl start snap.mir-kiosk.mir-kiosk.service
So I started it, as I wrote before I see a black screen and the mouse cursor.
Now I try to rebuild the snap package with qtubuntu-desktop in stage-package.
Similarly, I tried to start the application, this is the output of the information I received:
QT_QPA_PLATFORM=ubuntumirclient bsp095project.BSP095launcherCoreSimulation
Starting CORE …
This application failed to start because it could not find or load the Qt platform plugin “ubuntumirclient”.
Available platform plugins are: linuxfb (from /snap/bsp095project/x1/QT/5.5/gcc_64/plugins/platforms), minimal (from /snap/bsp095project/x1/QT/5.5/gcc_64/plugins/platforms), offscreen (from /snap/bsp095project/x1/QT/5.5/gcc_64/plugins/platforms), xcb (from /snap/bsp095project/x1/QT/5.5/gcc_64/plugins/platforms), linuxfb, minimal, offscreen, xcb.
Reinstalling the application may fix this problem.
/snap/bsp095project/x1/bin/start_CORE_simulation.sh: line 13: 2287 Aborted $SNAP/bin/./CORE -D "$HOME" -T "$HOME" -S "${1:-${RANDOM}}"
I build a snap package with a qtubuntu-desktop on a clean Ubuntu 16.04.2.
On Ubuntu-core I get the same error again:
QT_QPA_PLATFORM=ubuntumirclient bsp095project.BSP095launcherCoreSimulation
Starting CORE ...
This application failed to start because it could not find or load the Qt platform plugin "ubuntumirclient".
Available platform plugins are: linuxfb (from /snap/bsp095project/x1/QT/5.5/gcc_64/plugins/platforms), minimal (from /snap/bsp095project/x1/QT/5.5/gcc_64/plugins/platforms), offscreen (from /snap/bsp095project/x1/QT/5.5/gcc_64/plugins/platforms), xcb (from /snap/bsp095project/x1/QT/5.5/gcc_64/plugins/platforms), linuxfb, minimal, offscreen, xcb.
So it does not work. But on your advice I added this package qtubuntu-desktop to the snapcraft.yaml.
Please look, maybe something else in scripts I did not write?
I found an error with the problem of finding the module ubuntumirclient.
I added paths to search the module that goes in the Qt, but I removed the path for the modules that are going on in the system.
Tell me please, how can I determine the cause of the error in the application at startup?
Starting GUI application ...
Loading module: 'libubuntu_application_api_desktop_mirclient.so.3.0.0'
query.exec() failed: "no such table: patients Unable to execute statement"
SQL: "SELECT name, surname, last_visit_date, patient_id FROM patients ORDER BY surname"
/snap/bsp095project/x1/bin/start_GUI.sh: line 12: 12610 Segmentation fault $SNAP/bin/./BTL095 $(cat "$SNAP_USER_DATA/PrimaryKey") $(cat "$SNAP_USER_DATA/SecondaryKey")
As I wrote above, with the Mir libraries and the module everything is now normal, it remains to understand why the application falls with an error “Segmentation fault”.
As I wrote before, on Ubuntu desktop application is launched.
bsp095project.BSP095launcherGui
cat: /home/sektorct/snap/bsp095project/x1/PrimaryKey: No such file or directory
cat: /home/sektorct/snap/bsp095project/x1/SecondaryKey: No such file or directory
Loading module: 'libubuntu_application_api_desktop_mirclient.so.3.0.0'
Segmentation fault
snappy-debug is simply making suggestions based on rules it knows about. The /usr/share/applications/ rule is in unity7, so it suggested it. It should be made to understand the system it is running on and not suggest interfaces that are not available on the system, at least for classic vs core.
As for the /run/user/0 denial, this is happening because nothing is creating this directory. Normally this directory is created as part of session startup, but for a root daemon there is no session. There was a PR for this, but it was removed. @zyga-snapd, I think we should rethink this and just be very simple: if /run/user doesn’t exist, do nothing, otherwise create /run/user/$uid with 0700 permissions.
I would gladly launch a demon from a normal user, but as it turns out this is not quite a trivial idea.
A normal user does not have use to /dev/ttyUSB0
And also does not belong to the group dialout, and I can not add him to group without magic)))