treesheets icon indicating copy to clipboard operation
treesheets copied to clipboard

Integration of Linux binary into system not documented

Open despens opened this issue 8 years ago • 5 comments

The TreeSheets binary download for Linux comes with a treesheets.desktop file, but it is unclear where the directory images with dependencies has to go. Running TreeSheets by double-clicking the executable works, but not running from the terminal or any launcher:

initialization error_999

This leads to GUI elements missing:

selection_999 315

Any hint about where to put the directory?

despens avatar Apr 19 '17 14:04 despens

treesheets expects images (and all other files) to be relative to the directory the exe sits in. The Makefile places the exe in the TS directory that contains all runtime files. Are you building/moving the exe to an unrelated location?

aardappel avatar Apr 20 '17 01:04 aardappel

In order to run with a launcher or from the command line, I'd need to place TreeSheets into /bin, /usr/bin, ~/bin or the like. But even if I put images there as well, the icons won't be loaded. Some distros seem to have solved that problem somehow, but I need the latest version :)

despens avatar Apr 20 '17 06:04 despens

There may be restrictions on file access to /bin, not sure. Either way, it wasn't mean't to be moved there, and images certainly shouldn't go there. It should stay with its data files in a local directory, or simply installed thru apt-get or similar (there's quite a few distros that have it).

aardappel avatar Apr 20 '17 23:04 aardappel

I'm simply patching the path in Debian (and here is the installation layout) but one could probably make this configurable via cmake. Also I'm happy to have a co-maintainer for this package if anyone wants to volunteer, I don't have much time for my smaller packages these days.

infinity0 avatar Jul 12 '17 23:07 infinity0

@infinity0 I guess I am not that familiar with how this is usually done on Linux.. I guess this is normally done via an install rule? I'd agree that making the CMake file deal with this rather than patching would be nicer.

It be nice if the source code would "just work" for Linux.. but it has to keep working for other platforms as well, which all use a directory layout that corresponds to the git repository.

aardappel avatar Jul 13 '17 21:07 aardappel