GNOME Bugzilla – Bug 562371
overwriting themes not possible
Last modified: 2017-06-07 00:16:58 UTC
Please describe the problem: Say I install a gtk theme by dragging it into gnome-appearance and then delete it by clicking on "delete". Then this theme is still in ~/.themes. This can cause serious problems e.g. if I reinstall the same theme: then I get an error "cannot move folder over folder". Steps to reproduce: 1. install gtk theme 2. delete gtk theme in gnome-appearance 3. reinstall same theme Actual results: error message "cannot move folder over folder" Expected results: theme data should be deleted in .themes Does this happen every time? yes Other information: related bug in launchpad: https://bugs.launchpad.net/ubuntu/+source/gnome-control-center/+bug/301749
What version is that? What theme does it fail to delete? What does "theme is still in .themes" mean? The entire theme, parts of the theme? The problem is not reproducable here with 2.24.0.1.
I have 2.24.1 on intrepid and you can use any theme, imho. It's still in .themes means that I have the whole theme folder (including all png files etc.) in .themes and I have to delete it manually. I could attach the folder here, but it's basically the whole theme data (unzipped).
Btw, the theme does not show up in gnome-appearance-properties anymore after deletion but all the data is still stored in .themes (basically everything that was originally put there, .themes is completely untouched by deletion).
Please attach an affected theme here.
Created attachment 123564 [details] smoked glass from gnome-look.org This is the zipped theme that I drag onto gnome-appearance.
I also get these funny folders after unsuccessful attempts to reinstall, see screenshot.
Created attachment 123565 [details] Screenshot The data of the theme and some funny folders.
Ok, several observations: 1) g-c-c 2.24.1 hasn't actually been released yet 2) the theme you attached is a "Gnome" theme, including a metatheme, a gtk theme, and a metacity theme 3) deleting the Smoked Ice gtk theme only deletes the gtk theme, not the metatheme or the metacity theme 4) if you try to reinstall the theme before deleting all three themes, that won't work 5) This could be an enhancement request to a) make overwriting themes possible b) properly clean up after a failed installation attempt
Sure, we can make it an enhancement request but I think that the current behavior is a bit unfortunate. As for 2.24.1, that's what my gnome system monitor says and my repos are intrepid + ubuntu backports, so maybe it's because I'm using the backports. But anyway, I'm pretty sure that this bug was there even before using the backports.
2.24.1 is the version of gnome-system-monitor, then. I've fixed directory cleanup in svn. 2008-11-27 Jens Granseuer <...> * capplet-util.c: (directory_delete_recursive): don't try to delete the directory twice; fixes cleaning up after theme installations, for example (bug #562371) Overwriting themes is a bit more involved and probably won't happen on the stable branch.
OK, thanks a lot for the fix. Btw, my Gnome is really 2.24.1, it says so in the system monitor and in "About Gnome" (in System --> About Gnome). Really!
(In reply to comment #11) > Btw, my Gnome is really 2.24.1, it says so in the system monitor and in "About > Gnome" (in System --> About Gnome). Really! I don't doubt that, but Gnome consists of lots of packages, and the overall Gnome version is irrelevant in most cases. What matters are the individual package versions which you can get from your package manager or, for g-c-c, by running gnome-appearance-properties --version, for example.
Aha, OK. Misunderstanding then, I thought you meant the GNOME version. My gnome-appearance-properties is indeed 2.24.0.1.
*** Bug 562587 has been marked as a duplicate of this bug. ***
I think that should be marked as a bug and not as an enhancement. I suppose that the manager could upgrade an icon theme, at least it should delete the theme directory (under .icons) and then reinstall it. I think this is a bug because from gnome 2.24.1 every icon theme cannot be upgraded (reinstalled) without previously removing (manually) its directory under .icons
The problem that removing a theme does not properly remove the entire theme directory has already been fixed. The fix will be included in the next version.
Mass move to gnome-tweak-tool, for theme handling bugs.
I'm closing this because it is not a Tweak Tool bug.