Bug 65469 - allow more than one AutostartCondition in desktop files
Summary: allow more than one AutostartCondition in desktop files
Status: RESOLVED NOTOURBUG
Alias: None
Product: desktop-file-utils
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: All Linux (All)
: high critical
Assignee: Hans Petter Jansson
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-06 17:41 UTC by Wolfgang Ulbrich
Modified: 2016-05-13 14:21 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Wolfgang Ulbrich 2013-06-06 17:41:58 UTC
Currently we have a weird situation with gnome and cimnnamon desktops in fedora.
If nemo is installed gnome session starts nemo to handle the desktop (f19), and in cinnamon session it's 50/50 which file-browser handle the desktop (f19).
see also
http://forums.fedoraforum.org/showthread.php?t=291592
A quick and effective solution to handle dilemma, is to edit the autostart files in /etc/xdg/autostart like this.

[Desktop Entry]
Type=Application
Name=Nemo
Comment=Start Nemo desktop at log in
Exec=nemo -n
OnlyShowIn=GNOME;Unity;
AutostartCondition=GSettings org.nemo.desktop show-desktop-icons
AutostartCondition1=GNOME3 if-session cinnamon2d
AutostartCondition2=GNOME3 if-session cinnamon
NoDisplay=true

[Desktop Entry]
Type=Application
Name=Files
Exec=nautilus -n
OnlyShowIn=GNOME;Unity;
AutostartCondition=GSettings org.gnome.desktop.background show-desktop-icons
AutostartCondition=GNOME3 if-session gnome-classic
AutostartCondition=GNOME3 if-session gnome

Is it possible to allow more than one AutostartCondition line in a desktop file, or a comma-separated value for AutostartCondition ?

best regards

Wolfgang Ulbrich
Comment 1 Wolfgang Ulbrich 2013-06-06 17:46:12 UTC
sorry,
nemo desktop file i posted wrong.

[Desktop Entry]
Type=Application
Name=Nemo
Comment=Start Nemo desktop at log in
Exec=nemo -n
OnlyShowIn=GNOME;Unity;
AutostartCondition=GSettings org.nemo.desktop show-desktop-icons
AutostartCondition=GNOME3 if-session cinnamon2d
AutostartCondition=GNOME3 if-session cinnamon
NoDisplay=true
Comment 2 Rex Dieter 2013-06-06 18:28:46 UTC
Researching this, I couldn't find mention of the
AutoStartCondition=
key anywhere on 
http://standards.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html
or
http://standards.freedesktop.org/autostart-spec/autostart-spec-latest.html

should be there somewhere?
Comment 3 Vincent Untz 2013-06-10 11:12:23 UTC
(In reply to comment #0)
> Is it possible to allow more than one AutostartCondition line in a desktop
> file, or a comma-separated value for AutostartCondition ?

You cannot have more than one AutostartCondition line, as only one would get used.

It could potentially be a list, but that would need to be in the spec first. Can you get this discussed on the xdg mailing list?

(In reply to comment #2)
> Researching this, I couldn't find mention of the
> AutoStartCondition=
> key anywhere on 
> http://standards.freedesktop.org/desktop-entry-spec/desktop-entry-spec-
> latest.html
> or
> http://standards.freedesktop.org/autostart-spec/autostart-spec-latest.html
> 
> should be there somewhere?

Good point. The reference I know about is http://lists.freedesktop.org/archives/xdg/2007-January/007436.html
Comment 4 Vincent Untz 2015-09-18 09:50:44 UTC
Sorry for the noise, reassigning to new maintainer.
Comment 5 Hans Petter Jansson 2016-05-12 18:22:28 UTC
Hi Wolfgang,

Sorry to bother you again, but this looks like another bug that's in limbo waiting for mailing list discussion. Did anything come of this?
Comment 6 leigh scott 2016-05-12 21:07:27 UTC
The problem was fix in nemo

https://github.com/linuxmint/nemo/commit/081449869f41277482d588a437f22c01184d11c5
Comment 7 Wolfgang Ulbrich 2016-05-12 23:50:12 UTC
Hi Hans,
it's save to close the issue.
Comment 8 Hans Petter Jansson 2016-05-13 14:21:35 UTC
Thanks! Closing.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.