IanniX
IanniX copied to clipboard
using proper paths for ressources
IanniX tries to locate it's ressources (e.g. the Museo.ttf
font, but also others) in a path relative to the iannix
binary.
Unfortunately it uses a subdirectory of the iannix
path.
after doing a make install
, this means that a path like /usr/local/bin/Tools/Museo.ttf
is searched.
this is in violation of the FHS: ressources should be located in /usr/local/lib/iannix/
(and /usr/local/share/iannix/
for non-binaries).
They should definitely not be in a subdirectory of bin/
!
Actually, the search-path is constructed via Application::pathApplication.absoluteFilePath() + "/Tools/"
, so it should be pretty easy to make the current behaviour overridable somewhere around iannixapp.cpp:100.
I fully agree with umlaeute, As pointed out, it is some standards on GNU/linux. One of them is that /usr/bin should only contain executable files and no sub-directory at all. This help to insure the coherence of the system. That imply iannix should definitely look somewhere else for its resources.
BTW: Thanks for the good work!
Any update on this? This pretty much makes it impossible to ship iannix as a package on Linux.
@dvzrv well, iannix is already shipped as a Debian package, so it is obviously possible to ship it as a package "on Linux" (although the Debian package fixes the problem)
@umlaeute I only have limited time on my hands and patching something, that should be fixed upstream is a little out of scope for me currently. I'd gladly take a look at the package you provide for Debian though!
sure. also i'm not saying that this shouldn't be fixed upstream. (i was mainly commenting on the somewhat exclusive use of "Linux" to mean your favorite distro :-))
(i was mainly commenting on the somewhat exclusive use of "Linux" to mean your favorite distro :-))
LOL. Glad we have that settled then.
Note: I was referring to the workload that is put on a package maintainer, because of issues, such as this. That has nothing to do with whatever distribution you're using, as the applying of x patches is always going to require time. I'm sorry, if that was misread as a distribution flamewar attempt or something like that. I should have been more specific as in:
This pretty much makes it very painful to ship iannix as a package on Linux (unless you're really into patching ;-) ).
That being said, would it be possible for you to upstream some of the patches you apply for Debian?