I am having trouble getting my qt project that I snapped to work. I believe it is caused by missing packages, but when I add the relevant ones, the errors I get persist. While building the snap, I get the warning:
Files from the build host were migrated into the snap to satisfy dependencies that would otherwise not be met. This feature will be removed in a future release. If these libraries are needed in the final snap, ensure that the following are either satisfied by a stage-packages entry or through a part:
usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0 usr/lib/x86_64-linux-gnu/libcaca.so.0 usr/lib/x86_64-linux-gnu/libva.so.1
And once I start my app I get the error messages:
Gtk-Message: Failed to load module “overlay-scrollbar”
Gtk-Message: Failed to load module “gail”
Gtk-Message: Failed to load module “atk-bridge”
Gtk-Message: Failed to load module “unity-gtk-module”
Qt: Session management error: None of the authentication protocols specified are supported
The application works, in that I can interact with the interface, but when I try to do what I made the gui for (execute a shell script that the GUI generates), it doesn’t work.
Here is part of my snapcraft.yaml:
source: ./QT_Files_for_Snap/ # contains the executable
command: desktop-launch $SNAP/MyApp $SNAP_DATA
plugs: [home, unity7]
As you can see, I include packages such as overlay-scrollbar, but I still get errors for them. I’m not sure how to make these go away.
Thanks for the help.