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 772593 - gnome-shell-extension-tool: Add a reload option
gnome-shell-extension-tool: Add a reload option
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: extensions
unspecified
Other All
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2016-10-08 02:12 UTC by Jonh Wendell
Modified: 2016-10-28 17:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
gnome-shell-extension-tool: Add a reload option (2.26 KB, patch)
2016-10-08 02:12 UTC, Jonh Wendell
rejected Details | Review
gnome-shell-extension-tool: Add a reload option (2.80 KB, patch)
2016-10-08 18:28 UTC, Jonh Wendell
committed Details | Review

Description Jonh Wendell 2016-10-08 02:12:50 UTC
This might be a good fit for extension developers: With
this option one doesn't need to restart the whole Shell
in order to see their changes in effect.
Comment 1 Jonh Wendell 2016-10-08 02:12:58 UTC
Created attachment 337209 [details] [review]
gnome-shell-extension-tool: Add a reload option
Comment 2 Florian Müllner 2016-10-08 16:55:34 UTC
Review of attachment 337209 [details] [review]:

::: src/gnome-shell-extension-tool.in
@@ +182,3 @@
+        sys.exit(1)
+
+    bus = dbus.SessionBus()

Should we use GDBus instead of python's own dbus module?
Comment 3 Jonh Wendell 2016-10-08 18:28:54 UTC
Created attachment 337248 [details] [review]
gnome-shell-extension-tool: Add a reload option

This might be a good fit for extension developers: With
this option one doesn't need to restart the whole Shell
in order to see their changes in effect.
Comment 4 Jonh Wendell 2016-10-08 18:31:26 UTC
(In reply to Florian Müllner from comment #2)
> Review of attachment 337209 [details] [review] [review]:
> 
> ::: src/gnome-shell-extension-tool.in
> @@ +182,3 @@
> +        sys.exit(1)
> +
> +    bus = dbus.SessionBus()
> 
> Should we use GDBus instead of python's own dbus module?

I don't have a strong opinion here. *I* prefer python's due to its simplicity.

That said, I've attached a patch which uses GDBus via GI.
Comment 5 Bastien Nocera 2016-10-17 11:42:07 UTC
(In reply to Jonh Wendell from comment #4)
> (In reply to Florian Müllner from comment #2)
> > Review of attachment 337209 [details] [review] [review] [review]:
> > 
> > ::: src/gnome-shell-extension-tool.in
> > @@ +182,3 @@
> > +        sys.exit(1)
> > +
> > +    bus = dbus.SessionBus()
> > 
> > Should we use GDBus instead of python's own dbus module?
> 
> I don't have a strong opinion here. *I* prefer python's due to its
> simplicity.

It might not be available, whereas if you manage to get GTK+ running with Python, then you pretty much have to have gio's GI bindings installed.

> That said, I've attached a patch which uses GDBus via GI.
Comment 6 Florian Müllner 2016-10-28 15:36:56 UTC
Review of attachment 337248 [details] [review]:

LGTM. I don't have a strong opinion, but I slightly prefer this one - the Gio typelib is already a dependency, python's own dbus module is not ...
Comment 7 Jonh Wendell 2016-10-28 17:47:00 UTC
Attachment 337248 [details] pushed as 2812afe - gnome-shell-extension-tool: Add a reload option