Summary: | gnome-base/gnome-settings-daemon-3.22.1 requires sys-apps/dbus[user-session] to automatically launch vino and rygel, etc | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Mike Auty (RETIRED) <ikelos> |
Component: | Current packages | Assignee: | Gentoo Linux Gnome Desktop Team <gnome> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | arthur, maggu2810, tsmksubc |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | https://git.gnome.org/browse/gnome-settings-daemon/commit/?id=e0b7f4143bdd201c824499dd09159f5890a07c6a | ||
See Also: | https://bugs.gentoo.org/show_bug.cgi?id=576028 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | 576028 | ||
Bug Blocks: | 595886 |
Description
Mike Auty (RETIRED)
2016-11-17 02:23:34 UTC
I thought this was needing only systemd... not dbus+user-session, that was causing lots of problems some months ago :S... some of them were "workarounded" changing the default of KillUserProcesses setting in systemd... but we would need a >= 230 systemd version stabilized first The change that added this is: https://git.gnome.org/browse/gnome-settings-daemon/commit/?id=e0b7f4143bdd201c824499dd09159f5890a07c6a if I don't misremember I rebuilt dbus with USE="user-session" and it's been running reasonably well for the past 5 days. What sort of difficulties did it cause? I'm using systemd-232 and my KillUserProcesses is the default (which I think is no?)... Sorry, just read the bug you linked (and the other bugs off that). I have had lingering processes (although I run mpd under my user's account, so that may be why it never kills off all the remaining ones), but I haven't experienced a problem with it. Perhaps we could get away with just a notice at the end of the vino installation? It's pretty useless if it doesn't start though, it's not really designed to be launched separately... 5:S Not sure what the best course of action is, but happy to go with whatever you suggest. 5:) With systemd-232 it will default to killing the processes (even screen, deluged :S... ), once that step is jumped (and It should be the case as soon as systemd-233 is released fixing some pending security issues) we can think on maybe trying to enable user-session dbus again :/ Using systemd version 233. Enabled "user-session" USE flag causing rebuild of dbus and bluez. Attempted to have vino-server start by remote login (vinegre), but no success. Systemd does not start the vino-server automatically. Tried to enable, but cannot enable File or Screen Sharing under the Gnome Control Center applet, buttons slide back to off. Also can't select a network for sharing. Randy, I've had no problem with USE="user-session" starting vino-server. Just to rule out the obvious, could you reply indicating whether you restarted your system after rebuilding dbus/bluez with USE="user-session" please? Gnome won't automatically pick up and start using the dbus user-session support until dbus (and therefore also gnome) have been restarted since the rebuild... @gnome, any change of a quick status update on whether we required user-session deps in vino/rygel and/or how far along we are in getting it enabled when necessary? (In reply to Mike Auty from comment #6) > Randy, I've had no problem with USE="user-session" starting vino-server. > Just to rule out the obvious, could you reply indicating whether you > restarted your system after rebuilding dbus/bluez with USE="user-session" > please? Gnome won't automatically pick up and start using the dbus > user-session support until dbus (and therefore also gnome) have been > restarted since the rebuild... > > @gnome, any change of a quick status update on whether we required > user-session deps in vino/rygel and/or how far along we are in getting it > enabled when necessary? Mike, Yes, I restarted the system. If I start "gnome-control-center sharing" from the command line and attempt to toggle the "Screen Sharing" to ON, I receive the following error: sharing-cc-panel-WARNING**: Failed to enable service vino-server: GDBus.Error:org.freedesktop.DBUS.Error.InvalidArgs: Sharing cannot be enabled on this network, status is '0' Digging around on the internet seems to imply there is an issue with NetworkManager. There are "No networks selected for sharing" After a lot of digging and trial-and-error, I discovered that the "networkmanager" USE flag must be set for gnome-settings-daemon package. Once set and gnome-settings-daemon rebuilt and restarted, I can now select a network for sharing and enable screen sharing. I can now log in remotely via vinegre and vino-server will start automatically. gnome-shell had networkmanager set by default, forcing gnome-control-center to be built with networkmanager set (I did it via package.use). Note that gnome-session-3.24.2 has the following NEWS, which might affect this user-session ordeal (mostly regarding dbus[user-session] usage in general, not anything vino/rygel): - Make sure non-graphical services get killed at log out when there's systemd --user. Some days ago I shifted things around, moving the user-session dep to gnome-settings-daemon as it really belongs (removing it from vino in the process), after adding package.use entries for enabling user-session by default on dbus (and bluez out of necessity) in the gnome/systemd profiles. Ignoring the fact that many don't need screen sharing to work out of the box, but this is just defaults, plus gnome-session-3.24 on systemd profiles will hard-require dbus[user-session] (or at least systemd user services) to launch anything at all. This should conclude this bug. (In reply to Mart Raudsepp from comment #10) > plus gnome-session-3.24 on systemd profiles will hard-require gnome-session-3.34* |