Re: [Zim-wiki] Win32: configuration path

2012-10-29 Thread klo uo
On Tue, Oct 30, 2012 at 6:24 AM, klo uo wrote: > > ... > XDG_DATA_HOME = Dir( > get_environ('XDG_DATA_HOME', os.environ['APPDATA'] + > '//zim//data')) > ... > Yet more issues, double forward

Re: [Zim-wiki] Win32: configuration path

2012-10-29 Thread klo uo
> > if os.name == 'nt': > import _winreg as wreg Heh, import should go after the "try", couple of lines bellow ___ Mailing list: https://launchpad.net/~zim-wiki Post to : zim-wiki@lists.launchpad.net

Re: [Zim-wiki] Win32: configuration path

2012-10-29 Thread klo uo
On Mon, Oct 29, 2012 at 8:42 PM, Jaap Karssenberg wrote: >> So that if user has config files as in zim 0.57 config folders, above >> snippet will make it compatible to potentially new config folder >> scheme? > > Yes, that is the idea. That sounds great :) >>> Probably the CACHE variable should

Re: [Zim-wiki] Win32: configuration path

2012-10-29 Thread klo uo
On Mon, Oct 29, 2012 at 3:43 PM, Jaap Karssenberg wrote: > > The "XDG_xxx_DIRS" variables are lookup paths for system defaults for > files not found in the corresponding "XDG_xxx_HOME" folder. So should > probably include at least the fallback location. If I read this right, then if "XDG_xxx_DIRS"

Re: [Zim-wiki] Win32: configuration path

2012-10-29 Thread Jaap Karssenberg
On Mon, Oct 29, 2012 at 3:36 PM, klo uo wrote: >> XDG_DATA_HOME = Dir( >> get_environ('XDG_DATA_HOME', os.environ['APPDATA'] + >> '//zim//data')) >> >> XDG_DATA_DIRS = Dir( >> get_environ('XDG_DATA_DIRS', os.environ['APPDATA'

Re: [Zim-wiki] Win32: configuration path

2012-10-29 Thread klo uo
Hi Japp, > This sounds like a reasonable proposal. Indeed setting XDG_DATA to the > relevant path will change the lookup path for zim. Probably you'll > also want to do something similar for XDG_CONFIG and XDG_CACHE. > > All these parameters are initialized in zim/config.py, feel free to > patch

Re: [Zim-wiki] Win32: configuration path

2012-10-29 Thread Jaap Karssenberg
On Mon, Oct 29, 2012 at 9:52 AM, klo uo wrote: > Now I have a suggestion: If you are willing to change this behavior > for Windows users and their special folders > (http://en.wikipedia.org/wiki/Special_folder), please don't use just > %USERPROFILE% aka "os.path.expanduser('~')", as that's *nix se

[Zim-wiki] Win32: configuration path

2012-10-29 Thread klo uo
Hi, I run zim-0.57 from source on XP, and I arranged/mapped some topics with appropriate PDF file links, then discovered that I can even customize which application handles the link. Great! However, the path to my custom application had spaces in it, and it failed to launch. OK, figured that and