mijorus / gearlever

Manage AppImages with ease 📦
https://mijorus.it/projects/gearlever
GNU General Public License v3.0
522 stars 23 forks source link

Fail to start appimage #163

Open senseab opened 3 weeks ago

senseab commented 3 weeks ago

OS: NixOS 24.05

When click the Launch menu, it shows Running Appimages on NixOS requires appimage-run

but I have installed appimage-run

here is the console output

Logging to file /home/nixos/.var/app/it.mijorus.gearlever/cache/logs/gearlever.log Portal call failed: Failed to start command: 执行子进程“which”失败(No such file or directory)

Portal call failed: Failed to start command: 执行子进程“which”失败(No such file or directory)

PS:the Chinese means cannot execute child process which

but here is the which path

/run/current-system/sw/bin/which

and here is the log:

2024-09-28 14:24:34,979 INFO [main.py:63]

---- Application startup | version 2.0.8 2024-09-28 14:24:45,815 WARNING [AppImageProvider.py:242] gtk-launch is missing, falling back to executable launch 2024-09-28 14:24:45,823 ERROR [AppDetails.py:348] Running AppImages on NixOS requires appimage-run 2024-09-28 06:33:00,826 INFO [main.py:63]

---- Application startup | version 2.0.8 2024-09-28 06:33:05,387 WARNING [AppImageProvider.py:242] gtk-launch is missing, falling back to executable launch 2024-09-28 06:33:05,394 ERROR [AppDetails.py:348] Running AppImages on NixOS requires appimage-run 2024-09-28 14:33:54,299 INFO [main.py:63]

---- Application startup | version 2.0.8 2024-09-28 14:33:57,085 WARNING [AppImageProvider.py:242] gtk-launch is missing, falling back to executable launch 2024-09-28 14:33:57,091 ERROR [AppDetails.py:348] Running AppImages on NixOS requires appimage-run 2024-09-28 14:34:10,259 INFO [main.py:63]

---- Application startup | version 2.0.8 2024-09-28 14:34:12,719 WARNING [AppImageProvider.py:242] gtk-launch is missing, falling back to executable launch 2024-09-28 14:34:12,726 ERROR [AppDetails.py:348] Running AppImages on NixOS requires appimage-run 2024-09-28 14:35:40,826 INFO [main.py:63]

---- Application startup | version 2.0.8 2024-09-28 14:35:44,513 WARNING [AppImageProvider.py:242] gtk-launch is missing, falling back to executable launch 2024-09-28 14:35:44,521 ERROR [AppDetails.py:348] Running AppImages on NixOS requires appimage-run

Any suggestions?

mijorus commented 3 weeks ago

hi, do you have appimage-run installed as a system-package?

sudo nano /etc/nixos/configuration.nix

  environment.systemPackages = [
    pkgs.appimage-run
  ];

nixos-rebuild switch

senseab commented 1 week ago

hi, do you have appimage-run installed as a system-package?

sudo nano /etc/nixos/configuration.nix

  environment.systemPackages = [
    pkgs.appimage-run
  ];

nixos-rebuild switch

Yes, I did. There is no command which, but which exists.