How to get homedir ?

Discussion in 'Ruby' started by Florent 'flure' C., Apr 29, 2004.

  1. Hello,

    I'm writing an app in ruby/glade and I want to save the configuration and
    some data in the directory of the user.
    There is the function g_get_home_dir() in the GLib, but I can't find the
    way to call it from ruby :(
    Also I need it to function on GNU/Linux, Windows, and hopefully MacOS X.

    So, can anybody help me ?

    --
    Florent "flure" C.
    Décrypter l'@ pour répondre
    Coders don't die, they just JMP without RET !
    Florent 'flure' C., Apr 29, 2004
    #1
    1. Advertising

  2. il Thu, 29 Apr 2004 11:38:55 +0200, "Florent 'flure' C."
    <> ha scritto::

    >Hello,
    >
    >I'm writing an app in ruby/glade and I want to save the configuration and
    >some data in the directory of the user.
    >There is the function g_get_home_dir() in the GLib, but I can't find the
    >way to call it from ruby :(
    >Also I need it to function on GNU/Linux, Windows, and hopefully MacOS X.


    well, ENV['HOME'] works fine on my windows box and linux one
    gabriele renzi, Apr 29, 2004
    #2
    1. Advertising

  3. gabriele renzi <> wrote:
    > >There is the function g_get_home_dir() in the GLib, but I can't find the
    > >way to call it from ruby :(
    > >Also I need it to function on GNU/Linux, Windows, and hopefully MacOS X.

    >
    > well, ENV['HOME'] works fine on my windows box and linux one


    We had similar questions before, e. g. the thread
    "Profile-independent directory specification for NT?"
    might be interesting in this context.

    Cheers
    Sascha
    Sascha Doerdelmann, Apr 29, 2004
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Curt_C [MVP]
    Replies:
    2
    Views:
    354
    Curt_C [MVP]
    Sep 21, 2004
  2. =?Utf-8?B?U2hhcmlm?=

    use anonymous but get get an authentication box

    =?Utf-8?B?U2hhcmlm?=, Sep 21, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    363
    =?Utf-8?B?U2hhcmlm?=
    Sep 21, 2004
  3. Ryan Park
    Replies:
    2
    Views:
    678
    Joerg Jooss
    Jan 3, 2005
  4. Replies:
    3
    Views:
    465
    Marcus Kwok
    Mar 1, 2007
  5. ecu_jon

    homedir, file copy

    ecu_jon, Jan 30, 2011, in forum: Python
    Replies:
    14
    Views:
    571
    Dave Angel
    Jan 31, 2011
Loading...

Share This Page