GNOME Bugzilla – Bug 667662
gnome-screenshot doesn't work with dbus
Last modified: 2012-01-12 20:45:21 UTC
gnome-shell 3.3.3: Start gnome-screenshot. It'll take a while, and spit out: ** WARNING **: Unable to use GNOME Shell's builtin screenshot interface, resorting to fallback X11. Error: Timeout was reached GLib-CRITICAL **: g_variant_unref: assertion `value->ref_count > 0' failed The reason seems to be some error in gnome-shell. From ~/.xsession-errors: JS ERROR: !!! Exception was: Error: Expected type utf8 for Argument 'filename' but got type 'object' 0x7f87df5ce908 JS ERROR: !!! lineNumber = '0' JS ERROR: !!! fileName = '"gjs_throw"' JS ERROR: !!! stack = '"("Expected type utf8 for Argument 'filename' but got type 'object' 0x7f87df5ce908")@gjs_throw:0 ([object Array],[object _private_Gio_DBusMethodInvocation])@/usr/share/gnome-shell/js/ui/shellDBus.js:153 wrapper([object Array],[object _private_Gio_DBusMethodInvocation])@/usr/share/gjs-1.0/lang.js:167 ([object _private_GjsDBus_Implementation],"Screenshot",[object _private_GLib_Variant],[object _private_Gio_DBusMethodInvocation])@/usr/share/gjs-1.0/overrides/Gio.js:311 "'
From dbus-monitor: method call sender=:1.2586 -> dest=org.gnome.Shell serial=3 path=/org/gnome/Shell; interface=org.gnome.Shell; member=Screenshot string "/home/olav/.cache/gnome-screenshot/scr-1622499545.png"
Pushed a fix for this to git master. Turns out it was fallout from gnome-shell's GDBus migration.