Philipp Hörist pushed to branch master at gajim / gajim
Commits:
55a5bb9f by Philipp Hörist at 2025-07-05T12:41:04+02:00
fix: Windows: Make --user-profile work correctly with portable installations
Fixes #12356
- - - - -
1 changed file:
- gajim/common/configpaths.py
Changes:
=====================================
gajim/common/configpaths.py
=====================================
@@ -173,21 +173,24 @@ def add(self,
def init(self):
- root_folder = "gajim"
+ root_folder = 'gajim'
if self.user_profile:
- root_folder = f"gajim.{self.user_profile}"
-
- if sys.platform == "win32":
- root_folder = root_folder.capitalize()
+ root_folder = f'gajim.{self.user_profile}'
+ if sys.platform == 'win32':
if gajim.IS_PORTABLE:
+
+ root_folder = 'UserData'
+ if self.user_profile:
+ root_folder = f'UserData.{self.user_profile}'
+
application_path = Path(sys.executable).parent
self.config_root = self.cache_root = self.data_root = \
- application_path.parent / 'UserData'
+ application_path.parent / root_folder
else:
# Documents and Settings\[User Name]\Application Data\Gajim
self.config_root = self.cache_root = self.data_root = \
- Path(os.environ['APPDATA']) / root_folder
+ Path(os.environ['APPDATA']) / root_folder.capitalize()
else:
self.config_root = Path(GLib.get_user_config_dir()) / root_folder
self.cache_root = Path(GLib.get_user_cache_dir()) / root_folder
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/55a5bb9f2af99d3778d4160083dddb12db0fb5db
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/55a5bb9f2af99d3778d4160083dddb12db0fb5db
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]