Open universish opened 1 month ago
This is should be entirely solvable in NixOS, please see https://wiki.nixos.org/w/index.php?title=Appimage#Register_AppImage_files_as_a_binary_type_to_binfmt_misc
@zi3m5f this problem is with the gear lever:
The point is that gear lever does not run appimage files on NixOS. When I click on the “Start” button of the app I want to run in the Gear Lever app, it doesn't start. Because it doesn't run directly in NixOS. Necessary changes need to be made in the .desktop file. The changes that need to be made are related to appimage-run. But I have no idea where and what kind of changes need to be made. Maybe a correct change in the Exec= line in the .desktop file would be enough. The gear lever app should also do this configuration and .desktop shortcut file creation for NixOS. For NixOS this application needs to be modified and updated.
Code lines should be added to the application for NixOS and updated, and the current version should be published. Best regards.
I installed gear lever from flathub to create a shortcut to ente's auth.appimage v4.0.2 on NixOS and make it work. with gear lever I made auth.appimage executable and a shortcut was created. i clicked on the shortcut, it didn't work.
I followed the steps in the manual to run appimage in NixOS. manual URL: https://nixos.org/manual/nixos/stable/#sec-custom-packages-prebuilt
To run appimage on NixOS you need to install the appimage-run package. Then you run a console in the directory of the appimage file. Then run it with the command:
appimage-run ./auth.appimage
or console anywhere:appimage-run auth.appimage
and run it.normally in other classic gnu/linux distributions
chmod +x auth.appimage
./auth.appimage
commands. But it's different in NixOS. So in the .desktop file of appimage, appimage-run is added to the Exec= line.Exec=appimage-run /appimage_file_location/auth.appimage
It didn't work even though I added it. Normally zen-browser.appimage appimage-run zen-browser.appimage worked. But when I changed theExec=
line in zen-browser.desktop it didn't work.For more detailed information on the subject: https://github.com/ente-io/ente/issues/3795
then i changed the content of the shortcut file auth.desktop. I changed
Exec=/home/macellan/AppImages/auth. appimage ente_auth %u
toExec=appimage-run /home/macellan/AppImages/auth.appimage ente_auth %u
and saved it. then entered the commandchmod +x auth.desktop
. then tried to run it,./auth.desktop
didn't work. clicked on the shortcut, didn't work. I changedExec=appimage-run .....
in the zen-browser.desktop file of the zen-browser shortcut I created with gear lever. I clicked on the shortcut. zen-browser didn't work either. whereas appimage-run worked with the zen-browser.appimage command. finally I ran console in auth.appimage directory. followed bychmod +x auth.appimage
:./auth.appimage
and again it didn't work.Anyway... The point is that gear lever does not run appimage files on NixOS. When I click on the “Start” button of the app I want to run in the Gear Lever app, it doesn't start. Because it doesn't run directly in NixOS. Necessary changes need to be made in the .desktop file. The changes that need to be made are related to
appimage-run
. But I have no idea where and what kind of changes need to be made. Maybe a correct change in theExec=
line in the .desktop file would be enough. The gear lever app should also do this configuration and .desktop shortcut file creation for NixOS. For NixOS this application needs to be modified and updated.Code lines should be added to the application for NixOS and updated, and the current version should be published. Best regards.