AppImage / AppImageKit

Package desktop applications as AppImages that run on common Linux-based operating systems, such as RHEL, CentOS, openSUSE, SLED, Ubuntu, Fedora, debian and derivatives. Join #AppImage on irc.libera.chat
http://appimage.org
Other
8.77k stars 563 forks source link

Could not symlink .DirIcon #296

Closed thibaultmeyer closed 5 years ago

thibaultmeyer commented 7 years ago

I can't generate appimage package. The command exit without error but the appimage package is not generated.

#> cat /etc/os-release
NAME="Linux Mint"
VERSION="18 (Sarah)"
ID=linuxmint
ID_LIKE=ubuntu
PRETTY_NAME="Linux Mint 18"
VERSION_ID="18"
HOME_URL="http://www.linuxmint.com/"
SUPPORT_URL="http://forums.linuxmint.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/linuxmint/"
UBUNTU_CODENAME=xenial

#> uname -a
Linux zhadum 4.4.0-47-generic #68-Ubuntu SMP Wed Oct 26 19:39:52 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
#> ./appimagetool-x86_64.AppImage -v test out
WARNING: appstreamcli is missing, please install it if you want to use AppStream metadata
WARNING: appstream-util is missing, please install it if you want to use AppStream metadata
Desktop file: /home/zero-x-baadf00d/test/cashless.desktop
Name: PayinTech.IO - Cashless
Icon: /usr/share/io-payintech-cashless/app
Exec: /usr/bin/io-payintech-cashless
Comment: PayinTech
Type: Application
Categories: System
File used for determining architecture: /proc/self/exe
Arch: 86_64
App name for filename: PayinTech.IO_-_Cashless
/home/zero-x-baadf00d/test should be packaged as out
Creating .DirIcon symlink based on information from desktop file
Could not symlink .DirIcon
probonopd commented 7 years ago

Could not symlink .DirIcon means there is some issue finding and symlinking the icon file. Please check:

thibaultmeyer commented 7 years ago

I find what going wrong, by example, with Icon=/usr/share/io-payintech-cashless/app, appimage continue to generate a symlink to a inexisting file ==> .DirIcon --> app.png but the file is not copied

probonopd commented 7 years ago

Yes, instead of Icon=/usr/share/io-payintech-cashless/appplease use Icon=app and place app.png at the root directory of the AppDir (next to AppRun).

Is your app available for download? I'd link to it on the AppImage list.

tschenkde commented 7 years ago

Actually I have a very similar problem. I want to make an old Firefox-AppImage following the video for LeafPad (which works).

Run ./AppImageAssistant Firefox.AppDir OldFirefox.AppImage

and I read the following line

xorriso : UPDATE : 1 files added in 1 seconds Added to ISO image: file '/.DirIcon'='/usr/share/icons/hicolor/48x48/apps/firefox.png'

I donnot want to take files from /usr/share ... (AppImage should be independent from host ?) The icon is in the rootfolder as is the .desktop -file, which defines Icon=firefox, so why is it not taken.

running ./OldFirefox.AppImage fails as one would expect : Cannot open /tmp/.mount_m0Nyss/.DirIcon

tschenkde commented 7 years ago

Same problem with Firefox-Dev Recipe:

ends with Error: Cannot open /tmp/.mount_GxEjSo/.DirIcon ....

azubieta commented 6 years ago

We have been working on fixing symlinks issues this week. Would you mind to re-tests?

azubieta commented 5 years ago

Closing the issue as solved.

probonopd commented 5 years ago

@0xbaadf00d please comment here if the problem persists, then we will reopen it.

charterchap commented 3 years ago

In case this helps anyone else, I hit this as I was mounting a shared folder inside my vm which was creating a simple permissions issue. Try creating a symlink in your appdir by hand and see what happens.