IanniX icon indicating copy to clipboard operation
IanniX copied to clipboard

using proper paths for ressources

Open umlaeute opened this issue 7 years ago • 7 comments

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/!

umlaeute avatar May 18 '17 15:05 umlaeute

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.

umlaeute avatar May 18 '17 15:05 umlaeute

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!

domichel avatar Aug 01 '17 14:08 domichel

Any update on this? This pretty much makes it impossible to ship iannix as a package on Linux.

dvzrv avatar Mar 25 '18 01:03 dvzrv

@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 avatar Mar 25 '18 18:03 umlaeute

@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!

dvzrv avatar Mar 25 '18 19:03 dvzrv

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 :-))

umlaeute avatar Mar 25 '18 19:03 umlaeute

(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?

dvzrv avatar Mar 25 '18 19:03 dvzrv