go-appimage icon indicating copy to clipboard operation
go-appimage copied to clipboard

DONTMERGE helpers.Args0() get's it wrong if appimaged is in PATH

Open eMPee584 opened this issue 5 years ago • 4 comments

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

eMPee584 avatar Nov 27 '20 11:11 eMPee584

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...

probonopd avatar Nov 27 '20 18:11 probonopd

Just checked it, yes the official appimaged-587-x86_64.AppImage computes ai.path to $CWD/$0

eMPee584 avatar Nov 27 '20 23:11 eMPee584

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.

probonopd avatar Nov 27 '20 23:11 probonopd

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 ..

eMPee584 avatar Nov 28 '20 00:11 eMPee584