Extract icon from appimage

17,158

Solution 1

1. Automatically

There is a convenience function available for AppImages. You do not need to extract the icon manually. All you need to do is: run the optional appimaged daemon (it runs in user space and does not need root privileges). Download it here:

It's bundled as an AppImage, and can be used just like one: make it executable and execute.

This daemon scans a few well-known locations for appimages and extracts icons and creates menu entries automatically for you. (It also removes them again if you delete an AppImage).

It is recommended to keep all your AppImages in a directory you should create: ${HOME}/AppImages


Update: According to a comment by user @TSr, appimaged is deprecated now. I did not check this info.

2. Manually

If you insist to do this manually, you can run (in a terminal!):

 ./your.AppImage --appimage-extract

This will create a sub-directory called squashfs-root and extract the complete contents of the bundle there. Here you should find what you are looking for.

Warning: this will only work if the AppImage is of type 2 (following the newer AppImage spec). For AppImage type 1, you have to mount the AppImage manually and then copy the icon file from the mounted directory tree:

mkdir /tmp/mountpoint
sudo mount -o loop your.AppImage /tmp/mountpoint

If the icon is missing, the packager of the AppImage did not bother to include it. Complain with him/her then.

Solution 2

Use AppImageLauncher, works perfect with Ubuntu 20.04: https://github.com/TheAssassin/AppImageLauncher

Share:
17,158

Related videos on Youtube

Dan Dascalescu
Author by

Dan Dascalescu

Bio Co-founded the visa-free startup ship, Blueseed, the Quantified Self Forum (a community for self-trackers), and two web startups using meteor. Former Developer Advocate at Google - Progressive Web Apps (PWA), Accelerated Mobile Pages (AMP), Chrome OS, and AR (Lens). Former localization engineer at Yahoo!. I currently discourage localization in general, for reasons I haven't seen successfully challenged since 2009, with the exception of translating basic computer programming materials as a way to onboard new developers. More about me on on Wikipedia or on my website. My CV is on StackOverflow Careers. Interests Entrepreneurship and disruptive technologies, biotech, 3D printing, brain-computer interfaces, prediction markets. Applying ~20 years of experience in software development and ~5 in the startup world in CTO roles at emergent tech companies. Thanks If you feel grateful, here's my Amazon wishlist.

Updated on September 18, 2022

Comments

  • Dan Dascalescu
    Dan Dascalescu over 1 year

    When creating a .desktop shortcut to an appimage, the Icon is not automatically extracted from the appimage, even though the appimage does contain an icon.

    1. Is this a limitation of the DE? Is there a bug tracking it? I'm using GNOME in Ubuntu 18.04, and forcing the user to hunt for an icon file, place it in some path, then link to it from the .desktop file, is silly.

    2. What's an easy way to extract the icon from that appimage?

  • Powerriegel
    Powerriegel about 4 years
    Here is a how to for the installation: github.com/AppImage/appimaged
  • TSr
    TSr over 3 years
    appimaged is deprecated now.
  • henrebotha
    henrebotha almost 3 years
    appimaged is alive again, now at github.com/probonopd/go-appimage/releases