Bug 534 - New 1.8.3 datadir function and usb drives on XP
Status:
RESOLVED FIXED
Component:
Core :: Win32
Version:
unspecified
Hardware:
PC Windows
Importance:
P2 enhancement
Target Milestone:
---
Assignee:
Raymond Penners
URL:
Depends on:
Blocks:
Reported:
Jun 8 2006 00:05:23 UTC
by:
Joost
Modified:
Aug 18 2006 00:58:31 UTC
WhoWhenWhatRemovedAdded
Rob CaelersAug 18 2006 00:58:31 UTCstatusNEWRESOLVED
resolutionFIXED
Description
Joost  Jun 8 2006 00:05:23 UTC
I wonder what happens if the driveletter my usb stick uses changes on the different machines I use. Not all systems have the same drive setup, so on one pc the usbdrive gets drive J: but on the other it gets D:.

I think it would be better if workrave could select a datadir relative to its executable or something like that. So if the main executable resides in "\workrave\lib" the datadir should be in "..\data" corresponding to "\workrave\data" or "data" corresponding to "\workrave\lib\data". Whatever easier is to implement.

This bug is related to bug 478 (original request for this enhancement) and bug 533 (I cannot get it to work).
Comment 1
Rob Caelers  Aug 18 2006 00:58:31 UTC
Now supported (Window only. As far as I know, there is no portable way to get the directory of the currently running executable)

** The 'datadir' configuration option in workrave.ini can now be a
   relative path:
     [general]
     datadir=.\\Data

   This will store all Workrave data in the 'Data' directory below the
   Workrave root directory. 
   (Note the double backslash)