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
Labels
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
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#120195
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
The newly installed theme does not appear there [BUG]
The folder has a zip file for the newly installed theme.
Extract the xml file from the zip file into the Interface_themes folder.
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.
Looks like the file selector for theme is only filtering
.xml
on linux, not zip. Will check on windows in a bit.On windows it's also only filtering
.xml
files, have you disabled the filter to choose thatzip
@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 theInstall
button.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:
Blender accepts zip files for addons, but not for themes.
IMHO it should accept zip files for themes also.
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.
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.
@pablovazquez Any thoughts on this?
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.
Yes, Blender should throw an error because the operation is not successful (as in, the theme is not usable).
Yes, I agree it shouldn't.
@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.