amir1376 / ab-download-manager

A Download Manager that speeds up your downloads
https://abdownloadmanager.com
Apache License 2.0
2.49k stars 111 forks source link

Fix issues exists in linux desktop file #2

Open ZorinFoss opened 3 months ago

ZorinFoss commented 3 months ago

Hi @amir1376

This is fix issues exists in linux desktop file, just copy and paste the code below

[Desktop Entry]
Name=ABDownloadManager
GenericName=Download Manager
Comment=A Download Manager that speeds up your downloads
Exec=/opt/abdownloadmanager/bin/ABDownloadManager
Icon=/opt/abdownloadmanager/lib/ABDownloadManager.png
Terminal=false
Type=Application
Categories=Network;
StartupNotify=true
StartupWMClass=com.abdownloadmanager.ABDownloadManager

Note

when you make sure you set the right paths, update the desktop file to reflect the changes.

amir1376 commented 3 months ago

@ZorinFoss What is the issue exactly? Actually I don't package the app manually, I package the app using compose plugin which uses jpackage under the hood and has very limited customization so I can't change the configurations here at this time If there is some serious problems here, then I have to setup my own packaging system(which targets windows/linux)

ZorinFoss commented 3 months ago

This is the default content exists in desktop file right now:

[Desktop Entry]
Name=ABDownloadManager  ===> This shown on app menu like title
Comment=ABDownloadManager     ===> This is the app short description
Exec=/opt/abdownloadmanager/bin/ABDownloadManager
Icon=/opt/abdownloadmanager/lib/ABDownloadManager.png
Terminal=false
Type=Application
Categories=AB Download Manager    ====> This is not a category name
MimeType ==> File extensions that the app open (no need for it) 

Missing fields: GenericName ==> This shown on app menu like subtitle StartupNotify StartupWMClass ===> This fix app icon on wayland

amir1376 commented 3 months ago

@ZorinFoss Oh. I see thanks for your explanations

These are not my choice, (the compose multiplatform framework did these configurations) , BTW. I will create a custom packager soon, to have more control over these things

amirrezamahsooli87 commented 1 month ago

I encountered a new problem in Ubuntu 20.04, where it would automatically log out after installing the .DEB package for the GNOME desktop environment. Then I realized that the AB Download Manager was active in the startup. When I disabled it via the command line, the desktop environment came up. However, in the end, I had to give up using AB Download Manager altogether because of this issue, and I have currently uninstalled it.