Qt app with no-system-libraries and without

Trying to solve the old problem with the launch of the application Qt version 5.11
my snapcraft

name: managetime
version: "0.1.0"
summary: timer
description: |
    Application for time management
confinement: strict
architectures: [amd64]

apps:
    managetime:
        command: bin/ProjectTimer
        plugs: [home, unity7, x11, opengl, pulseaudio, wayland]
        environment:
            XDG_RUNTIME_DIR: /run/user/1000
            __EGL_VENDOR_LIBRARY_DIRS: $SNAP/etc/glvnd/egl_vendor.d:$SNAP/usr/share/glvnd/egl_vendor.d
            # XKB config
            XKB_CONFIG_ROOT: $SNAP/usr/share/X11/xkb
            # Qt Platform to Wayland
            #QT_QPA_PLATFORM: wayland
            QT_QPA_PLATFORM: xcb
            QTCHOOSER_NO_GLOBAL_DIR: 1
            QT_SELECT: snappy-qt5
            # Qt Modules
            LD_LIBRARY_PATH: $SNAP/Qt/5.11.0/gcc_64/lib:$LD_LIBRARY_PATH
            QT_PLUGIN_PATH: $SNAP/Qt/5.11.0/gcc_64/plugins
            QML2_IMPORT_PATH: $QML2_IMPORT_PATH:$SNAP/Qt/5.11.0/gcc_64/qml
            QT_QPA_PLATFORM_PLUGIN_PATH: $SNAP/Qt/5.11.0/gcc_64/plugins/platforms/
            # XDG Config
            XDG_CONFIG_DIRS: $SNAP/etc/xdg:$SNAP/usr/xdg:$XDG_CONFIG_DIRS
            XDG_DATA_DIRS: $SNAP/usr/share:$XDG_DATA_DIRS
            # Font Config and themes
            FONTCONFIG_PATH: $SNAP/etc/fonts/conf.d
            FONTCONFIG_FILE: $SNAP/etc/fonts/fonts.conf
            # Tell libGL where to find the drivers
            LIBGL_DRIVERS_PATH: $SNAP/usr/lib/$ARCH/dri          
parts:
    managetime:
        plugin: dump
        source: scripts
        source-type: local
        build-attributes: 
            - keep-execstack
            #- no-system-libraries

    integration:
        plugin: nil
        stage-packages:
            - libc-bin
            - libc6
            - libclutter-1.0-0
            - libxkbcommon0
            - libx11-xcb1
            - ttf-ubuntu-font-family
            - dmz-cursor-theme
            - libglib2.0-0
            - light-themes
            - shared-mime-info
            - libgdk-pixbuf2.0-0
            - libsqlite0
            - libsqlite3-0
            - libgl1-mesa-dev

If I do not use no-system-libraries, then when I try to start the application, I see an error message
Cannot mix incompatible Qt library (version 0x50b01) with this library (version 0x50b00)

This is because the snap package collects the Qt libraries from the system.
In fact, they are not needed, since I am already copying those that will be needed.

If I use no-system-libraries I see error

qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/snap/managetime/x1/Qt/5.11.0/gcc_64/plugins/platforms/" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs (from /snap/managetime/x1/Qt/5.11.0/gcc_64/plugins/platforms/), linuxfb (from /snap/managetime/x1/Qt/5.11.0/gcc_64/plugins/platforms/), minimal (from /snap/managetime/x1/Qt/5.11.0/gcc_64/plugins/platforms/), minimalegl (from /snap/managetime/x1/Qt/5.11.0/gcc_64/plugins/platforms/), offscreen (from /snap/managetime/x1/Qt/5.11.0/gcc_64/plugins/platforms/), vnc (from /snap/managetime/x1/Qt/5.11.0/gcc_64/plugins/platforms/), wayland-egl (from /snap/managetime/x1/Qt/5.11.0/gcc_64/plugins/platforms/), wayland (from /snap/managetime/x1/Qt/5.11.0/gcc_64/plugins/platforms/), wayland-xcomposite-egl (from /snap/managetime/x1/Qt/5.11.0/gcc_64/plugins/platforms/), wayland-xcomposite-glx (from /snap/managetime/x1/Qt/5.11.0/gcc_64/plugins/platforms/), webgl (from /snap/managetime/x1/Qt/5.11.0/gcc_64/plugins/platforms/), xcb (from /snap/managetime/x1/Qt/5.11.0/gcc_64/plugins/platforms/), eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, webgl, xcb.

Tell me plz how to do solve these errors? And what is the best way to do it?
Thx.

1 Like

For an application with a graphical user interface, you should also assert the desktop and desktop-legacy interface plugs as well.

Try run:

$ snap run --shell managetime
$ eval "$(head --lines=-1 $SNAP/command-managetime.wrapper)"
$ ldd "$SNAP"/Qt/5.11.0/gcc_64/plugins/platforms/libqxcb.so

and check for any ā€œnot foundā€ libraries in the output.

linux-vdso.so.1 =>  (0x00007ffd2391f000)
        libQt5XcbQpa.so.5 => not found
        libgthread-2.0.so.0 => /snap/managetime/x1/usr/lib/x86_64-linux-gnu/libgthread-2.0.so.0 (0x00007f82c5a07000)
        libglib-2.0.so.0 => /snap/managetime/x1/lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007f82c56ed000)
        libfontconfig.so.1 => /snap/managetime/x1/usr/lib/x86_64-linux-gnu/libfontconfig.so.1 (0x00007f82c54a8000)
        libfreetype.so.6 => /snap/managetime/x1/usr/lib/x86_64-linux-gnu/libfreetype.so.6 (0x00007f82c51fb000)
        libQt5Gui.so.5 => /snap/managetime/x1/Qt/5.11.0/gcc_64/lib/libQt5Gui.so.5 (0x00007f82c4a02000)
        libQt5DBus.so.5 => not found

Everything else finds

There are depending library missing, thatā€™s why the plugin canā€™t be loaded, check your Qt installation and LD_LIBRARY_PATH

This is interesting, because based on this description of the problem https://stackoverflow.com/questions/42575571/qt-5-5-1-cannot-find-libqt5xcbqpa-so-5

I need libqxcb.so but I have in Qt/5.11.0/gcc_64/plugins/platforms/libqxcb.so How can it be?

You did have the library, however, it is a shared library which depends on other shared libraries you havenā€™t included in the snap.

One possible cause is your Qt installation is incomplete, according to Ubuntu Package Search libQt5XcbQpa.so.5 is provided by the libQt5GUI library, please ensure that it is properly built in your Qt installation.

It seems I know what the problem is) in /libraries I just do not have enough 2 libraries
libQt5XcmQpa and libQt5DBus
I thought that in my qt libraries there remained exactly those that are required for the application, but then I made a mistake.

@Lin-Buo-Ren
At the moment I added all the libraries Qt.
When the application starts, the window itself appears, and such errors fall out to the console.
I do not quite understand what the problem is with the driver for the graphics card.

libGL error: unable to load driver: radeonsi_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: radeonsi
libGL error: unable to load driver: radeonsi_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: radeonsi
libGL error: unable to load driver: swrast_dri.so
libGL error: failed to load driver: swrast
Unrecognized OpenGL version
Unrecognized OpenGL version
QGLXContext: Failed to create dummy context
Could not create AF_NETLINK socket (Operation not permitted)
propsReply "An AppArmor policy prevents this sender from sending this message to this recipient; type=\"method_call\", sender=\":1.57\" (uid=1000 pid=17651 comm=\"/snap/managetime/x1/bin/ProjectTimer \") interface=\"org.freedesktop.DBus.Properties\" member=\"GetAll\" error name=\"(unset)\" requested_reply=\"0\" destination=\"org.freedesktop.NetworkManager\" (uid=0 pid=1154 comm=\"/usr/sbin/NetworkManager --no-daemon \")"
nmReply "An AppArmor policy prevents this sender from sending this message to this recipient; type=\"method_call\", sender=\":1.57\" (uid=1000 pid=17651 comm=\"/snap/managetime/x1/bin/ProjectTimer \") interface=\"org.freedesktop.NetworkManager\" member=\"GetDevices\" error name=\"(unset)\" requested_reply=\"0\" destination=\"org.freedesktop.NetworkManager\" (uid=0 pid=1154 comm=\"/usr/sbin/NetworkManager --no-daemon \")"
"Object path cannot be empty"
Could not create AF_NETLINK socket (Operation not permitted)
Could not create AF_NETLINK socket (Operation not permitted)
Could not create AF_NETLINK socket (Operation not permitted)
Could not create AF_NETLINK socket (Operation not permitted)

The snap lacks some stage-packages, stage libgl1-mesa-dri for that.

The application tries to connect to the network, connect the network interface.

@Lin-Buo-Ren
Now I have in snapcraft.yaml

apps:
    managetime:
        command: bin/ProjectTimer
        plugs: [home, unity7, x11, opengl, pulseaudio, wayland, network]
        environment:
            XDG_RUNTIME_DIR: /run/user/1000
            __EGL_VENDOR_LIBRARY_DIRS: $SNAP/etc/glvnd/egl_vendor.d:$SNAP/usr/share/glvnd/egl_vendor.d
            # XKB config
            XKB_CONFIG_ROOT: $SNAP/usr/share/X11/xkb
            # Qt Platform to Wayland
            #QT_QPA_PLATFORM: wayland
            QT_QPA_PLATFORM: xcb
            #QT_QPA_PLATFORM_PLUGIN_PATH: ${SNAP}/usr/lib/${SNAPCRAFT_ARCH_TRIPLES}/qt5/plugins/platforms
            QTCHOOSER_NO_GLOBAL_DIR: 1
            QT_SELECT: snappy-qt5
            # Qt Modules
            LD_LIBRARY_PATH: $SNAP/Qt/5.11.0/gcc_64/lib:$LD_LIBRARY_PATH
            QT_PLUGIN_PATH: $SNAP/Qt/5.11.0/gcc_64/plugins
            QML2_IMPORT_PATH: $QML2_IMPORT_PATH:$SNAP/Qt/5.11.0/gcc_64/qml
            QT_QPA_PLATFORM_PLUGIN_PATH: $SNAP/Qt/5.11.0/gcc_64/plugins/platforms/
            # XDG Config
            XDG_CONFIG_DIRS: $SNAP/etc/xdg:$SNAP/usr/xdg:$XDG_CONFIG_DIRS
            XDG_DATA_DIRS: $SNAP/usr/share:$XDG_DATA_DIRS
            # Font Config and themes
            FONTCONFIG_PATH: $SNAP/etc/fonts/conf.d
            FONTCONFIG_FILE: $SNAP/etc/fonts/fonts.conf
            # Tell libGL where to find the drivers
            LIBGL_DRIVERS_PATH: $SNAP/usr/lib/$ARCH/dri          
parts:
    managetime:
        plugin: dump
        source: scripts
        source-type: local
        build-attributes: 
            - keep-execstack
            - no-system-libraries

    integration:
        plugin: nil
        stage-packages:
            - libc-bin
            - libc6
            - libclutter-1.0-0
            #- libxkbcommon0
            #- libx11-xcb1
            - ttf-ubuntu-font-family
            - dmz-cursor-theme
            - libglib2.0-0
            - light-themes
            - shared-mime-info
            - libgdk-pixbuf2.0-0
            - libsqlite0
            - libsqlite3-0
            - libgl1-mesa-dev
            - libgl1-mesa-dri
            - libpulse0
            - libpulse-mainloop-glib0

And itā€™s strange, but after your advice, I see these errors
(process:3571): Gtk-WARNING **: Locale not supported by C library.
Using the fallback ā€˜Cā€™ locale.
Gtk-Message: Failed to load module ā€œunity-gtk-moduleā€

(ProjectTimer:3571): GdkPixbuf-WARNING **: Cannot open pixbuf loader module file '/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cache': No such file or directory

This likely means that your installation is broken.
Try running the command
  gdk-pixbuf-query-loaders > /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cache
to make things work again for the time being.
Gtk-Message: Failed to load module "canberra-gtk-module"
Gtk-Message: Failed to load module "canberra-gtk-module"
QFile::remove: Empty or null file name
QFile::remove: Empty or null file name
libGL error: unable to load driver: swrast_dri.so
libGL error: failed to load driver: swrast
Unrecognized OpenGL version
Unrecognized OpenGL version
QGLXContext: Failed to create dummy context
Could not create AF_NETLINK socket (Permission denied)
propsReply "An AppArmor policy prevents this sender from sending this message to this recipient; type=\"method_call\", sender=\":1.66\" (uid=1000 pid=3571 comm=\"/snap/managetime/x1/bin/ProjectTimer \") interface=\"org.freedesktop.DBus.Properties\" member=\"GetAll\" error name=\"(unset)\" requested_reply=\"0\" destination=\"org.freedesktop.NetworkManager\" (uid=0 pid=861 comm=\"/usr/sbin/NetworkManager --no-daemon \")"
nmReply "An AppArmor policy prevents this sender from sending this message to this recipient; type=\"method_call\", sender=\":1.66\" (uid=1000 pid=3571 comm=\"/snap/managetime/x1/bin/ProjectTimer \") interface=\"org.freedesktop.NetworkManager\" member=\"GetDevices\" error name=\"(unset)\" requested_reply=\"0\" destination=\"org.freedesktop.NetworkManager\" (uid=0 pid=861 comm=\"/usr/sbin/NetworkManager --no-daemon \")"
"Object path cannot be empty"

Out of interest, have you considered using the desktop-qt5 cloud part? It should take care of many of the environment variable and stage-packages problems youā€™re running into.

That combined with building in a clean environment (snapcraft cleanbuild, or a clean Ubuntu 16.04 container/VM) should help get rid of the library incompatibility issues.

1 Like

Yes, I was use desktop-qt The package appmenu-qt5 has unmet dependencies:

I was try snapcraft cleanbuild but errors the same.

Do you have the full error message available?

These are the same errors that I already wrote above. Nothing has changed.

libGL error: unable to load driver: radeonsi_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: radeonsi
libGL error: unable to load driver: radeonsi_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: radeonsi
libGL error: unable to load driver: swrast_dri.so
libGL error: failed to load driver: swrast
Unrecognized OpenGL version
Unrecognized OpenGL version
QGLXContext: Failed to create dummy context
Could not create AF_NETLINK socket (Permission denied)
propsReply "An AppArmor policy prevents this sender from sending this message to this recipient; type=\"method_call\", sender=\":1.65\" (uid=1000 pid=4624 comm=\"/snap/managetime/x1/bin/ProjectTimer \") interface=\"org.freedesktop.DBus.Properties\" member=\"GetAll\" error name=\"(unset)\" requested_reply=\"0\" destination=\"org.freedesktop.NetworkManager\" (uid=0 pid=1191 comm=\"/usr/sbin/NetworkManager --no-daemon \")"
nmReply "An AppArmor policy prevents this sender from sending this message to this recipient; type=\"method_call\", sender=\":1.65\" (uid=1000 pid=4624 comm=\"/snap/managetime/x1/bin/ProjectTimer \") interface=\"org.freedesktop.NetworkManager\" member=\"GetDevices\" error name=\"(unset)\" requested_reply=\"0\" destination=\"org.freedesktop.NetworkManager\" (uid=0 pid=1191 comm=\"/usr/sbin/NetworkManager --no-daemon \")"
"Object path cannot be empty"
Could not create AF_NETLINK socket (Permission denied)
Could not create AF_NETLINK socket (Permission denied)
Could not create AF_NETLINK socket (Permission denied)
Could not create AF_NETLINK socket (Permission denied)
Unrecognized OpenGL version
Unrecognized OpenGL version
QSoundEffect(pulseaudio): Error decoding source

@sektorct, the error message that @jamesh wants the full output from is the one that you mentioned in the immediately previous message. Namely, please share the full output from the build that fails with:

The package appmenu-qt5 has unmet dependencies:

If need log when the snap package is build: snapcraft Get:1 Index of /ubuntu xenial-security InRelease [107 kB]
Get:2 http://cz.archive.ubuntu.com/ubuntu xenial InRelease [247 kB]
Hit http://cz.archive.ubuntu.com/ubuntu xenial-updates InRelease
Hit http://cz.archive.ubuntu.com/ubuntu xenial-backports InRelease
Get:3 http://archive.neon.kde.org/user xenial InRelease [34.7 kB]
Hit http://linux.teamviewer.com/deb stable InRelease
Hit http://linux.teamviewer.com/deb preview InRelease
Fetched 388 kB in 0s (0 B/s)
Pulling integration Pulling managetime Building integration Building managetime Staging integration Staging managetime Priming integration libc6 has been staged into the snap: only do this if you know what what you are doing. warning: working around a Linux kernel bug by creating a hole of 2101248 bytes in ā€˜/tmp/tmp3ts7ge88ā€™ warning: working around a Linux kernel bug by creating a hole of 2076672 bytes in ā€˜/tmp/tmps7m7jed5ā€™ Priming managetime ā€˜gradeā€™ property not specified: defaulting to ā€˜stableā€™ Snapping ā€˜managetimeā€™ -
Snapped managetime_0.1.0_amd64.snap

This is log instal and run application:

sudo snap install --dangerous managetime_0.1.0_amd64.snap 
[sudo] ŠæŠ°Ń€Š¾Š»ŃŒ Š“Š»Ń blin: 
managetime 0.1.0 installed
blin@blin-KDE:/media/free/SNAP/pt_snap$ managetime 
libGL error: unable to load driver: radeonsi_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: radeonsi
libGL error: unable to load driver: radeonsi_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: radeonsi
libGL error: unable to load driver: swrast_dri.so
libGL error: failed to load driver: swrast
Unrecognized OpenGL version
Unrecognized OpenGL version
QGLXContext: Failed to create dummy context
Could not create AF_NETLINK socket (Permission denied)
propsReply "An AppArmor policy prevents this sender from sending this message to this recipient; type=\"method_call\", sender=\":1.88\" (uid=1000 pid=27046 comm=\"/snap/managetime/x1/bin/ProjectTimer \") interface=\"org.freedesktop.DBus.Properties\" member=\"GetAll\" error name=\"(unset)\" requested_reply=\"0\" destination=\"org.freedesktop.NetworkManager\" (uid=0 pid=1191 comm=\"/usr/sbin/NetworkManager --no-daemon \")"
nmReply "An AppArmor policy prevents this sender from sending this message to this recipient; type=\"method_call\", sender=\":1.88\" (uid=1000 pid=27046 comm=\"/snap/managetime/x1/bin/ProjectTimer \") interface=\"org.freedesktop.NetworkManager\" member=\"GetDevices\" error name=\"(unset)\" requested_reply=\"0\" destination=\"org.freedesktop.NetworkManager\" (uid=0 pid=1191 comm=\"/usr/sbin/NetworkManager --no-daemon \")"
"Object path cannot be empty"
Could not create AF_NETLINK socket (Permission denied)
Could not create AF_NETLINK socket (Permission denied)
Could not create AF_NETLINK socket (Permission denied)
Could not create AF_NETLINK socket (Permission denied)
QSoundEffect(pulseaudio): Error decoding source
Unrecognized OpenGL version
Unrecognized OpenGL version

There are no other logs anymore)

Here are the logs that I have just received.

snap run --shell managetime
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.

blin@blin-KDE:/media/free/SNAP/pt_snap$ ldd $SNAP/bin/                                           
ProjectTimer  run.sh        
blin@blin-KDE:/media/free/SNAP/pt_snap$ ldd $SNAP/bin/ProjectTimer 
        linux-vdso.so.1 =>  (0x00007ffc6916f000)
        libQt5Quick.so.5 => /snap/managetime/x1/Qt/5.11.0/gcc_64/lib/libQt5Quick.so.5 (0x00007fc607e0f000)
        libQt5Widgets.so.5 => /snap/managetime/x1/Qt/5.11.0/gcc_64/lib/libQt5Widgets.so.5 (0x00007fc6075cc000)
        libQt5Gui.so.5 => /snap/managetime/x1/Qt/5.11.0/gcc_64/lib/libQt5Gui.so.5 (0x00007fc606dd3000)
        libQt5Qml.so.5 => /snap/managetime/x1/Qt/5.11.0/gcc_64/lib/libQt5Qml.so.5 (0x00007fc6067df000)
        libQt5Core.so.5 => /snap/managetime/x1/Qt/5.11.0/gcc_64/lib/libQt5Core.so.5 (0x00007fc606085000)
        libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fc605d03000)
        libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fc605aed000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fc605723000)
        libQt5Network.so.5 => /snap/managetime/x1/Qt/5.11.0/gcc_64/lib/libQt5Network.so.5 (0x00007fc60538e000)
        libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fc605171000)
        libGL.so.1 => not found
        libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fc604e68000)
        libGL.so.1 => not found
        libGL.so.1 => not found
        libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007fc604c4e000)
        librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007fc604a46000)
        libicui18n.so.56 => /snap/managetime/x1/Qt/5.11.0/gcc_64/lib/libicui18n.so.56 (0x00007fc6045ad000)
        libicuuc.so.56 => /snap/managetime/x1/Qt/5.11.0/gcc_64/lib/libicuuc.so.56 (0x00007fc6041f5000)
        libicudata.so.56 => /snap/managetime/x1/Qt/5.11.0/gcc_64/lib/libicudata.so.56 (0x00007fc602812000)
        libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fc60260e000)
        libgthread-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgthread-2.0.so.0 (0x00007fc60240c000)
        libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007fc6020fb000)
        /lib64/ld-linux-x86-64.so.2 (0x00007fc60847d000)
        libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007fc601e8b000)

Stage the libgl1-mesa-glx package

I was specifically referring to the rest of the The package appmenu-qt5 has unmet dependencies: error: you havenā€™t provided that anywhere above from what I can see. It really does look like a lot of the problems youā€™re running into were solved for the desktop-qt5 part.

So rather than trying to reproduce everything it does, it would be more productive to work out why it didnā€™t work for you.

1 Like

@jamesh @Lin-Buo-Ren

These are the messages that the debug writes me. I do not know if this can determine the cause of the errors.
But I see that the application is looking for libraries not where I writed in snapcraft.yaml

sudo snappy-debug.security scanlog managetime
INFO: following '/var/log/syslog'. If have dropped messages, use:
INFO: $ sudo journalctl --output=short --follow --all | sudo snappy-debug.security scanlog
kernel.printk_ratelimit = 0
= AppArmor =
Time: Oct 11 00:09:48
Log: apparmor="DENIED" operation="open" profile="snap.managetime.managetime" name="/media/free/Qt/5.11.0/gcc_64/lib/libQt5Widgets.so.5.11.0" pid=706 comm="projecttimer" requested_mask="r" denied_mask="r" fsuid=1000 ouid=1000
File: /media/free/Qt/5.11.0/gcc_64/lib/libQt5Widgets.so.5.11.0 (read)
Suggestion:
* adjust program to read necessary files from $SNAP, $SNAP_DATA, $SNAP_COMMON, $SNAP_USER_DATA or $SNAP_USER_COMMON

= AppArmor =
Time: Oct 11 00:09:48
Log: apparmor="DENIED" operation="open" profile="snap.managetime.managetime" name="/media/free/Qt/5.11.0/gcc_64/lib/libQt5Quick.so.5.11.0" pid=706 comm="projecttimer" requested_mask="r" denied_mask="r" fsuid=1000 ouid=1000
File: /media/free/Qt/5.11.0/gcc_64/lib/libQt5Quick.so.5.11.0 (read)
Suggestion:
* adjust program to read necessary files from $SNAP, $SNAP_DATA, $SNAP_COMMON, $SNAP_USER_DATA or $SNAP_USER_COMMON

= AppArmor =
Time: Oct 11 00:09:48
Log: apparmor="DENIED" operation="open" profile="snap.managetime.managetime" name="/media/free/Qt/5.11.0/gcc_64/lib/libQt5Qml.so.5.11.0" pid=706 comm="projecttimer" requested_mask="r" denied_mask="r" fsuid=1000 ouid=1000
File: /media/free/Qt/5.11.0/gcc_64/lib/libQt5Qml.so.5.11.0 (read)
Suggestion:
* adjust program to read necessary files from $SNAP, $SNAP_DATA, $SNAP_COMMON, $SNAP_USER_DATA or $SNAP_USER_COMMON

= AppArmor =
Time: Oct 11 00:09:48
Log: apparmor="DENIED" operation="open" profile="snap.managetime.managetime" name="/media/free/Qt/5.11.0/gcc_64/lib/libQt5Gui.so.5.11.0" pid=706 comm="projecttimer" requested_mask="r" denied_mask="r" fsuid=1000 ouid=1000
File: /media/free/Qt/5.11.0/gcc_64/lib/libQt5Gui.so.5.11.0 (read)
Suggestion:
* adjust program to read necessary files from $SNAP, $SNAP_DATA, $SNAP_COMMON, $SNAP_USER_DATA or $SNAP_USER_COMMON

= AppArmor =
Time: Oct 11 00:09:48
Log: apparmor="DENIED" operation="open" profile="snap.managetime.managetime" name="/media/free/Qt/5.11.0/gcc_64/lib/libQt5Core.so.5.11.0" pid=706 comm="projecttimer" requested_mask="r" denied_mask="r" fsuid=1000 ouid=1000
File: /media/free/Qt/5.11.0/gcc_64/lib/libQt5Core.so.5.11.0 (read)
Suggestion:
* adjust program to read necessary files from $SNAP, $SNAP_DATA, $SNAP_COMMON, $SNAP_USER_DATA or $SNAP_USER_COMMON

= AppArmor =
Time: Oct 11 00:09:48
Log: apparmor="DENIED" operation="open" profile="snap.managetime.managetime" name="/snap/core/5548/lib/x86_64-linux-gnu/libpcre.so.3.13.2" pid=706 comm="projecttimer" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
File: /snap/core/5548/lib/x86_64-linux-gnu/libpcre.so.3.13.2 (read)
Suggestion:
* adjust program to read necessary files from $SNAP, $SNAP_DATA, $SNAP_COMMON, $SNAP_USER_DATA or $SNAP_USER_COMMON