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

Install AppImage File Generates a Blank .desktop File #186

Closed
lfom opened this issue Aug 15, 2021 · 9 comments
Closed

Install AppImage File Generates a Blank .desktop File #186

lfom opened this issue Aug 15, 2021 · 9 comments
Labels
bug Something isn't working enhancement New feature or request

Comments

@lfom
Copy link

lfom commented Aug 15, 2021

Before opening a new issue
Install the staging branch and check if the unexpected behavior is happening there as well.
If you are on ArchLinux-based distro, you can install it through AUR (bauh-staging). Otherwise, you have
to clone the repository and install it with pip.

Done, the problem persists

Describe the bug

  1. Download latest version of Avidemux from https://www.fosshub.com/Avidemux.html
  2. Rename downloaded file extension to .AppImage (see AppImage File Chooser Dialog ignores "appname.appImage" #185)
  3. Use bauh to install the AppImage file
  4. There is no icon for the installed app and bauh cannot run it either
  5. The newly created .desktop file in ~/.local/share/applications is empty (0 bytes)
$ update-desktop-database ~/.local/share/applications
Could not parse file "/home/lfom/.local/share/applications/bauh_appimage_avidemux.desktop": Key file does not have group ?Desktop Entry?

Related errors from running bauh in the terminal:

/bin/sh: 1: Syntax error: word unexpected (expecting ")")

Software Environment
bauh version: 0.9.18
O.S: _Pop!OS 21.04 (like Ubuntu 21.04)
Python version: Pyhton 3.9.5
Installation method: pip

Once again, thanks a lot for bauh.
Regards

@vinifmor vinifmor added the bug Something isn't working label Aug 21, 2021
@vinifmor
Copy link
Owner

@lfom thanks for reporting this. I will have a look.

@vinifmor vinifmor added enhancement New feature or request and removed bug Something isn't working labels Aug 21, 2021
@vinifmor
Copy link
Owner

Actually it is not a bug. Bauh just copies the desktop file provided by the AppImage (this application provides an empty one). Bauh coud generate a fresh one for this sort of scenarios. I'm going to add this as an enhancement task.

@vinifmor vinifmor added bug Something isn't working staging labels Aug 21, 2021
@vinifmor
Copy link
Owner

I've published the fix/enhancement to the staging branch. Try reinstalling the file and check if the desktop entry is properly generated.

@lfom
Copy link
Author

lfom commented Aug 21, 2021

@vinifmor .desktop file is not empty anymore, and it launches the app correctly. I only missed the "Comment=" line.

@vinifmor
Copy link
Owner

@lfom the missing "Comment" field is expected, since the current installation form does not have it. It would fit as a separate feature.

@lfom
Copy link
Author

lfom commented Aug 23, 2021

@vinifmor Isn't it the Description when installing manually?

@vinifmor
Copy link
Owner

vinifmor commented Aug 23, 2021

You're right. I forgot that for .desktop files the "Comment" field is equivalent to "Description". I'm going to add it. Thanks.

@vinifmor
Copy link
Owner

Already on staging

@vinifmor vinifmor mentioned this issue Aug 23, 2021
@vinifmor vinifmor removed the staging label Aug 23, 2021
@lfom
Copy link
Author

lfom commented Aug 27, 2021

Tested on 0.9.19 and it seems to be working fine. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants