FLTK applications cannot start
Bug #1697473 reported by
Michael R Sweet
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snapcraft |
New
|
Undecided
|
Unassigned |
Bug Description
Hi,
I'm trying to create snaps for two FLTK-based applications I maintain (rasterview and HTMLDOC) but when I run these applications I get two error messages:
XOpenIM() failed
Unable to find fonts. Check your FontConfig configuration.
Both applications list the "x11" and "unity7" interfaces in the plugs: value in snapcraft.yaml, but neither will open a window. (HTMLDOC also has a command-line mode, and that works just fine...)
The projects are hosted on Github:
https:/
https:/
Changed in snapcraft: | |
status: | Expired → New |
To post a comment you must log in.
You're not setting the environment correctly for FLTK to find assets such as fonts. You can do this by hand, but I've had success using the desktop-gtk3 part to do it. Something like this:
parts:
my-fltk-part:
# ...
after: [desktop-gtk3]
apps:
my-fltk-app:
command: desktop-launch <real command>