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 695983 - Delete option for extensions from the user's home
Delete option for extensions from the user's home
Status: RESOLVED FIXED
Product: gnome-tweak-tool
Classification: Applications
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: GNOME Tweak Tool maintainer(s)
GNOME Tweak Tool maintainer(s)
: 672142 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2013-03-17 05:32 UTC by Alex Muñoz
Modified: 2017-09-22 18:22 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
add the delete option for extensions from the user's home (3.94 KB, patch)
2013-03-17 05:38 UTC, Alex Muñoz
needs-work Details | Review
fixed the uninstall extension method (4.62 KB, patch)
2013-03-19 05:08 UTC, Alex Muñoz
needs-work Details | Review
add the delete option for extensions from the user's home (2.90 KB, patch)
2013-03-21 02:25 UTC, Alex Muñoz
none Details | Review

Description Alex Muñoz 2013-03-17 05:32:37 UTC
The list of extensions installed in "~/.local/share/gnome-shell/extensions/" should have the delete option.
Comment 1 Alex Muñoz 2013-03-17 05:38:52 UTC
Created attachment 239053 [details] [review]
add the delete option for extensions from the user's home
Comment 2 John Stowers 2013-03-17 11:52:00 UTC
Review of attachment 239053 [details] [review]:

Comments in line.

::: gtweak/tweaks/tweak_shell_extensions.py
@@ +55,3 @@
 
+        path = os.path.join(self._shell.EXTENSION_DIR,uuid)
+        if os.path.exists(path):

Check the extension type is PER_USER

@@ +85,3 @@
+        path = os.path.join(self._shell.EXTENSION_DIR, uuid)
+        if os.path.exists(path):
+            dialog = DeleteExtensionDialog(name)

No need to delete this yourself, add a uninstall_extension method to gshellwrapper.py. This should call the UninstallExtesion dbus method of gnome-shell.

You should not need to restart the shell if the extension is disabled first.

::: gtweak/widgets.py
@@ +369,3 @@
+        Gtk.MessageDialog.__init__(self,0,type=Gtk.MessageType.QUESTION,
+                                          buttons=Gtk.ButtonsType.YES_NO,
+                                   message_format=message)

No need to create a class for this. Just create the MessageDialog in the extension tweak.
Comment 3 Alex Muñoz 2013-03-19 05:08:47 UTC
Created attachment 239217 [details] [review]
fixed the uninstall extension method
Comment 4 John Stowers 2013-03-19 23:28:05 UTC
Review of attachment 239217 [details] [review]:

Looks good, thanks for your work!

For the next version of the patch, please submit a new patch instead of one that applies on top of the old ones.

::: gtweak/gshellwrapper.py
@@ +158,3 @@
+    def uninstall_extension(self, uuid):
+        return self._proxy.proxy_extensions.UninstallExtension('(s)', uuid)
+

The uninstall method is present in 3.4, so add it there, and add a fallback dummy method to the base GnomeShell class for older/unknown versions.
Comment 5 John Stowers 2013-03-19 23:28:05 UTC
Review of attachment 239217 [details] [review]:

Looks good, thanks for your work!

For the next version of the patch, please submit a new patch instead of one that applies on top of the old ones.

::: gtweak/gshellwrapper.py
@@ +158,3 @@
+    def uninstall_extension(self, uuid):
+        return self._proxy.proxy_extensions.UninstallExtension('(s)', uuid)
+

The uninstall method is present in 3.4, so add it there, and add a fallback dummy method to the base GnomeShell class for older/unknown versions.
Comment 6 Alex Muñoz 2013-03-21 02:25:52 UTC
Created attachment 239435 [details] [review]
add the delete option for extensions from the user's home
Comment 7 John Stowers 2013-03-26 22:33:56 UTC
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.
Comment 8 John Stowers 2013-04-15 20:26:21 UTC
*** Bug 672142 has been marked as a duplicate of this bug. ***
Comment 9 Mihajlo Milenovic 2017-09-22 18:07:48 UTC
This is NOT fixed. In the Tweak Tool, I have grayed out box for remove button on almost all extensions. Some of them are not greyed, when I try to remove them all extensios get turned off, and I can turn them back on. But attempted removal of extension does not work. It is still there.
Comment 10 Mihajlo Milenovic 2017-09-22 18:08:56 UTC
OS is Fedora 26.
Comment 11 Jeremy Bicha 2017-09-22 18:12:52 UTC
Mihajlo, it's usually a better idea to open new bugs than to try to comment on a bug that was closed almost 5 years ago.

In GNOME Tweaks 3.26, installing and uninstalling extensions has been removed. Please use the GNOME Software app to install or uninstall extensions now.
Comment 12 Mihajlo Milenovic 2017-09-22 18:22:42 UTC
Well, it does not remove extensions in GNOME Software either. My desktop is pretty unstable due to some extension, but can't remove any of them. It is updated from fedora 24 then 25 then 26. So this is probably why I still have old features