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 148895 - Theme Manager Fails to Install .tgz files correctly
Theme Manager Fails to Install .tgz files correctly
Status: RESOLVED FIXED
Product: gnome-control-center
Classification: Core
Component: [obsolete] theme-manager
git master
Other All
: High normal
: ---
Assigned To: Control-Center Maintainers
Control-Center Maintainers
Depends on:
Blocks:
 
 
Reported: 2004-07-30 21:41 UTC by Mike Newman
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch to install themes packaged as .tgz files (1.47 KB, patch)
2004-07-30 21:41 UTC, Mike Newman
none Details | Review
Improved patch - present an error dialog if the theme is not in one of the expected formats. (2.04 KB, patch)
2004-07-30 22:09 UTC, Mike Newman
none Details | Review
Further improvement: remove the unusable file from ~/.themes after showing the dialog. (2.15 KB, patch)
2004-07-30 22:51 UTC, Mike Newman
accepted-commit_now Details | Review

Description Mike Newman 2004-07-30 21:41:03 UTC
I've noticed a number of themes packaged as .tgz (rather than .tar.gz) files.

If a .tgz file is selected in the theme install dialog, it is moved to the
~/.themes directory but not unpacked. The process fails silently.

The attached patch unpacks and correctly installs these files.
Comment 1 Mike Newman 2004-07-30 21:41:54 UTC
Created attachment 30096 [details] [review]
Patch to install themes packaged as .tgz files
Comment 2 Mike Newman 2004-07-30 22:09:11 UTC
Created attachment 30098 [details] [review]
Improved patch - present an error dialog if the theme is not in one of the expected formats.
Comment 3 Mike Newman 2004-07-30 22:51:02 UTC
Created attachment 30099 [details] [review]
Further improvement: remove the unusable file from ~/.themes after showing the dialog.
Comment 4 David Sedeño Fernández 2004-07-31 18:15:01 UTC
There are a rewrite of the install procedure in way. See bug #102216. Maybe you
can incorporte your changes after the commit of that bug. 
Comment 5 Sebastien Bacher 2004-10-23 23:34:53 UTC
The patch works fine here. I think that "This file is not a valid theme" should
be changed with "This file is not in a supported format" or something like that
since the the content of the archive is not verified.

Even if this part is beeing rewritten in #102216 it could be nice to commit this
first patch now. 

Permission to commit it to HEAD (no gnome-2-8 since there is a new string) ?
Comment 6 Jody Goldberg 2004-10-28 16:56:06 UTC
Comment on attachment 30099 [details] [review]
Further improvement: remove the unusable file from ~/.themes after showing the dialog.

A nice addition.  Get it into head please.
Comment 7 Mike Newman 2004-10-28 18:20:39 UTC
Committed, thanks.