Results 1 to 2 of 2

Thread: (KDE) Unable to change icon associated with mimetype due to missing subdirectories.

  1. #1
    Join Date
    Sep 2013
    Location
    Norfolk, UK
    Posts
    1,141

    Default (KDE) Unable to change icon associated with mimetype due to missing subdirectories.

    TW 20151128 / KDE Frameworks 5.16.0 / System Settings 5.4.3

    Attempting to change the icon associated with a mimetype (System Settings -> Applications -> File Associations) fails to work.

    Within system settings it gives the appearance of having worked, however having closed System Settings the icon is unchanged when viewing a directory listing using Dolphin, and if one again uses System Settings it shows the original icon.

    This section of ".xsession-errors-:0" gave the clue...

    Code:
    m_userSpecifiedIcon has changed. Now set to "text-rdf+xml"
    Entry  "application/rdf+xml"  is dirty. Saving.
    m_userSpecifiedIcon has changed. Now set to "text-rdf+xml"
    writing "/home/paul/.local/share/mime/packages/application-rdf+xml.xml"
    Couldn't open "/home/paul/.local/share/mime/packages/application-rdf+xml.xml" for writing
    "application/rdf+xml" hasDefinitionFile: false
    Specifically, the "Couldn't open..." - The subdirectory didn't exist.

    Having manually created ~/.local/share/mime/packages, changing the icon then worked correctly.

    I have 3 users on that particular machine, none of whom had a "~/.local/share/mime/*" subdirectory.

    Interestingly, System Settings was able to create an additional subdirectory, "~/.local/share/mime/application".

    I tried again with one of the other users, initially just creating "~/.local/share/mime" - which failed, it had to be "~/.local/share/mime/packages".

    So it seems that System Settings expects that subdirectory to "just be there"...

    I guess a bug report against kcm_filetypes is probably in order.
    Regards, Paul

    Tumbleweed (Snapshot: 20190716) KDE Plasma 5
    Leap 15.0 KDE Plasma 5
    [Non-Tumbling Tumblweed (20150508) KDE 4 - Resurrected]

  2. #2
    Join Date
    Sep 2013
    Location
    Norfolk, UK
    Posts
    1,141

    Default Re: (KDE) Unable to change icon associated with mimetype due to missing subdirectories.

    Regards, Paul

    Tumbleweed (Snapshot: 20190716) KDE Plasma 5
    Leap 15.0 KDE Plasma 5
    [Non-Tumbling Tumblweed (20150508) KDE 4 - Resurrected]

Posting Permissions

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