Giter VIP home page Giter VIP logo

Comments (17)

kn00tcn avatar kn00tcn commented on August 28, 2024 1

lolwut, the file format suffix of each .desktop in that ls list makes the purpose obvious

shouldnt the entry for the specific format show only when right clicking that format? why would right clicking a png file display the _bmp application entry? this is the issue

from mate-menus.

raveit65 avatar raveit65 commented on August 28, 2024

At linuxmint as told in other report.

from mate-menus.

epgfm avatar epgfm commented on August 28, 2024

@raveit65, I've reproduced on Ubuntu MATE 17.04 w MATE 1.18, so I think upstream might be the place. :x
image

from mate-menus.

raveit65 avatar raveit65 commented on August 28, 2024

This shows only that mint and ubuntu use the same package repo ;-)
Please read comment from mentioned kde report.
I will try to reproduce it on a rpm system.

from mate-menus.

unxed avatar unxed commented on August 28, 2024

https://bugs.launchpad.net/linuxmint/+bug/1675816

from mate-menus.

raveit65 avatar raveit65 commented on August 28, 2024

Ok, i have the same issue here, btw. it isn't a bug from our side ;-).
We do the right thing.

[root@f25-origin /]# ls -l /usr/share/applications/
insgesamt 1200
**cut here**
drwxr-xr-x. 2 root root  4096  8. Jul 2016  kde
drwxr-xr-x. 2 root root  4096  8. Jul 2016  kde4
-rw-r--r--. 1 root root  8569 30. Jan 2016  kde-mimeapps.list
-rwxr-xr-x. 1 root root  1199 14. Dez 19:16 krita_bmp.desktop
-rwxr-xr-x. 1 root root  1268 14. Dez 19:16 krita_brush.desktop
-rwxr-xr-x. 1 root root  1198 14. Dez 19:16 krita_csv.desktop
-rwxr-xr-x. 1 root root  4891 14. Dez 19:16 krita_exr.desktop
-rwxr-xr-x. 1 root root  1271 14. Dez 19:16 krita_heightmap.desktop
-rwxr-xr-x. 1 root root  1257 14. Dez 19:16 krita_jpeg.desktop
-rwxr-xr-x. 1 root root  1233 14. Dez 19:16 krita_odg.desktop
-rwxr-xr-x. 1 root root  1272 14. Dez 19:16 krita_ora.desktop
-rwxr-xr-x. 1 root root  1262 14. Dez 19:16 krita_pdf.desktop
-rwxr-xr-x. 1 root root  1199 14. Dez 19:16 krita_png.desktop
-rwxr-xr-x. 1 root root  1332 14. Dez 19:16 krita_ppm.desktop
-rwxr-xr-x. 1 root root  1346 14. Dez 19:16 krita_psd.desktop
-rwxr-xr-x. 1 root root  1505 14. Dez 19:16 krita_raw.desktop
-rwxr-xr-x. 1 root root  1201 14. Dez 19:16 krita_tga.desktop
-rwxr-xr-x. 1 root root  1257 14. Dez 19:16 krita_tiff.desktop
-rwxr-xr-x. 1 root root  1258 14. Dez 19:16 krita_xcf.desktop
-rwxr-xr-x. 1 root root  1458  4. Mär 17:15 ktelnetservice5.desktop
-rw-r--r--. 1 root root 17430 18. Feb 22:07 libreoffice-calc.desktop
**cut here**

any open questions?

from mate-menus.

raveit65 avatar raveit65 commented on August 28, 2024

In other words, if distro maintainer decided to install 16 desktop files, we will see 16 versions of the same application in our property dialog ;-)

from mate-menus.

epgfm avatar epgfm commented on August 28, 2024

Thanks @raveit65, so this is distro-specific, and the bug should be reported against Ubuntu MATE, Mint and Fedora and not against Krita? Or maybe against the krita package in the distro?

from mate-menus.

raveit65 avatar raveit65 commented on August 28, 2024

Not sure, the question is if the several desktop files are in upstream tarball or added by a distro maintainer.
In both cases you will get a horrible discussion about why this is needed.

from mate-menus.

unxed avatar unxed commented on August 28, 2024

Not sure if it matters, but I have the same issue with some wine applications like FastStone Image Viewer.

from mate-menus.

hallarempt avatar hallarempt commented on August 28, 2024

No. I'm the Krita maintainer and I can tell you you're not doing the right thing. This is the third or fourth time I'm encountering this issue with desktops: it comes from a lack of familiarity with the freedesktop .desktop file standard. Those extra .desktop files come with the plugins that enable Krita to load extra file formats. They have a "NoDisplay=true" line which means that you shouldn't display them in your gui.

See: https://standards.freedesktop.org/desktop-entry-spec/latest/ar01s05.html which says "NoDisplay means "this application exists, but don't display it in the menus". This can be useful to e.g. associate this application with MIME types, so that it gets launched from a file manager (or other apps), without having a menu entry for it (there are tons of good reasons for this, including e.g. the netscape -remote, or kfmclient openURL kind of stuff). ".

from mate-menus.

flexiondotorg avatar flexiondotorg commented on August 28, 2024

@boudewijnrempt I confirm that Nautilus only shows one entry for Krita in the Open With context menu and also only shows one Krita entry in the Open With -> Other Application... So Nautilus is not displaying the Krita plugins and Caja is doing the wrong thing.

However, what is the point of all these .desktop files exactly? If they are not displayed in Nautilus (and Caja) they can't be invoked unless I choose Open With -> Other Application... -> View All Applications from which I now see 16 indistinguishable Krita entries. How do you anticipate these .desktop entries are exposed to the user?

from mate-menus.

unxed avatar unxed commented on August 28, 2024

I now see 16 indistinguishable Krita entries

Confirming. IMHO it can be considered a bug also.

Is it really a Caja's issue? Should I post a bug report there?

from mate-menus.

flexiondotorg avatar flexiondotorg commented on August 28, 2024

If you're suggesting that it is a bug in View All Applications (something Nautilus and Nemo do) and the 16 Krita plugin entries should not displayed there also, I'm really at a loss as to their purpose.

from mate-menus.

hallarempt avatar hallarempt commented on August 28, 2024

I'm sorry, but I'm getting a bit impatient here.

What the purpose is?

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.

This, by the way, has been the case since 2004 or so; it's not new, it's not weird. Being at a loss as to their purpose means you don't understand the .desktop file specification.

Just implement support for the nodisplay tag already.

from mate-menus.

flexiondotorg avatar flexiondotorg commented on August 28, 2024

I do understand the .desktop specification and it is supported. However NoDisplay=true is not honoured in Caja's context menu, which I explained earlier, and the Krita plugins are not exposed in the menus therefore there is no bug in mate-menus.

from mate-menus.

monsta avatar monsta commented on August 28, 2024

I'll just leave this here: mate-desktop/caja#697

from mate-menus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.