After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 701188 - Turning sharing on doesn't start gnome-user-share daemon
Turning sharing on doesn't start gnome-user-share daemon
Status: RESOLVED FIXED
Product: gnome-user-share
Classification: Core
Component: general
3.8.x
Other Linux
: Normal normal
: ---
Assigned To: gnome-user-share maintainers
gnome-user-share maintainers
Depends on:
Blocks:
 
 
Reported: 2013-05-29 11:08 UTC by Lionel Landwerlin
Modified: 2013-07-15 16:20 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
data: Fix turning on sharing not starting gnome-user-share (4.80 KB, patch)
2013-06-13 14:30 UTC, Bastien Nocera
committed Details | Review

Description Lionel Landwerlin 2013-05-29 11:08:30 UTC
Apparently we're missing something here...
Comment 1 Bastien Nocera 2013-05-29 12:09:11 UTC
On startup, if any sharing is enabled, gnome-user-share will be started and stay running. If nothing is enabled, it will start and immediately exit. The sharing panel should make sure that gnome-user-share gets started if it isn't already.

This should be solvable in gnome-user-share using a startup condition:
$ grep -i condition /etc/xdg/autostart/*
/etc/xdg/autostart/at-spi-dbus-bus.desktop:AutostartCondition=GSETTINGS org.gnome.desktop.interface toolkit-accessibility
/etc/xdg/autostart/caribou-autostart.desktop:AutostartCondition=GSettings org.gnome.desktop.a11y.applications screen-keyboard-enabled
/etc/xdg/autostart/nautilus-autostart.desktop:AutostartCondition=GSettings org.gnome.desktop.background show-desktop-icons
/etc/xdg/autostart/orca-autostart.desktop:AutostartCondition=GSettings org.gnome.desktop.a11y.applications screen-reader-enabled
/etc/xdg/autostart/vino-server.desktop:AutostartCondition=GSettings org.gnome.Vino enabled

But gnome-user-share doesn't have a single condition. I'd need to check whether we can make it have one, or whether gnome-session supports multiple autostart conditions, or, finally, have the control-center panel start it.
Comment 2 Matthias Clasen 2013-05-31 01:10:39 UTC
You can't have multiple conditions.
You could either add a separate 'should I be running' boolean and use that as the master switch, or indeed, have the control-center start it.
Comment 3 Matthias Clasen 2013-05-31 01:12:00 UTC
We should fix this for 3.8.3 - it makes the sharing panel pretty limited use.
Comment 4 Bastien Nocera 2013-06-13 14:30:39 UTC
Created attachment 246726 [details] [review]
data: Fix turning on sharing not starting gnome-user-share

Use AutostartConditions in the desktop file to get gnome-user-share
to start if either ObexFTP, ObexPush or WebDAV sharing is enabled.
Comment 5 Bastien Nocera 2013-07-15 16:20:04 UTC
Comment on attachment 246726 [details] [review]
data: Fix turning on sharing not starting gnome-user-share

Fixed in 3.8.3