Blender cannot install themes from the Preferences dialog: Instead of copying the xml file, it copies the whole zip file, which fails to work #120195

Open
opened 2024-04-03 07:56:11 +02:00 by Narayan Aras · 7 comments

System Information
Operating system: Win 11 Home ('Windows-10-10.0.22631-SP0')
Graphics card: Intel UHD 620

Blender Version
Broken: version: 4.2.0 Alpha, branch: master, commit date: 2024-03-22 09:01, hash: 41af5d44600b, type:
build date: 2024-03-22, 09:56:09

Short description of error
Blender cannot install themes from the Preferences dialog:
Instead of copying the xml file in the interface_themes folder, it copies the whole zip file.
As a result, Blender fails to show the theme in the drop-down list.

Exact steps for others to reproduce the error

  1. Download any zip file for a theme (for example, this one)
  2. In Blender, open the Preferences dialog.
  3. Select the Themes section
  4. Click on the Install... button.
  5. Navigate to the zip file that is downloaded in step#1.
  6. Select the zip and click Install theme... button.
  7. Restart Blender.
  8. Open the Preferences dialog once again.
  9. Check out the Themes drop-down list.
    The newly installed theme does not appear there [BUG]
  10. Navigate to the Interface_themes folder in the user preference section.
    The folder has a zip file for the newly installed theme.
    Extract the xml file from the zip file into the Interface_themes folder.
  11. Restart Blender.
  12. Open the Preferences dialog once again.
  13. Click on the Themes drop-down list.
    The newly installed theme appears.

To sum up, Blender ends up putting the whole zip file of the theme in the Interface_themes folder.
But it cannot detect the theme unless we extract the xml file into that folder.

Thus, the installation process needs to be corrected.

**System Information** Operating system: Win 11 Home ('Windows-10-10.0.22631-SP0') Graphics card: Intel UHD 620 **Blender Version** Broken: version: 4.2.0 Alpha, branch: master, commit date: 2024-03-22 09:01, hash: 41af5d44600b, type: build date: 2024-03-22, 09:56:09 **Short description of error** Blender cannot install themes from the **Preferences** dialog: Instead of copying the xml file in the interface_themes folder, it copies the whole zip file. As a result, Blender fails to show the theme in the drop-down list. **Exact steps for others to reproduce the error** 1. Download any zip file for a theme (for example, [this one](https://extensions.blender.org/themes/midnight-blue/0.0.1/download/)) 2. In Blender, open the **Preferences** dialog. 3. Select the **Themes** section 4. Click on the **Install...** button. 5. Navigate to the zip file that is downloaded in step#1. 6. Select the zip and click **Install theme...** button. 7. Restart Blender. 8. Open the **Preferences** dialog once again. 9. Check out the **Themes** drop-down list. The newly installed theme does not appear there [BUG] 10. Navigate to the **Interface_themes** folder in the _user preference_ section. The folder has a zip file for the newly installed theme. Extract the xml file from the zip file into the **Interface_themes** folder. 11. Restart Blender. 12. Open the **Preferences** dialog once again. 13. Click on the **Themes** drop-down list. The newly installed theme appears. To sum up, Blender ends up putting the whole zip file of the theme in the **Interface_themes** folder. But it cannot detect the theme unless we extract the xml file into that folder. Thus, the installation process needs to be corrected.
Narayan Aras added the
Severity
Normal
Status
Needs Triage
Type
Report
labels 2024-04-03 07:56:12 +02:00
Member

Looks like the file selector for theme is only filtering .xml on linux, not zip. Will check on windows in a bit.

Looks like the file selector for theme is only filtering `.xml` on linux, not zip. Will check on windows in a bit.
Member

On windows it's also only filtering .xml files, have you disabled the filter to choose that zip @raindrops ? Otherwise you won't be able to choose a zip file to be installed as a theme.

I guess there should be checks in place for preferences.theme_install. Maybe I could make a small fix for that, although I don't think this is the intended use for the Install button.

On windows it's also only filtering `.xml` files, have you disabled the filter to choose that `zip` @raindrops ? Otherwise you won't be able to choose a zip file to be installed as a theme. I guess there should be checks in place for `preferences.theme_install`. Maybe I could make a small fix for that, although I don't think this is the intended use for the `Install` button.
Author

Well, I was not aware that-
(a) Blender cannot handle zip files (as in case of addons)
(b) The installation dialog has a filter for .xml files!

I am used to the fact that Blender installs addons directly from zip files. So, I simply copy the full path for addon zip files from my file manager, and then paste the path in the addon installation dialog.

I followed the same process to install new themes also.
Blender did not throw an error, so I assumed that the theme was installed successfully.

During investigation, I found that Blender places a copy of the zip file in the Interface_themes folder.
This was even more confusing for me.

Now I know that I have to unzip the xml file first, and then install the theme using the dialog.

That said, IMHO Blender behaves inconsistently in three different ways:

  1. Blender accepts zip files for addons, but not for themes.
    IMHO it should accept zip files for themes also.

  2. If themes cannot be installed by pasting zip files, then Blender should throw an error when the user tries to install a theme using a zip file.

  3. Blender should not place a copy of the zip file in the Interface_themes folder.

BTW, if Blender does not accept zip files, then Blender's Extension website should provide downloads of xml file instead of zip file.
The fact that it provides a zip file leads to a confusion in the user's mind.

Well, I was not aware that- (a) Blender cannot handle zip files (as in case of addons) (b) The installation dialog has a filter for .xml files! I am used to the fact that Blender installs addons directly from zip files. So, I simply copy the full path for addon zip files from my file manager, and then paste the path in the addon installation dialog. I followed the same process to install new themes also. Blender did not throw an error, so I assumed that the theme was installed successfully. During investigation, I found that Blender places a copy of the zip file in the **Interface_themes** folder. This was even more confusing for me. Now I know that I have to unzip the xml file first, and then install the theme using the dialog. That said, IMHO Blender behaves inconsistently in three different ways: 1. Blender accepts zip files for addons, but not for themes. IMHO it should accept zip files for themes also. 2. If themes cannot be installed by pasting zip files, then Blender should throw an error when the user tries to install a theme using a zip file. 3. Blender should not place a copy of the zip file in the **Interface_themes** folder. BTW, if Blender does not accept zip files, then Blender's Extension website should provide downloads of xml file instead of zip file. The fact that it provides a zip file leads to a confusion in the user's mind.
Member

@pablovazquez Any thoughts on this?

@pablovazquez Any thoughts on this?
YimingWu added
Status
Needs Info from Developers
and removed
Status
Needs Triage
labels 2024-04-03 13:34:18 +02:00
Member
  1. In 4.2, Blender supports .zip files for themes if they are packaged as an extension (you can even drag and drop them). This will be the preferred way in the future so I don't think .zip file support for themes that are not extensions needs to be added.

  2. Yes, Blender should throw an error because the operation is not successful (as in, the theme is not usable).

  3. Yes, I agree it shouldn't.

1. In 4.2, Blender supports .zip files for themes if they are packaged as an extension (you can even drag and drop them). This will be the preferred way in the future so I don't think .zip file support for themes that are not extensions needs to be added. 2. Yes, Blender should throw an error because the operation is not successful (as in, the theme is not usable). 3. Yes, I agree it shouldn't.
Author

@pablovazquez

Thanks for confirming!

As regards the first point, I would like to add the following:

It seems that the packaging for themes is not finalized (whether raw xml or zip?)
So people may try to install with both types of files.
Blender should handle both types gracefully (if the theme fails to get installed, there should be a message).

Also, if someone points to a zip that does not contain a xml with expected structure, then also an error message should appear.

@pablovazquez Thanks for confirming! As regards the first point, I would like to add the following: It seems that the packaging for themes is not finalized (whether raw xml or zip?) So people may try to install with both types of files. Blender should handle both types gracefully (if the theme fails to get installed, there should be a message). Also, if someone points to a zip that does not contain a xml with expected structure, then also an error message should appear.

Blender 4.2 is extension not add-ons.
Theme tab is install .xml file.
Extension install from disk is .zip file.

See how you do use theme.zip
https://extensions.blender.org/submit/
https://docs.blender.org/manual/en/dev/advanced/extensions/

Blender 4.2.0 beta June 8, 2024 is already resolve.

Blender 4.2 is extension not add-ons. Theme tab is install .xml file. Extension install from disk is .zip file. See how you do use theme.zip https://extensions.blender.org/submit/ https://docs.blender.org/manual/en/dev/advanced/extensions/ Blender 4.2.0 beta June 8, 2024 is already resolve.
Bart van der Braak added
Type
Bug
and removed
Type
Report
labels 2024-08-14 13:02:46 +02:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset System
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Viewport & EEVEE
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Asset Browser Project
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Module
Viewport & EEVEE
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Severity
High
Severity
Low
Severity
Normal
Severity
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#120195
No description provided.