Bug 21093

Summary: Orage desktop file contains the line "OnlyShowIn=XFCE;" which blocks menu display in other desktops
Product: Mageia Reporter: andré blais <andr999>
Component: RPM PackagesAssignee: Jani Välimaa <jani.valimaa>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: Normal CC: fri, marja11
Version: Cauldron   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard: MGA5TOO
Source RPM: orage-4.10.0-4.mga5.src.rpm CVE:
Status comment:

Description andré blais 2017-06-15 07:06:52 CEST
Description of problem:

Orage is a small calendar/agenda application distributed with XFCE.
A similar application is not part of some other desktops, such as MATE.
The line "OnlyShowIn=XFCE" blocks the automatic display in the menu of other desktops.

The desktop file in question is xfcalendar.desktop.  Two other desktop files are associated with Orage, containing the same line (globaltime.desktop and xfce-xfcalendar-settings.desktop), but those functions are accessible from inside Orage, so the errant lines are not problematic.

Even if a user of another desktop chooses to install Orage, it will not be automatically displayed in the menu, as graphic applications normally are.
So an ordinary user will most likely consider Orage unavailable.

An advanced user installing more than one desktop, such as a developer testing many desktops, could well find the line "OnlyShowIn=XFCE" useful.
But such a user would know how to avoid seeing Orage in the menu when not running XFCE, such as modifying the desktop file or unchecking the menu entry (in an account for non-XFCE desktops).
Or adding Orage to the menu, after verifying the path to Orage & choosing an icon.
This is not something expected of an ordinary user.

So if Orage is meant for ordinary users, this is a bug that should be fixed.
If it is intended to be restricted to only XFCE desktop users, or only developers, why worry about ordinary users ?

An alternate (but more cumbersome) solution would be to enumerate the desktops where Orage should be shown, with "ShowIn=***" lines, where *** is the name of a desktop.
Note that Orage is not displayed if not installed, so non-XFCE users not interested in Orage will not see Orage in the menu.  (Assuming XFCE is not installed, of course.)
Marja Van Waes 2017-06-15 21:10:19 CEST

Assignee: bugsquad => jani.valimaa
CC: (none) => marja11

Comment 1 Morgan Leijström 2017-06-18 20:26:17 CEST
I have xfce and plasma installed in mga6. Never tried orage until now.
Yes it is not shown in plasma launch panel even when searching it.
I can start it from konsole, or via the Alt+F2 launcher.

Test on plasma, mga6: The big problem: of i close orage window it continues to run *hidden*, not viewable in taskbar or anywhere else.

I can launch orage again and it do not start another instance - the running one get visible again so at least that is taken care of.  But are all stupid cases taken care of - is it safe that user can not loose data i.e if invisible when he logs out - on any DE?


As orage seem not adapted to i.e Plasma i think it is not a major issue that it is not easily available.  The easy workaround for the adventorous users is to issue Alt-F2 and type orage.

Version: 5 => Cauldron
CC: (none) => fri
Severity: major => normal
Whiteboard: (none) => MGA5TOO

Comment 2 andré blais 2018-06-03 19:44:41 CEST
(In reply to Morgan Leijström from comment #1)
> Test on plasma, mga6: The big problem: of i close orage window it continues
> to run *hidden*, not viewable in taskbar or anywhere else.

On Maté, if the .desktop file is corrected (removing "OnlyShowIn=XFCE"),
as well as orage showing in the menu, it will show in the taskbar even if the window is closed, until the application is closed from the taskbar.
(Typical for an agenda application.)

> I can launch orage again and it do not start another instance - the running
> one get visible again so at least that is taken care of.  But are all stupid
> cases taken care of - is it safe that user can not loose data i.e if
> invisible when he logs out - on any DE?

> As orage seem not adapted to i.e Plasma i think it is not a major issue that
> it is not easily available.  The easy workaround for the adventorous users
> is to issue Alt-F2 and type orage.

Note that orage is well adapted to simpler desktops, like XFCE, Maté, and LXDE.

If someone chooses to install an application, it should normally be visible, whatever the desktop used.  Orage is required by task-XFCE-minimal, so it would be automatically installed by those installing XFCE, but not for other desktops.
So in this case, if one explicitly installs orage, the line "OnlyShowIn=XFCE" should be removed from the desktop file.

Perhaps a better solution would be on installation to query the user if they want the application to be in the menu for all desktops, before removing the line.

More generally, maybe querying on installation for all applications with "OnlyShowIn=" in the associated desktop file.
For this, the solution could be in the installer, instead of orage (and other applications with this restriction).
Comment 3 Jani Välimaa 2021-01-07 17:25:06 CET
The bug is filed against cauldron. Orage was removed from cauldron (upcoming mga8) in June 2020.

$ urpmq --obsoletes xfce4-panel
orage[< 4.12.1-6]
Comment 4 Morgan Leijström 2021-01-07 17:53:01 CET
Thus we are going to close this

- Not worth fixing for mga7 this late, just to disappoint users when soon upgrading to Mageia 8...

Thank you André for reporting the issue,and sorry we did not have capacity to fix it before.

I hope you find another application to fulfill this need.

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

Comment 5 andré blais 2021-01-08 02:47:49 CET
I had stopped using orage a while back, and had forgotten that I had filed this bug.
However there is a problem not specifically related to orage.
The "OnlyShowIn" option is only useful when more than one desktop is installed.
Largely developers, who want to test more than one desktop.
So there should be an easy means to deactivate this option when only one desktop is installed.  Maybe automatically.
A modification to the xdg menu system ?
Comment 6 Morgan Leijström 2021-01-08 13:31:41 CET
Similarly xfburn was hidden, and changed to never hide as it is usable on any desktop depending on user preference: https://bugs.mageia.org/show_bug.cgi?id=12462#c7

I think it depends on user preference: I usually prefer same apps on any desktop so for me i would probably like OnlyShowIn= never to be used.

You may open an issue or start a thread to discuss generally when OnlyShowIn= should be used.


Bugs mentioning OnlyShowIn:
https://bugs.mageia.org/buglist.cgi?component=RPM Packages&longdesc=OnlyShowIn&longdesc_type=allwordssubstr&product=Mageia&query_format=advanced