Bug 15488 - mate-utils desktop files unnecessarily block usage outside the mate desktop
Summary: mate-utils desktop files unnecessarily block usage outside the mate desktop
Status: RESOLVED WONTFIX
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 4
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Atilla ÖNTAŞ
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-14 00:30 CET by andré blais
Modified: 2015-05-23 22:04 CEST (History)
4 users (show)

See Also:
Source RPM: mate-utils-1.6.1-1.mga4.src.rpm
CVE:
Status comment:


Attachments

Description andré blais 2015-03-14 00:30:06 CET
Each mate-utils desktop file
contains the line

OnlyShowIn=MATE;

This blocks usage from the menu, outside the mate desktop.
However the mate-utils package is only required by task-mate-minimal.
A user who installs task-mate-minimal would expect that mate packages be available.
Similarly for a user who installs only the mate-utils package.

Solution : remove (or comment out with #) the line
OnlyShowIn=MATE;

in all of the included desktop files :
- mate-dictionary.desktop
- mate-disk-usage-analyzer.desktop
- mate-screenshot.desktop
- mate-search-tool.desktop
- mate-system-log.desktop

Note that these complement other desktops which don't have (at least some of) these tools, such as xfce.
Similarly, other desktops have tools not available with mate.
Comment 1 Atilla ÖNTAŞ 2015-03-18 08:58:20 CET
OnlyShowIn=MATE; key is there for a logical purpose. Without it, as you suggested; they will show up and mess all unneeded desktops. Say KDE or GNOME. So, we need that they not mess up these DE's menus. So, before any changes to those desktop files, we need to ensure that they' re needed for other desktops. Adding Xfce, Lxde and LxQt maintainers to Cc.

CC: (none) => doktor5000, jani.valimaa, loginov_alex, tarakbumba
Assignee: bugsquad => tarakbumba

Comment 2 andré blais 2015-03-18 09:37:23 CET
(In reply to Atilla ÃNTAÅ from comment #1)
> OnlyShowIn=MATE; key is there for a logical purpose. Without it, as you
> suggested; they will show up and mess all unneeded desktops. Say KDE or
> GNOME. So, we need that they not mess up these DE's menus. So, before any
> changes to those desktop files, we need to ensure that they' re needed for
> other desktops. Adding Xfce, Lxde and LxQt maintainers to Cc.

Not at all.
If the users of other desktops don't want these apps, they wouldn't install the package.

If they don't expressly install the package, then they need to install task-mate-minimal, which suggests that they want a number of mate packages.
If having installed task-mate-minimal, they don't want to see any particular mate package in their menu, they just have to check a box in their menu editor.
Or uninstall the mate packages that they chose to install.

The only advantage of a "ShowOnlyIn=MATE" line would be if a particular user has several desktops installed, and wants to see only Mate sometimes, and only another desktop at other times.
This line precludes freely mixing apps from different desktops.
Which is why most .desktop files don't have such lines.

So the question is not if they are NEEDED for other desktops, but rather if you want to BLOCK users of other desktops from choosing to use some Mate packages.

In my case, I'm choosing (for the moment) to use the XFCE desktop for some features I like better (like the panel), but at the same time using certain Mate packages that I appreciate more. (e.g. caja, pluma, and this package).
Comment 3 Atilla ÖNTAŞ 2015-03-23 09:44:46 CET
No, users aren't blocked. Everybody, including you, can launch them from a terminal or create a launcher. This is not a big deal. They' re intended to be used for Mate Desktop and designed by upstream so. There is no real benefit to remove "ShowOnlyIn" key from those apps desktop files.
Comment 4 andré blais 2015-03-23 11:55:09 CET
(In reply to Atilla ÃNTAÅ from comment #3)
> No, users aren't blocked. Everybody, including you, can launch them from a
> terminal or create a launcher. This is not a big deal. They' re intended to
> be used for Mate Desktop and designed by upstream so. There is no real
> benefit to remove "ShowOnlyIn" key from those apps desktop files.

My point was that if a user installs the package, the contained apps do not appear in the menu.  If you don't think that is a problem, why bother creating desktop files for mate packages ?
After all, as you say, "everybody, including you, can launch them from a terminal or create a launcher. This is not a big deal."
Don't forget that most users use the menu rather than the command line, at least almost all the time.  We are NOT typical users.

The benefit of NOT putting the "ShowOnlyIn" line in the desktop files is that a user of another desktop who chooses to install them will see them in the menu, as they would expect.  And maybe if they like the mate packages enough, they might switch to the mate desktop.
What is the point of discouraging the use of mate packages ?  If anything, wouldn't you want to encourage such use ?

Try taking a look at other .desktop files.  You will find that very few use the "OnlyShowIn" line.
Jani Välimaa 2015-05-21 19:34:00 CEST

CC: jani.valimaa => (none)

Comment 5 Nicolas Lécureuil 2015-05-23 01:15:19 CEST
-1- I would start by saying that the ShowOnlyIn= is added by default by Mate devs..
-2- for 
"If the users of other desktops don't want these apps, they wouldn't install the package."

i just can't agree, for ex here we are 2 users, me on KDE and the other on Mate. I don't want apps of an other DE to pollute my menu and i don't see the need to use apps dedicated to an other DE on mine. For ex i don't think you want to see systemsettings on your Mate

This is just my POV but i wanted to express it :)

CC: (none) => mageia

Comment 6 Florian Hubold 2015-05-23 22:04:47 CEST
(In reply to andré blais from comment #4)
> Try taking a look at other .desktop files.  You will find that very few use
> the "OnlyShowIn" line.

That's subjective. Quite a lot use either NotShowIn or OnlyShowIn. On a casual installation, including XFCE, LXDE, lXQT, Cinnamon, Mate and GNOME: ââ[doktor5000@Mageia5]â[21:58:44]â[~]
ââââ¼ grep -i showin /usr/share/applications/*desktop | wc -l
107

The only valid use case I see for such a setting is with NotShowIn to explicitly list other desktops where a similar tools exists for the same purpose (e.g. a polkit agent or similar).

I'm closing this one, as this problem does not only apply for MATE but all desktop files and we should consider a general resolution, and not edit each and every desktop file.

Status: NEW => RESOLVED
Resolution: (none) => WONTFIX


Note You need to log in before you can comment on or make changes to this bug.