DONTMERGE helpers.Args0() get's it wrong if appimaged is in PATH
This a glitch I found when I hot-replaced the daemon binary in my VM experiments..
helpers.Args0 prepends invocation path (cwd) instead of executable location
f.e. instead of /usr/local/bin/appimaged writes /home/user/appimaged into
service file
.. this is what I found to work.. sorry, just a demo patch xD
Are you using our official appimaged AppImage? appimaged is only supported when being used from inside the official appimaged AppImage. Everything else is not in our control...
Just checked it, yes the official appimaged-587-x86_64.AppImage computes ai.path to $CWD/$0
Can you give an example of how to reproduce it a) when it goes wrong b) when it goes right? Thank you, this will help a lot.
Sure. Put latest image at /usr/local/bin/appimaged (or anywhere else in $PATH) cd to f.e. /tmp, invoke appimaged and check ai.path ..