hiddify-next icon indicating copy to clipboard operation
hiddify-next copied to clipboard

AppImage doesn' t start

Open Graninius opened this issue 1 year ago • 4 comments

Search first

  • [X] I searched and no similar issues were found

What Happened?

The AppImage doesn't open.

Reproduce the Bug

  1. Download AppImage
  2. Move it to my portable apps' folder.
  3. Try to start it.

Expected Behavior

No response

Version

v.0.16.0 dev

Platform/OS

Linux Manjaro KDE, unstable

Additional Context

v. 0.14.20 is working well

Relevant log output

/tmp/.mount_hiddifqxOUU7/AppRun: string 3: cd: $(dirname $0): No such file or directory
/tmp/.mount_hiddifqxOUU7/AppRun: string 8: /home/user/: It's a directory
/tmp/.mount_hiddifqxOUU7/AppRun: string 8: exec: /home/user/: can't start: It's a directory

Graninius avatar Feb 18 '24 19:02 Graninius

Hi, I think the problem is these lines in the AppRun file:

     2	cd "\$(dirname "\$0")"
     7	    exec ./$appName $@

these changes should be made for AppRun file:

@@ -1,9 +1,9 @@
#!/bin/bash

-cd "\$(dirname "\$0")"
+cd "$(dirname "$0")"
export LD_LIBRARY_PATH=usr/lib
if [ "$1" == "HiddifyService" ];then
    exec ./$@
else
-    exec ./$appName $@
+    exec ./hiddify
fi

Aryangh1379 avatar Feb 19 '24 11:02 Aryangh1379

Hi, I'm back again, the appimage bug is fixed in version 0.16.4.dev, please consider label the issue as solved if that error doesn't persist.

Aryangh1379 avatar Feb 24 '24 10:02 Aryangh1379

I also confirm it. The bug is fixed. (0.16.7dev)

Graninius avatar Feb 25 '24 07:02 Graninius

0.16.16dev - We encountered this issue again in this version. The problem persists. tmp/.mount_hiddifUw0JYW/AppRun: string 28: exec: hiddify: not found

Graninius avatar Feb 27 '24 18:02 Graninius

fixed

Graninius avatar Mar 11 '24 07:03 Graninius