Blurred or Low quality of launcher icon is observed even using SVG icon
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Blurred or Low quality of launcher icon is observed even using SVG icon
Hi.
My application's launcher icon is blurred or low quality even if I use Scalable Vector Graphics (SVG) Icon.
When I first encountered this issue, I tried to solve it by providing different set of sizes in /usr/share/icons/hicolor/[nxn]/apps. But in some Linux distros, icon still of low quality or worst case, nothing is displayed.
I have checked forums about Linux and mostly advised to have an SVG too.
I thought it would work but still no.
Is there difference in handling icons per Linux distros?
I am just new to Linux Development and your inputs are highly appreciated
you are not giving us much info.
what launcher? how did you create it? what information does it contain? just show us the launcher's content. it's a .desktop file, contains text.
if i put "appicon" into any desktop launcher, i get a placeholder (icon not available).
please, do not obfuscate the single most important piece of information i asked for.
actually i don't see why you'd need to put these placeholders (MyApp etc.) in anywhere.
just show us the content of that file, and maybe also describe what you're seeing on the desktop (or wherever that launcher resides).
and what distro all this is happening on.
"appicon" is the filename of my PNG and SVG icons. Of course, it's not in the Linux directory since I created it myself.
Quote:
Hi.
My application's launcher icon is blurred or low quality even if I use Scalable Vector Graphics (SVG) Icon.
When I first encountered this issue, I tried to solve it by providing different set of sizes in /usr/share/icons/hicolor/[nxn]/apps. But in some Linux distros, icon still of low quality or worst case, nothing is displayed.
I quoted my first post in this thread.
So my question now, is there any difference in handling application icons per Linux distros?
it will return the absolute path to the chosen icon.
play with the icon size requested; 24 in this case.
you should probably have PNG icons in various sizes, or a vastly oversized SVG icon.
you should also check if the application rendering the launcher is capable of using SVG icons. i'm not sure, but i seem to remember that that is not to be taken for granted.
I stored my icons in /usr/share/icons/hicolor/[nxn]/apps for the icons size 32x32,48x48 and 256x256.
My SVG icon is in /usr/share/icons/hicolor/scalable/apps.
I have tried the code you provided with (appicon, 48) in Ubuntu 16.04. The correct path of 48x48 icon is returned.
So I set the Launcher Icon size into 48 and the icon in dock is displayed correctly.
But no icon displayed(only black) in alt+tab and in search menu. So I check the SVG icon in /usr/share/icons/hicolor/scalable/apps and I found out it was displayed as black. I don't know if there is something missing in my system but the SVG icon is OK in 18.04.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.