Skip to content

Resolve relative UI theme paths against config folder#24658

Merged
glassez merged 1 commit into
qbittorrent:masterfrom
vrubleg:qbt-24489-relative-theme-path
Jul 14, 2026
Merged

Resolve relative UI theme paths against config folder#24658
glassez merged 1 commit into
qbittorrent:masterfrom
vrubleg:qbt-24489-relative-theme-path

Conversation

@vrubleg

@vrubleg vrubleg commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

The #24514 fixed issue #24489 but added an inconsistency. qBittorrent does not store all its files in the rootPath (profile in portable installation). It has one subdirectory with current internal profile name (that by default is just the name of the app):

image

The real config directory is two levels deeper (profile/qBittorrent/config), the ini-file that points to the theme file is also stored there. It would be logical to resolve theme path from the config directory. This PR should fix the inconsistency.

@glassez
glassez requested a review from a team July 9, 2026 07:29
@glassez glassez added GUI GUI-related issues/changes Bugfix labels Jul 9, 2026
@glassez glassez added this to the 5.2.4 milestone Jul 9, 2026
thalieht
thalieht previously approved these changes Jul 9, 2026
@glassez

glassez commented Jul 11, 2026

Copy link
Copy Markdown
Member

Please note that there is no single profile directory in the "default profile mode". In this case, basePath points to the home directory.

Comment thread src/gui/uithememanager.cpp Outdated
@vrubleg
vrubleg force-pushed the qbt-24489-relative-theme-path branch from 52efb3b to 7ba6a0b Compare July 11, 2026 13:43
@vrubleg
vrubleg force-pushed the qbt-24489-relative-theme-path branch from 7ba6a0b to d6c5de2 Compare July 11, 2026 13:45
@glassez glassez changed the title Resolve relative UI theme paths from the profile base path Resolve relative UI theme paths against config folder Jul 11, 2026
@glassez

glassez commented Jul 11, 2026

Copy link
Copy Markdown
Member

@vrubleg
PR description and screenshot should be updated too.

@glassez
glassez merged commit f485d00 into qbittorrent:master Jul 14, 2026
18 of 19 checks passed
@glassez

glassez commented Jul 14, 2026

Copy link
Copy Markdown
Member

@vrubleg
Thank you!

glassez pushed a commit to glassez/qBittorrent that referenced this pull request Jul 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bugfix GUI GUI-related issues/changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants