Portable version (Windows) writes stuff in $appdata
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zim |
Confirmed
|
Undecided
|
Brendan Kidwell |
Bug Description
Quick and dirty description. I will clean this up later.
A user reported in the chat room that the portable Zim Desktop Wiki for Windows (0.65) writes and reads settings in $APPDATA, including:
C:\Users\
C:\Users\
C:\Users\
Also end-user-installed plugins are searched for somewhere under $APPDATA which is not proper for a portable app.
To reproduce, delete $APPDATA/zim and run the portable Zim app. Edit settings, change the default text editor, etc. The folder will have reappeared.
To fix: we need to redefine at the shell level (in ZimDesktopWikiP
Changed in zim: | |
assignee: | nobody → Brendan Kidwell (bkidwell) |
status: | New → Incomplete |
description: | updated |
Relevant code is in zim/config/ basedirs. py line 48 - 76
There are 3 XDG parameters that are using the APPDATA folder as a default: XDG_DATA_HOME, XDG_CONFIG_HOME and XDG_CACHE_HOME.
The files mentioned in the description above would be looked up relative to XDG_DATA_HOME.
To complete the list, the remaining paramaters XDG_DATA_DIRS and XDG_CONFIG_DIRS are only used for reading. They fall back to other known default locations.
-- Jaap