Closed hongyi-zhao closed 2 years ago
Got it. Based on the comment here and documentation here, append a white space and %F
to Exec
fixes the problem:
$ sed -Ei 's,^(Exec=[^ ]+)$,\1 %F,' ~/.local/share/applications/appimagekit_e4bfcabe13873ad0cf19fecf8ae7e621-CAJViewer.desktop
$ grep -m1 ^Exec ~/.local/share/applications/appimagekit_e4bfcabe13873ad0cf19fecf8ae7e621-CAJViewer.desktop
Exec=/home/werner/Applications/CAJViewer-x86_64-buildubuntu1604-210401_2ebaf269a2df7ca41a95632bc9095d69.AppImage %F
That "fix" is just temporary. Make sure to inform the vendor of the AppImage to include the %F
upstream as well.
Do you mean the Desktop file comes from the AppImage
instead of being created by AppImageLauncher
from scratch?
The desktop file is extracted from the AppImage, then modified by AppImageLauncher respectively libappimage to point to the AppImage (along with some other features). AppImageLauncher contains code to ensure AppImages will be reintegrated when a new version is installed to make sure changes in its code, or, e.g., libappimage, are applied. When the AppImage is reintegrated, modifications like yours on the integrated desktop files will be lost. They are not supposed to be edited by the user.
On Ubuntu 20.04.3 LTS, I installed
AppImageLauncher
as follows:Then I generated launcher with it for
CAJViewer
as follows:Now, I want to associate the CAJViewer appimage with the file it can open, i.e., the
caj
file, so that the file can be opened automatically by double-clicking on it. But I can't find the correspondingOpen With
entry to complete this operation, as shown below:Any hints for fixing this problem?
Regards, HZ