GNOME Bugzilla – Bug 670076
autorunManger.js needs porting to systemd, too
Last modified: 2012-02-23 08:39:26 UTC
After recent commits that are providing systemd support, autorunManager.js does no longer start when media is mounted and systemd is enabled, due to undefined Main.automountManager.ckListener. Here is the output when mounting e.g. an usb stick: JS ERROR: !!! Exception was: TypeError: Main.automountManager.ckListener is undefined JS ERROR: !!! lineNumber = '177' JS ERROR: !!! fileName = '"/usr/share/gnome-shell/js/ui/autorunManager.js"' JS ERROR: !!! stack = '"([object _private_unknown_GUnionVolumeMonitor],[object _private_unknown_GProxyMount])@/usr/share/gnome-shell/js/ui/autorunManager.js:177 wrapper([object _private_unknown_GUnionVolumeMonitor],[object _private_unknown_GProxyMount])@/usr/share/gjs-1.0/lang.js:204 "' JS ERROR: !!! message = '"Main.automountManager.ckListener is undefined"'
Created attachment 207526 [details] [review] Quick and dirty patch Here is a working patch, but I'm not sure if this is the best solution for the issue.
Created attachment 207577 [details] [review] autorunManager: Fix fallout from port to systemd
>--- a/js/ui/automountManager.js >+++ b/js/ui/automountManager.js >@@ -143,7 +143,7 @@ const AutomountManager = new Lang.Class({ > _onDriveConnected: function() { > // if we're not in the current ConsoleKit session, > // or screensaver is active, don't play sounds >- if (!this._sessionActive()) >+ if (!this.sessionActive()) > return; > > if (this._ssProxy.screenSaverActive) This hunk contains obviously a typo. Instead of + if (!this.sessionActive()) it should be + if (!this.isSessionActive())
Yeah, I fixed that locally right after I uploaded it.
Oh, sorry for breaking this. Weird that this didnt go wrong for me. Patch looks good with that fix Gert suggested.
Comment on attachment 207577 [details] [review] autorunManager: Fix fallout from port to systemd Marking acn based on Lennart's comment, though the commit message could be improved.
Attachment 207577 [details] pushed as c2a9f7f - autorunManager: Fix fallout from port to systemd