VirtualBox

Ignore:
Timestamp:
Feb 11, 2009 4:47:53 PM (16 years ago)
Author:
vboxsync
Message:

cbinding: Added the functions to get and set the environment variables.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/cbinding/tstLinuxC.c

    r16548 r16684  
    306306    PRUnichar *homefolderUtf16  = NULL;
    307307    nsresult rc;     /* Result code of various function (method) calls. */
     308    FILE *fpsetenv;
     309
     310    if ((fpsetenv = fopen("/opt/VirtualBox/VBoxXPCOMC.so", "r")) != NULL) {
     311        VBoxSetEnv("VBOX_APP_HOME","/opt/VirtualBox/");
     312        fclose (fpsetenv);
     313    }
     314    if ((fpsetenv = fopen("/usr/lib/virtualbox/VBoxXPCOMC.so", "r")) != NULL) {
     315        VBoxSetEnv("VBOX_APP_HOME","/usr/lib/virtualbox/");
     316        fclose (fpsetenv);
     317    }
    308318
    309319    printf("Starting Main\n");
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette