RetroFed Forum
Your home away from modern life.
Krita is doing its own thing
Post Reply
AuthorMessage
flamingos-cant (hopepunk arc) feddit.uk flamingos@feddit.uk
Joined: 2023-06-12
Quote

Patrick, who has the Krita logo overlaid on him, and Man Ray have a back and forward pointing out that desktop files can have multiple file types associated with a programme by setting the mime type field. It ends with Man Ray insisting on Krita making one desktop file, but instead shows a list of desktop files with the format org.kde.krita.format.desktop.
466   Original
UndergroundParking lemmy.cafe UndergroundParking@lemmy.cafe
Joined: 2026-04-12
#2 · Quote Reply

Anyone with any light to shed?

40
fonix232 fedia.io fonix232@fedia.io
Joined: 2023-06-13
#3 · Quote Reply

Anyone with any light to shed?

.desktop files are essentially used similar to Windows' registry - you create such a metadata file in a specific location, and it acts as a launcher, autostart setup, and file type assignment (so you can easily assign e.g. PNG files to open with Krita by default).

As the wiki says, you can put multiple MIME types (file type descriptor such as "text/plain" or "application/json" or "image/jpeg" and so on) onto one dotdesktop file, meaning you only need a single launcher to support all file types.

Krita explicitly creates quite a few dotdesktop files, each supporting only a single MIME type.

Downside: littered desktop.

Upside: you can easily pick and choose which file types to open with Krita directly.

Most desktop environments actually handle the [samename]. extension.desktop repetition so you'll only have one Krita launcher entry but it will still collate all MIME type support that is present. Want to exclude e.g. BMP files? Delete the .bmp.desktop file.

72
it_depends_man lemmy.world it_depends_man@lemmy.world
Joined: 2024-05-19
#4 · Quote Reply

This part of the UX and development of linux is still very much taking baby steps unfortunately. Massive lack of interest and manpower to do these things cleanly and provide good documentation.

9
enbiousenvy lemmy.blahaj.zone enbiousenvy@lemmy.blahaj.zone
Joined: 2023-07-01
#5 · Quote Reply

So thats fucking why?????????????????? omfg.

krita have so much in "open with" menu on gnome hily shit

98
Err(()).unwrap() Moderator rtxn@lemmy.world
Joined: 2023-06-24
#6 · Quote Reply

Anyone with any light to shed?

XDG Desktop files are a mostly standardized way to integrate individual programs into the desktop. For example, a desktop file in /usr/share/applications or ~/.local/share/applications can add programs to the application launcher, both desktop launcher menus and separate apps like dmenu-run; or they can be used to start applications when the desktop session starts by placing them in ~/.config/autostart.

Desktop files can also set properties related to an application. In this particular case, the MimeType field tells the desktop session what MIME types should be associated with the application. For example, my desktop file for Blender associates the application/x-blender MIME type with it, which causes Blender to show up in the Open with... dialog.

The MimeType field is a semicolon-separated list. One desktop file can define multiple associated MIME types for the same application. Krita instead creates a separate file for each association.

15
scrion lemmy.world scrion@lemmy.world
Joined: 2023-11-07
#7 · Quote Reply

This part of the UX and development of linux is still very much taking baby steps unfortunately. Massive lack of interest and manpower to do these things cleanly and provide good documentation.

This is nonsense. The documentation is readily available, and it takes arguably less time to provide the code to write a single, proper file than to create 50 desktop entries.

This is just ignorance on whoever wrote that part of Krita.

37
it_depends_man lemmy.world it_depends_man@lemmy.world
Joined: 2024-05-19
#8 · (edited) Quote Reply

This is nonsense. The documentation is readily available, and it takes arguably less time to provide the code to write a single, proper file than to create 50 desktop entries. This is just ignorance on whoever wrote that part of Krita.
[removed by moderator]
-10
Ephera lemmy.ml Ephera@lemmy.ml
Joined: 2020-05-31
#9 · Quote Reply

Hmm, what distro? I don't use Krita regularly, but never seen it have lots of desktop files.

I do be on KDE, though, so might also be some KDE-specific fix, I guess...

13
wltr discuss.tchncs.de wltr@discuss.tchncs.de
Joined: 2025-10-26
#10 · Quote Reply

So thats fucking why?????????????????? omfg. krita have so much in "open with" menu on gnome hily shit

I just hate it, need to remove Krita, stopped using it after Gimp is Wayland native.

22
wltr discuss.tchncs.de wltr@discuss.tchncs.de
Joined: 2025-10-26
#11 · Quote Reply

Hmm, what distro? I don't use Krita regularly, but never seen it have lots of desktop files. I do be on KDE, though, so might also be some KDE-specific fix, I guess...

Gnome shows like a million of open with Krita entries.

11
scrion lemmy.world scrion@lemmy.world
Joined: 2023-11-07
#12 · Quote Reply

[removed by moderator]

😂👌

4
vagrancyand sh.itjust.works vagrancyand@sh.itjust.works
Joined: 2026-04-01
#13 · Quote Reply

[removed by moderator]

Because distros don't do it differently. Different DEs sometimes deviate from the established standards and practices. It's not a distro change, it's whatever weird little DE you use that decided to do something stupid.

That being said .desktop is a unified standard with unified documentation implemented in a fairly unified way across various DEs, with the only difference is some DEs support finding desktop files in some extra folder locations.

Every distro could maintain a complete list of popular DEs and a link to the documentation, or people could just look it up for the DEs they use and target. I agree there should, at this point in time, be some standard service to just call and handle desktop files that all DEs use that way application level developers can just call that same service and everything gets put everywhere it needs to be, but given the controversy of systemd, there's not going to be a universal solution for that since this is absolutely not a kernel-level service that needs to happen.

14
Err(()).unwrap() Moderator rtxn@lemmy.world
Joined: 2023-06-24
#14 · Quote Reply

[removed by moderator]

Get in the timeout box.

9
nialv7 lemmy.world nialv7@lemmy.world
Joined: 2024-02-27
#15 · Quote Reply

why are you posting here instead of sending a bug report to krita?

-2
DeckPacker piefed.social DeckPacker@piefed.social
Joined: 2026-04-05
#16 · Quote Reply

Damm, I learned a lot about Linux through this meme

11
Ŝan • 𐑖ƨɤ piefed.zip Sxan@piefed.zip
Joined: 2025-06-18
#17 · Quote Reply

I have not looked at Krita, but I can þink of one (still indefensible) reason to do þis: if þe launcher needs special flags per file type. For example, if Krita needed krita --svg file.svg and krita --png file.png. Þis would require multiple .desktop files. If þat were þe reason, it'd be better to fix þe arguments and build in file type detection or, worst case, create a bash launcher which does so. So it's still indefensible but I can see how someone might get from here to þere wiþout being fundamentally stupid.

2
grue lemmy.world grue@lemmy.world
Joined: 2023-06-13
#18 · Quote Reply

why are you posting here instead of sending a bug report to krita?

Asked and answered

10
nialv7 lemmy.world nialv7@lemmy.world
Joined: 2024-02-27
#19 · (edited) Quote Reply

Asked and answered

why not help improve the situation for every one, instead of just complaining about it?
i don't get it. we don't often get the chance or power to make things better like this.

2
FauxLiving lemmy.world FauxLiving@lemmy.world
Joined: 2025-02-10
#20 · Quote Reply

why not help improve the situation for every one, instead of just complaining about it? i don't get it. we don't often get the chance or power to make things better like this.

Sir, this is a c/linuxmemes

I'm sure the OP is capable of doing multiple things at once.

Also, Krita is aware of the issue and is doing this intentionally. They set the NoDisplay=true option in the .desktop file so that users of DEs that are built to the freedesktop standards will not see this 'issue'.

The only people affected are the ones who are manually digging around their .desktop files, in which case they should be more than capable of understanding why these files exist and why it doesn't matter that there are multiple.

8
grue lemmy.world grue@lemmy.world
Joined: 2023-06-13
#21 · (edited) Quote Reply

why not help improve the situation for every one, instead of just complaining about it? i don't get it. we don't often get the chance or power to make things better like this.

Why don't you file the bug report, since you apparently feel so strongly about it? Instead, you're not even complaining but meta-complaining, which is even worse!

0
FauxLiving lemmy.world FauxLiving@lemmy.world
Joined: 2025-02-10
#22 · (edited) Quote Reply

Why don't you file the bug report, since you apparently feel so strongly about it? Instead, you're not even complaining but meta-complaining, which is even worse!

Whereas I am meta-meta-complaining, the far superiour position. gigachad.jpg

1
realitaetsverlust piefed.zip realitaetsverlust@piefed.zip
Joined: 2025-12-04
#23 · (edited) Quote Reply

I know this is a meme, but in case it's has a serious undertone, the question in this case is - who really cares?

Those are desktop files. You usually don't manually look into that folder in the terminal. It's not like a snap where your lsblk output is being cluttered.

This is such a minor problem that it's barely worth being talked about. It's a mere "best practice was ignored" case that has Z E R O impact on performance, maintainability or usability.

16
grue lemmy.world grue@lemmy.world
Joined: 2023-06-13
#24 · Quote Reply

I have not looked at Krita, but I can þink of one (still indefensible) reason to do þis: if þe launcher needs special flags per file type. For example, if Krita needed krita --svg file.svg and krita --png file.png. Þis would require multiple .desktop files. If þat were þe reason, it'd be better to fix þe arguments and build in file type detection or, worst case, create a bash launcher which doe...

One of @FauxLiving@lemmy.world's comments linked to a bug report about it. Turns out the real reason is that Krita uses a plugin architecture that allows additional file types to be supported, so it can't actually know the complete list of MIME types to put in the .desktop file at application install time.

Krita makes it possible for plugins to extend Krita with additional file format support. Those plugins come with a desktop file that tell the desktop that krita can load those file types. Of course Krita's main desktop file cannot have the full list of supported file types, because that's implemented by plugins. Most of those plugins are shipped with Krita, but that is not necessary. People can create extra import/export plugins that still need desktop files so your desktop can know that Krita can load this file format.

I'm not completely convinced that's a good reason (compared to, say, having each plugin installation modify a single krita.desktop file or something), but I think it manages to upgrade it from "indefensible."

11
nialv7 lemmy.world nialv7@lemmy.world
Joined: 2024-02-27
#25 · Quote Reply

Why don't you file the bug report, since you apparently feel so strongly about it? Instead, you're not even complaining but meta-complaining, which is even worse!

i don't even use krita? what am i? the bug concierge, just collecting people's complaints around the whole internet and file bugs for them?

3
sepi piefed.social sepi@piefed.social
Joined: 2024-01-27
#26 · Quote Reply

Ok. You have a valid point. But hear me out here: what if we just use a bajillion desktop files instead? How many do you think this unholy contraption can hold?

7
liinux pawb.social liinux@pawb.social
Joined: 2026-05-07
#27 · (edited) Quote Reply

I know this is a meme, but in case it's has a serious undertone, the question in this case is - who really cares? Those are desktop files. You usually don't manually look into that folder in the terminal. It's not like a snap where your lsblk output is being cluttered. This is such a minor problem that it's barely worth being talked about. It's a mere "best practice was ignored" case that has Z...

I'm not sure about this case because I don't use flatpak that much, but to be honest I hate when I install an Electron based program such Freetube, and even though I installed the BIN binary (arch btw, not happened this on Debian based distros) for some reason my package manager decided to install the whole Electron framework with DE included. I get that it depends on it to work, but I don't need 40 Electron packages to show in my Wofi that I would never use, is so ugly. The same with Qt programs and any single KDE app (but I understand in this case)

I mean, yeah I understand that Freetube depend on Electron to work, but why when installing Steam this is not the case?

4
grue lemmy.world grue@lemmy.world
Joined: 2023-06-13
#28 · Quote Reply

i don't even use krita? what am i? the bug concierge, just collecting people's complaints around the whole internet and file bugs for them?

You're the one who's upset about it.

-1
wrinkle2409 lemmy.cafe wrinkle2409@lemmy.cafe
Joined: 2026-02-10
#29 · Quote Reply

I know this is a meme, but in case it's has a serious undertone, the question in this case is - who really cares? Those are desktop files. You usually don't manually look into that folder in the terminal. It's not like a snap where your lsblk output is being cluttered. This is such a minor problem that it's barely worth being talked about. It's a mere "best practice was ignored" case that has Z...
[deleted]
3
Paranoid Factoid lemmy.world Paranoidfactoid@lemmy.world
Joined: 2023-07-19
#30 · Quote Reply

Krita has a fully nondestructive workflow, including alpha masks for filters. It's had it for fifteen years or so. GIMP is still trying to catch up.

0
ILikeBoobies lemmy.ca ILikeBoobies@lemmy.ca
Joined: 2023-08-14
#31 · Quote Reply

I know this is a meme, but in case it's has a serious undertone, the question in this case is - who really cares? Those are desktop files. You usually don't manually look into that folder in the terminal. It's not like a snap where your lsblk output is being cluttered. This is such a minor problem that it's barely worth being talked about. It's a mere "best practice was ignored" case that has Z...

My application menu did get cluttered with multiple krita entries.

Which was a minor annoyance.

34
realitaetsverlust piefed.zip realitaetsverlust@piefed.zip
Joined: 2025-12-04
#32 · (edited) Quote Reply

I'm not sure about this case because I don't use flatpak that much, but to be honest I hate when I install an Electron based program such Freetube, and even though I installed the BIN binary (arch btw, not happened this on Debian based distros) for some reason my package manager decided to install the whole Electron framework with DE included. I get that it depends on it to work, but I don't ne...

but why when installing Steam this is not the case?

Because steam has no application-dependencies, it bundles everything into one binary, including the electron binary, and ships everything in one go. However, steam still has system-dependencies that have to be installed and will pop up in rofi.

9
realitaetsverlust piefed.zip realitaetsverlust@piefed.zip
Joined: 2025-12-04
#33 · Quote Reply

[deleted]

I don't know if you're ragebaiting or are just a massive fucking asshole tbh, but when someone develops an application for free and for fun for anyone to use, I'm not complaining about too many fucking .desktop files.

-1
Feathercrown lemmy.world Feathercrown@lemmy.world
Joined: 2023-07-06
#34 · (edited) Quote Reply

I don't know if you're ragebaiting or are just a massive fucking asshole tbh, but when someone develops an application for free and for fun for anyone to use, I'm not complaining about too many fucking .desktop files.

Apparently it causes issues with "Open With" menu entry spam in some DEs. It's a minor issue but easily solvable and it impacts usability.

6
wrinkle2409 lemmy.cafe wrinkle2409@lemmy.cafe
Joined: 2026-02-10
#35 · (edited) Quote Reply

I don't know if you're ragebaiting or are just a massive fucking asshole tbh, but when someone develops an application for free and for fun for anyone to use, I'm not complaining about too many fucking .desktop files.
[deleted]
2
realitaetsverlust piefed.zip realitaetsverlust@piefed.zip
Joined: 2025-12-04
#36 · Quote Reply

My application menu did get cluttered with multiple krita entries. Which was a minor annoyance.

That would be a valid complaint, however, I just installed krita for testing on arch running with KDE and there's only one entry.
image
However, there's also only a single krita entry in the list of .desktop files so idk what exactly is going on there. Maybe under KDE, it behaves differently, no clue.

10
realitaetsverlust piefed.zip realitaetsverlust@piefed.zip
Joined: 2025-12-04
#37 · Quote Reply

[deleted]

Yeah you're ragebaiting good one lmao

0
whimsy lemmy.zip whimsy@lemmy.zip
Joined: 2025-06-09
#38 · Quote Reply

Krita has a fully nondestructive workflow, including alpha masks for filters. It's had it for fifteen years or so. GIMP is still trying to catch up.

Sure, but what's the point of this comment here?

13
realitaetsverlust piefed.zip realitaetsverlust@piefed.zip
Joined: 2025-12-04
#39 · Quote Reply

Apparently it causes issues with "Open With" menu entry spam in some DEs. It's a minor issue but easily solvable and it impacts usability.

If that's the case, that would be a fair complaint that should be fixed, but I can't really reproduce any problems on KDE or XFCE. Then, it should also be reported as a bug so they're aware.

4
Ricaz lemmy.dbzer0.com Ricaz@lemmy.dbzer0.com
Joined: 2024-08-16
#40 · Quote Reply

Krita has a fully nondestructive workflow, including alpha masks for filters. It's had it for fifteen years or so. GIMP is still trying to catch up.

Relevance?

5
Feathercrown lemmy.world Feathercrown@lemmy.world
Joined: 2023-07-06
#41 · Quote Reply

If that's the case, that would be a fair complaint that should be fixed, but I can't really reproduce any problems on KDE or XFCE. Then, it should also be reported as a bug so they're aware.

Agreed

1
Paranoid Factoid lemmy.world Paranoidfactoid@lemmy.world
Joined: 2023-07-19
#42 · Quote Reply

Sure, but what's the point of this comment here?

This point is that Krita is pretty damned good.

1
prenatal_confusion feddit.org prenatal_confusion@feddit.org
Joined: 2024-09-04
#43 · Quote Reply

Apparently it causes issues with "Open With" menu entry spam in some DEs. It's a minor issue but easily solvable and it impacts usability.

While I agree that the seva should have looked out for it in the first place I think it being volunteer work and open source you or anybody else that has the time and knowledge could fix it too and give back. If it's indeed easily solvable.

1
flamingos-cant (hopepunk arc) feddit.uk flamingos@feddit.uk
Joined: 2023-06-12
#44 · Quote Reply

That would be a valid complaint, however, I just installed krita for testing on arch running with KDE and there's only one entry. However, there's also only a single krita entry in the list of .desktop files so idk what exactly is going on there. Maybe under KDE, it behaves differently, no clue.

It won't show up there because the files have NoDisplay set to true, which hides them from the desktop app view, but they still show up in other places. Here's Nautilus' open with dialogue (where I noticed this):

Short video showing a scrolling list of apps showing many entries for Krita

21
realitaetsverlust piefed.zip realitaetsverlust@piefed.zip
Joined: 2025-12-04
#45 · Quote Reply

It won't show up there because the files have NoDisplay set to true, which hides them from the desktop app view, but they still show up in other places. Here's Nautilus' open with dialogue (where I noticed this):

Okay but that would mean you have to open /etc/share/applications in a file explorer which you - usually - don't really do. Or maybe I'm just too much of a terminal guy to do it.

3
flamingos-cant (hopepunk arc) feddit.uk flamingos@feddit.uk
Joined: 2023-06-12
#46 · Quote Reply

Okay but that would mean you have to open /etc/share/applications in a file explorer which you - usually - don't really do. Or maybe I'm just too much of a terminal guy to do it.

This isn't a directory, it's the list of apps that show up when you right click a file and select 'Open With'.

20
liinux pawb.social liinux@pawb.social
Joined: 2026-05-07
#47 · Quote Reply

but why when installing Steam this is not the case? Because steam has no application-dependencies, it bundles everything into one binary, including the electron binary, and ships everything in one go. However, steam still has system-dependencies that have to be installed and will pop up in rofi.

I guess it depends of a bunch of things, but why when programmers package a program don't do the same more often?

1
nialv7 lemmy.world nialv7@lemmy.world
Joined: 2024-02-27
#48 · Quote Reply

You're the one who's upset about it.

You misread me, man. I wasn't upset, just suggesting what I believe is the right thing to do.

3
grue lemmy.world grue@lemmy.world
Joined: 2023-06-13
#49 · Quote Reply

You misread me, man. I wasn't upset, just suggesting what I believe is the right thing to do.

Well, you sure sound upset, and you're downvoting both me and the other guy who replied to you, so...

-1
nialv7 lemmy.world nialv7@lemmy.world
Joined: 2024-02-27
#50 · Quote Reply

Well, you sure sound upset, and you're downvoting both me and the other guy who replied to you, so...

lol. i am allowed to downvote if i disagree, am i not? is every one who downvoted me also upset?

sure, feel however you want to about me, it's not like i will ever able to prove i wasn't upset.

2
TwilightKiddy programming.dev TwilightKiddy@programming.dev
Joined: 2023-06-12
#51 · Quote Reply

.desktop files are essentially used similar to Windows' registry - you create such a metadata file in a specific location, and it acts as a launcher, autostart setup, and file type assignment (so you can easily assign e.g. PNG files to open with Krita by default). As the wiki says, you can put multiple MIME types (file type descriptor such as "text/plain" or "application/json" or "image/jpeg" a...

Please never delete application's .desktop files unless you created them yourself. It can confuse both you and your package manager. If you want some file type to never be opened by a program, override it's .desktop file in ~/.local/share/applications instead.

6
Post Reply Page 1 of 2   Goto page 1, 2 Last »
Back to top