Results 1 to 9 of 9

Thread: Changed icon on KDE Menu Editor but taskmanager still use old icon

  1. #1
    Join Date
    Aug 2008
    Location
    Brazil
    Posts
    3,031

    Default Changed icon on KDE Menu Editor but taskmanager still use old icon

    The application (BricsCAD) originally had a very low res 16 x 16 icon. I created a new 128 x 128 bitmap and set it as the app icon in KDE Menu Editor.

    The new icon is used in the app launcher, the quick launch widget, in Dolphin and, when starting the app, for a brief moment in the task manager button. However, as soon as the app window appear, the task manager button *reverts* to the low res icon (WTH???).

    Not sure if deleting ~/.cache/icon-cache.kcache will help as BricsCAD uses GTK witgets IINM.

    Any ideas?

    TIA

  2. #2

    Default Re: Changed icon on KDE Menu Editor but taskmanager still use old icon

    Sounds like the application explictly sets that icon as window icon...
    Probably not much you can do about it then.

    Not sure if deleting ~/.cache/icon-cache.kcache will help as BricsCAD uses GTK witgets IINM.
    But the taskmanager uses KDE's icon loader (if the application only specifies an icon file name as window icon), so it *might* still help.
    Probably unlikely though.

  3. #3

    Default Re: Changed icon on KDE Menu Editor but taskmanager still use old icon

    Quote Originally Posted by brunomcl View Post
    The application (BricsCAD) originally had a very low res 16 x 16 icon. I created a new 128 x 128 bitmap and set it as the app icon in KDE Menu Editor.

    The new icon is used in the app launcher, the quick launch widget, in Dolphin and, when starting the app, for a brief moment in the task manager button. However, as soon as the app window appear, the task manager button *reverts* to the low res icon (WTH???).

    Not sure if deleting ~/.cache/icon-cache.kcache will help as BricsCAD uses GTK witgets IINM.

    Any ideas?

    TIA
    Hi,

    Where did you save your customized icon?
    I have bricscad here and my icon is customized also. The icon is save in my /home/icons
    and doesn't break in KDE. I am still using bricscad version 15.
    People who do not break things first will never learn to create anything

  4. #4
    Join Date
    Aug 2008
    Location
    Brazil
    Posts
    3,031

    Default Re: Changed icon on KDE Menu Editor but taskmanager still use old icon

    Quote Originally Posted by conram View Post
    Hi, Where did you save your customized icon?
    ~/bin/Utils/Bitmaps/bricscad_128.png (with normal user permissions)

    Quote Originally Posted by conram View Post
    The icon is save in my /home/icons and doesn't break in KDE.
    Is that the exact folder, under /home and not under /home/<user>?

    Quote Originally Posted by conram View Post
    I am still using bricscad version 15.
    That might be why it doesn't work in version 18. As it's still beta I'll open a support request with Bricsys.

  5. #5
    Join Date
    Aug 2008
    Location
    Brazil
    Posts
    3,031

    Default Re: Changed icon on KDE Menu Editor but taskmanager still use old icon

    Quote Originally Posted by wolfi323 View Post
    But the taskmanager uses KDE's icon loader (if the application only specifies an icon file name as window icon), so it *might* still help.
    Probably unlikely though.
    Yes, it didn't work, unfortunately. But thanks for the tip, Wolfi.

  6. #6
    Join Date
    Aug 2008
    Location
    Brazil
    Posts
    3,031

    Default Re: Changed icon on KDE Menu Editor but taskmanager still use old icon

    Quote Originally Posted by brunomcl View Post
    As it's still beta I'll open a support request with Bricsys.
    Opened Support request SR79861 - Low res icon on KDE plasma task manager button

  7. #7

    Default Re: Changed icon on KDE Menu Editor but taskmanager still use old icon

    I nearly forgot, maybe this could help:
    The taskmanager reads custom application->icon mappings (and certain other "settings") from a file called /etc/xdg/taskmanagerrulesrc.
    Maybe it could be modified to use the wanted icon, but I never tried that.
    (~/.config/taskmanagerrulesrc *should* be respected for user-specific overrides I think)

    I might also help to put the icon in some standard place like ~/.local/share/pixmaps/ or ~/.icons/.
    Last edited by wolfi323; 04-Feb-2018 at 05:05.

  8. #8
    Join Date
    Aug 2008
    Location
    Brazil
    Posts
    3,031

    Default Re: Changed icon on KDE Menu Editor but taskmanager still use old icon

    Quote Originally Posted by wolfi323 View Post
    I nearly forgot, maybe this could help:
    The taskmanager reads custom application->icon mappings (and certain other "settings") from a file called /etc/xdg/taskmanagerrulesrc.
    Maybe it could be modified to use the wanted icon, but I never tried that.
    (~/.config/taskmanagerrulesrc *should* be respected for user-specific overrides I think)

    I might also help to put the icon in some standard place like ~/.local/share/pixmaps/ or ~/.icons/.
    Hi Wolfi,

    I took a look at /etc/xdg/taskmanagerrulesrc, there is no explicit reference to icons, I suppose I'd have to understand how it works and add a definition.
    Also, there is no ~/.config/taskmanagerrulesrc here.

    I created both ~/.local/share/pixmaps/ and ~/.icons/ and placed the 128x128 png in them, but after session restart I still get the low res 16x16 icon.

    I'll wait for a reply from Bricsys, they usually reply fast, and see if they have a solution. If not, well, after all it's only a cosmetic issue, I think I can live with it.

    Thank you for your suggestions and insights, I *really* appreciate them.

  9. #9

    Default Re: Changed icon on KDE Menu Editor but taskmanager still use old icon

    Quote Originally Posted by brunomcl View Post
    I took a look at /etc/xdg/taskmanagerrulesrc, there is no explicit reference to icons, I suppose I'd have to understand how it works and add a definition.
    It's the "[Mapping]" part, that specifies what icons (or menu entries?) to associate certain applications with. Although the "[Settings]" part comes into play as well.
    I don't know how it works exactly though.

    Also, there is no ~/.config/taskmanagerrulesrc here.
    Of course not, you'd have to create it manually and it should override the global one for the user then.
    But I'm not sure it really does, so maybe better modify the global one for testing/experimenting.

    I created both ~/.local/share/pixmaps/ and ~/.icons/ and placed the 128x128 png in them, but after session restart I still get the low res 16x16 icon.
    Maybe it would work if you'd rename it to bricscad.png (or whatever the original icon is named), without the _128 part?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •