[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Mldonkey-tasks] [task #4310] Let MLDonkey create its data in $HOME/.mld
From: |
spiralvoice |
Subject: |
[Mldonkey-tasks] [task #4310] Let MLDonkey create its data in $HOME/.mldonkey be default |
Date: |
Sat, 25 Jun 2005 11:35:49 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; de-DE; rv:1.7.8) Gecko/20050519 Firefox/1.0.4 |
URL:
<http://savannah.nongnu.org/task/?func=detailitem&item_id=4310>
Summary: Let MLDonkey create its data in $HOME/.mldonkey be
default
Project: mldonkey, a multi-networks file-sharing client
Submitted by: spiralvoice
Submitted on: Sam 25.06.2005 um 11:35
Category: Core
Priority: 3 - Low
Status: None
Assigned to: None
Open/Closed: Open
Should Start On: Sam 25.06.2005 um 00:00
Should be Finished on: Sam 25.06.2005 um 00:00
_______________________________________________________
Details:
This is a feature request which would be released in version 2.6.
As this is a major change in comparison to current behaviour
users need to have attention for this change so a new minor
release number would be adequate.
Coding this would be easy in commonOptions.ml
(
try
let s = Sys.getenv "MLDONKEY_DIR" in
if s = "" then "." else s
with _ ->
!!mldonkey_directory
), home_dir
"else s" should be changed to something like this:
else match Autoconf.system with
"windows" -> Sys.getenv "USERPROFILE" ^ config_dir_basename (*to be
tested*)
| "unix" "freebsd" "openbsd" "solaris" -> Sys.getenv "HOME" ^
config_dir_basename
| "darwin" -> () (*don´t know, any help?*)
| _ -> "."
This code is only an example.
config_dir_basename means this:
let hidden_dir_prefix =
if Autoconf.system = "windows" then "" else "."
let config_dir_basename = hidden_dir_prefix ^ "mldonkey"
This is necessary as directories on Windows can´t start with "."
Other clients like aMule and eDonkey already are working like
this so MLDonkey would be more compatible. The MLDonkey Debian
package also puts MLDonkey files and dirs into $HOME/.mldonkey
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/task/?func=detailitem&item_id=4310>
_______________________________________________
Nachricht geschickt von/durch Savannah
http://savannah.nongnu.org/
- [Mldonkey-tasks] [task #4310] Let MLDonkey create its data in $HOME/.mldonkey be default,
spiralvoice <=