[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [be] Greetings and question about project files
From: |
Dan Dennison |
Subject: |
Re: [be] Greetings and question about project files |
Date: |
Mon, 16 Feb 2009 20:53:45 -0800 |
On Feb 16, 2009, at 7:01 PM, Daniel Owens wrote:
I was wondering if there was a way to have a custom .bibledit folder
when using Bibledit in Windows. I have a dual boot setup (so I can
run Libronix), so my projects are on a second hard drive formatted
in NTFS. A symlink in my home folder in Linux makes it work there,
but what about Windows? I understand that Vista supports symlinks,
but what about XP? Would it be possible to create an option in the
gui to have a custom location for project files?
In Windows XP, you can create a hard link.
C:\>fsutil hardlink create
Usage : fsutil hardlink create <new filename> <existing filename>
Eg : fsutil hardlink create c:\foo.txt c:\bar.txt
The code that creates/specifies the data directory is called
tiny_directories_get_root(), which returns a ustring containing the
path to the data directory (currently $HOME/.bibledit)
tiny_utilities.cpp:
root_directory = tiny_gw_build_filename(g_get_home_dir(),
".bibledit");
The idea to create a UI to specify where to store the Bibledit data
makes sense to me. I wonder if perhaps putting it under Application
Data might be a bit better.
The catch-22 here will be that on startup, Bibledit will need to find
where to find it. The XML config file is stored inside of this, so
that might not help. Perhaps hard-coding the XML config file to
$HOME/.bibledit/configuration, and then loading everything else from
there?
dan :)