[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


                 Summary: Let MLDonkey create its data in $HOME/.mldonkey be
                 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



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

          let s = Sys.getenv "MLDONKEY_DIR" in
          if s = "" then "." else s
        with _ ->
      ), 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
  | "unix" "freebsd" "openbsd" "solaris" -> Sys.getenv "HOME" ^
  | "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:


  Nachricht geschickt von/durch Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]