Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small issue with the desktop entry in the appimage. #77

Closed
Samueru-sama opened this issue Apr 9, 2024 · 9 comments
Closed

Small issue with the desktop entry in the appimage. #77

Samueru-sama opened this issue Apr 9, 2024 · 9 comments

Comments

@Samueru-sama
Copy link

Samueru-sama commented Apr 9, 2024

I've noticed that the .desktop file that comes with the appimage is missing the Terminal=true line, without this line you can't use the desktop entry to open amdgpu_top in a terminal window with an application launcher.

@Umio-Yasuno
Copy link
Owner

Umio-Yasuno commented Apr 9, 2024

That is not the issue with this repository.
I am not distributing the appimage binary with the .desktop files.

@Umio-Yasuno Umio-Yasuno closed this as not planned Won't fix, can't repro, duplicate, stale Apr 9, 2024
@Umio-Yasuno
Copy link
Owner

@Samueru-sama
Copy link
Author

Samueru-sama commented Apr 9, 2024

That is not the issue with this repository. I am not distributing the appimage binary with the .desktop files.

I'm sorry but where is amdgpu_top-x86_64.AppImage in the releases page of this repo from? I downloaded that and extracted the desktop entry to confirm that issue.

image

And yes I noticed the issue because I installed amdgpu_top with AM, however the very AM script does an --appimage-extract from the appimage to get the desktop entry. Which is missing that line.

@Umio-Yasuno
Copy link
Owner

Are the desktop entry included in the binaries on the release page?
That seems strange because I haven't specified any assets to the appimage build.

@Umio-Yasuno Umio-Yasuno reopened this Apr 9, 2024
@Samueru-sama
Copy link
Author

Samueru-sama commented Apr 9, 2024

Are the desktop entry included in the binaries on the release page? That seems strange because I haven't specified any assets to the appimage build.

The appimage has the desktop entry built in, if you run ./appimagename --appimage-extract you will be able to see the desktop entry that ships inside of it. You also need to have it otherwise appimagetool won't let you make the appimage.

That desktop entry is often taken by appimage managers to integrate the appimage into the system, since it is missing the Terminal=true line it doesn't work.

@Umio-Yasuno
Copy link
Owner

Could you please paste the contents of the desktop file?
It may be the file generated by cargo-appimage.

https://github.com/StratusFearMe21/cargo-appimage/blob/485be0a4393a251b7c3b20487424209bb29f7374/src/main.rs#L240

@Umio-Yasuno
Copy link
Owner

In the first place, amdgpu_top requires multiple desktop files, so it is unclear whether the script of AM will work correctly.

https://github.com/Umio-Yasuno/amdgpu_top/tree/main/assets

@Samueru-sama
Copy link
Author

Samueru-sama commented Apr 9, 2024

Could you please paste the contents of the desktop file? It may be the file generated by cargo-appimage.

https://github.com/StratusFearMe21/cargo-appimage/blob/485be0a4393a251b7c3b20487424209bb29f7374/src/main.rs#L240

~/ ./amdgpu_top-x86_64.AppImage --appimage-extract && cat ./squashfs-root/*.desktop 
[Desktop Entry]
Name=amdgpu_top
Exec=amdgpu_top
Icon=icon
Type=Application
Categories=Utility;

The file is named cargo-appimage.desktop, so it likely gets made by it.

so it is unclear whether the script of AM will work correctly.

Well at least having one work is better than nothing xd. (I think it is possible still though but I don't know how to).

@Umio-Yasuno
Copy link
Owner

Umio-Yasuno commented Apr 9, 2024

  • As long as cargo-appimage is used, cargo-appimage.desktop cannot be removed.
  • I changed the appimage binary to include amdgpu_top.desktop and amdgpu_top-tui.desktop.
  • You will need to fix the script of AM to actually install them.
squashfs-root/
├── AppRun
├── assets
│   ├── amdgpu_top-tui.desktop
│   └── amdgpu_top.desktop
├── cargo-appimage.desktop
├── icon.png
└── usr
    └── bin
        └── amdgpu_top

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants