This is the snap file. Trying to get XApps to build as a part. Xed right now is incomplete.
I get two different errors when I try to build through the snap vs using the container prompt directly.
With the snap build I get:
error: Package `glib-2.0’ not found in specified Vala API directories or GObject-Introspection GIR directories
error: Package `gobject-2.0’ not found in specified Vala API directories or GObject-Introspection GIR directories
Building through the container prompt:
/root/parts/xapps/install/usr/bin/vapigen: error while loading shared libraries: libvala-0.40.so.0: cannot open shared object file: No such file or directory
I believe I have all the needed packages. The fact that I get two different errors from the same build commands makes me feel it could be something else.
I was able to build it and install. The entry for the application does not seem to come up. You can call it from the command line as xed-unofficial, but it does not show up as an application in Ubuntu 18.04 when you type xed in the gui (GNOME). How do I add it?
I followed the instructions in those docs to have the desktop and icon files in a ‘gui/’ directory. I got this warning:
The 'snap' directory is meant specifically for snapcraft, but it contains the following non-snapcraft-related paths, which is unsupported and will cause unexpected behavior:
- gui/xed.ico
If you must store these files within the 'snap' directory, move them to 'snap/local', which is ignored by snapcraft.
I had to switch my ‘desktop:’ entry to the default in snap .desktop xed generates. ( usr/share/applications/xed.desktop ) It now shows an empty icon in the menu but you can now start xed-unofficial from the menu on ubuntu.
The snapcraft tool complained about the snap/gui directory and ignored it. Should the folder be in the snap/snap/gui directory?
I suppose I could just use override-pull: to override the default .desktop name but I would like to see if I can make specifying my own .desktop and icon file work.
Are those docs out of date or should the snap/gui/ folder be used by snapcraft?
I also tried ‘snap/snap/gui’. It was ignored as well.