I have made a small C++ video game named Frutibandas, and now I want to distribute it under Linux with a Debian package. The binary must access two folders named "shaders" and "assets" at runtime.
I created the Debian package so that it installs the game under the /opt directory, like this :
/
|
|---opt/
| |
| |----Frutibandas/
| |
| |----frutibandas <= this is the binary
| |----shaders/
| |----assets/
|
|---usr/
|
|----share/
|
|----applications/
|
|----frutibandas.desktop
The issue is that when I create the deb package, then install it, and finally use the launcher, the binary cannot locate the two aforementioned folders.
However, when I directly start the game with a terminal in the install directory "/opt/Frutibandas/", then it works perfectly.
My guess is that it may be a wrong current working directory associated to the game process when I use the gnome unity launcher.
How can I create a proper Debian package with a binary which needs to access resource folders at runtime ?
My thanks in advance :)