-
-
Notifications
You must be signed in to change notification settings - Fork 565
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
How to set icon for AppImage binary itself ?? #346
Comments
This functionality was available as part of |
Will this feature ever return? I personally recommend AppImages to people, for the primary reason that they can be downloaded and run without any additional tools (like appimaged). So if a user has a directory full of AppImages (like I do on several machines that do not run appimaged), then it is quite annoying for all of these apps to have the same icon. |
It might come back if someone (= not me) implements the the whole full-blown Thumbnail Managing Standard in the AppImage runtime. Pull requests welcome. |
Are you sure thumbnails are for files other than images? |
@teras you are right. So if we can implement it "in the right way", even better! But let's keep in mind that this a) must not add heavy dependencies to |
@probonopd I don't have any idea how it is on other desktop systems, and there could be millions of them :) Indeed the support should be global, but how? |
The XDG Thumbnailer spec is implemented by every desktop. So as long as we use it we should be fine. |
WIP at #578 |
The thumbnailer code has been merged. It just has to be implemented properly in the runtime. CC @probonopd |
Do we still plan to do that? I think we should... |
I don't think our plans on that have changed. We just need someone to do it. |
Now we have a thumbnailers for gnome, kde and the default XDG thumbnails implementation. Therefore we can close the issue. |
@azubieta do we also have the feature that when no thumbnailer is installed, than merely running the app will put the thumbnail icon into the place specified by the XDG thumbnail spec? We had this a while ago (for type-1 images) and seemingly people liked it. |
The runtime is already linked to libappimage so it could be implemented. I just don't like the idea of adding more stuff to the runtime. |
I was not really aware of that... why have we done this?
Agree, I am also a bit hesitant for the same reason. Also, it's a workaround rather than a proper solution in the sense of AppImageCommunity/appimaged#30 |
@azubieta Ouch, it is incredible cool and useful, so, it is part of new runtime (sorry, do not see commit reference here)? |
Most traditional distributions are opposed to the AppImage concept because it means that users don't go the distribution for applications, only for the base system. |
Actually, this is exactly the code I learned from how to do this :) I didn't know about the XDG thumbnailing mechanics before. Well, I will stop spamming now and will go to bed instead. I am happy with my improvised solution, even if it only works with GTK-based desktop environments. Maybe it helps someone. I am in the fortunate situation that my app will only be distributed inside our company, so I know that all users are using Gnome shell or XFCE (and for all other users, it won't change anything anyway). Of course, sometime in the future I will surely build such an app for the public, so I will keep my eyes on this issue :) Thank you for your hard work! |
They are currently not used (see AppImage/AppImageKit#346 (comment)) But once app image supports icons, use these.
Hi Friends, The plugin is a simple bash script: It adds a hook to generate the thumbnail. Example usage:
|
Thanks @mnesarco. Just be aware that only copying a icon file is not sufficient as per the dreaded XDG Thumbnail Spec, you also need to have certain metadata ("Thumbnail Attributes") stored in a byzantine format (no, they are not using xattrs) inside the png. |
Thanks @probonopd , yes you are absolutely right. The XDG Thumbnail Spec is so weird, so much that file managers ignore the metadata :D. I was looking desesperately to a solution to set the icon without resorting to installing any daemon. So I tested the @ChristianCiach solution and it worked only to show AppImage with the icon in the file manager, it does not work for example to show the icon on the dock when launched. So I have resorted to another approach: Now I have created a script to transform the AppImage file into a shell script that "installs" the AppImage and set the icon and launcher in $HOME/.local/shared/icons and $HOME/.local/shared/applications. It works better, and the icon is ok on the dock too. It is an independent script so it can be used for anyone who likes this approach: https://gist.github.com/mnesarco/baa2d49d9ec1b1edb41be7202cac352d The generated installer script is 100% self-contained. So the final user still downloads a single file. |
I'm still confused, what would be the correct way to have an icon to the .AppImage binary itself?? without requiring to install any kind of daemon, a way that every file manager would show the icon just by downloading the AppImage file |
Either you need a daemon like |
You can get an icon for the filesystem by using a thumbnailer. |
Yeah I updated tauri to the latest version and it seems to have fixed the issue. Thanks! |
@probonopd Would you mind explaining how it works for "a file manager that natively supports it."? I am making a shell-based format that works like AppImages but also like the ape-loader of Cosmopolitan libC. Thanks! |
For example, Filer supports the AppImage file format natively. |
So, do all other filers that show icons for AppImages do it the same way? Caja for example? Does it implement a handler? Or does its thumbnailer service do the work? I made a daemon called PELFd query the bundles by executing them with the parameters: |
Okay. I read the Thumbnail Managing Standard, now I understand (i think), I'll test it in OpenBSD before I push the changes to my repo. I hope I can get this format on par with AppImages soon and also be able to package QT/Python apps without recompilation. GTK seems to work well enough, but gschemes and other things need to be considered. |
I created appimage of my two applications , both of them don't show thumbnail/icon for by their self
am i missing something ???
I also seen that filefox appimage also unable to show thumbnail/icon or itself while corebird appimage do.
The text was updated successfully, but these errors were encountered: