Cannot change filetype icon in Plasma

I’m having troubles changing the icon for a file type in Plasma 6.1.4. Changing the icon in system settings will show the selected icon for a second before reverting to the default unknown file icon. I’ve also tried changing the icon by right-clicking a file > Properties > Open with… Change, but the issue persists.

filetypes-ezgif.com-optimize

Checking the file in .local/share/mime/packages/ shows that the icon is being set and saved properly, but will not display:

<?xml version="1.0" encoding="UTF-8"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
    <mime-type type="application/x-osu-beatmap-archive">
        <comment>osu! beatmap archive</comment>
        <icon name="/home/noelle/.local/share/icons/osu-beatmap-5.png"/>
        <glob-deleteall/>
        <glob pattern="*.osz"/>
        <glob pattern="*.osz2"/>
    </mime-type>
</mime-info>

journalctl output when attempting to change icon in System Settings: https://0x0.st/Xxi0.txt
System info: https://0x0.st/XxiU.txt

More than happy to submit a bug report to KDE if needed, but wanted to make sure there wasn’t something obvious I was missing first.

1 Like

I don’t have any obvious solution. I think it should just work, frankly. Perhaps you can send where you got those icons from? I could try to see if they work on my openSUSE Tumbleweed system.

Good to see another osu! player, though. :smile:

Cool seeing you here, don’t have the slightest clue why but I remember coming across your blog a while ago and reading through your improvement week posts :grin:

The icons were taken directly from the osu!.exe file using wrestool, and then converted to .pngs using imagemagick (the .ico one would not show up in the icon selector for some reason).

Edit: for what it’s worth, the same thing happens when selecting one of the default system icons, so I don’t believe the icons themselves are the issue.

Perhaps on the osu! forums? I used to roam around there and still somewhat do, just not that much. I’m glad that you enjoyed those posts, though! :smiley:

I was thinking more that if they don’t work on my side, with a different distro, it might be a Plasma bug or a misconfiguration error of some kind.

1 Like

Did you try a reboot after? Some things like icons and fonts need a reboot for the system to start displaying correctly.

1 Like

I don’t know what an osu-beatmap is, but an internet search finds this, maybe the last post will help you:

I have no idea where the mentioned folder is located in Linux. Perhaps ~/.local/share/osu?

Yeah I tried numerous logouts and reboots, no luck.

The “icon” referred to in that post is the in-game background of the beatmap (essentially what this game calls its levels), so unfortunately not related.

1 Like

Hmm, just a thought you could try set it through the menu’s application editor, it would rule out if its a bug in these settings.

I don’t see where I would be able to do that, I’m trying to change the icon for a file type rather than a specific application.

ok, sorry my misunderstanding.

1 Like

Try this:

  • Copy the icon file you want to use to /username/.icons/mycons
  • Rename it to the original name for the file type you are trying to change
  • Search for the icon as you were, but use the “Browse…” option
  • Select the icon you just placed in /username/.icons/mycons

As said above, you may need to reboot to refresh the icon cache.

This is for in-game thumbnail for beatmaps, which is generated based on the background set by the creator of a beatmap, IIRC. Here, Noelle tries to add an system icon for the files you download for the game.

The path is available on Linux if you use the built-in editor. However, at the moment, there are two clients for the game: Lazer and the default client which the community calls stable. Only Lazer is available for Linux officially. Stable isn’t. I believe Lazer isn’t available for beatmap creation. The community has made a script for installing the game on Linux, however, but that can take any path you want. The default for Lazer is $HOME/.local/share/osu, while for osu-winello is $HOME/.local/share/osu-wine.

1 Like

Lazer definitely has an editor and it’s pretty fully-functioning. Not relevant to the issue but thought I’d let you know :stuck_out_tongue:

I know, but I don’t think someone has used it to submit a map for getting ranked, yet.

Sorry for late response but this did not work unfortunately. Though I’m not exactly sure what you mean by the second step?