Changeset 666:197093e04bcc in mediastreamer2


Ignore:
Timestamp:
Sep 14, 2009 12:40:30 PM (4 years ago)
Author:
smorlat <smorlat@…>
Branch:
default
Message:

allow to change working dir on windows.

git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@654 3f6dc0c8-ddfe-455d-9043-3cd528dc4637

File:
1 edited

Legend:

Unmodified
Added
Removed
  • linphone/gtk-glade/main.c

    r662 r666  
    7878static gchar * addr_to_call = NULL; 
    7979static gboolean iconified=FALSE; 
     80#ifdef WIN32 
     81static gchar *workingdir=NULL; 
     82#endif 
    8083 
    8184static GOptionEntry linphone_options[]={ 
     
    9497                .description=N_("Start only in the system tray, do not show the main interface.") 
    9598        }, 
    96         {                               /* zsd addition */ 
     99        { 
    97100            .long_name = "call", 
    98101            .short_name = 'c', 
     
    101104            .description = N_("address to call right now") 
    102105        }, 
    103         {                               /* zsd addition */ 
     106        { 
    104107            .long_name = "auto-answer", 
    105108            .short_name = 'a', 
     
    108111            .description = N_("if set automatically answer incoming calls") 
    109112        }, 
     113#ifdef WIN32 
     114        {                               /* zsd addition */ 
     115            .long_name = "workdir", 
     116            .short_name = '\0', 
     117            .arg = G_OPTION_ARG_STRING, 
     118            .arg_data = (gpointer) & workingdir, 
     119            .description = N_("Specifiy a working directory (should be the base of the installation, eg: c:\\Program Files\\Linphone)") 
     120        }, 
     121#endif 
    110122        {0} 
    111123}; 
     
    10641076} 
    10651077 
    1066  
    10671078int main(int argc, char *argv[]){ 
    10681079#ifdef ENABLE_NLS 
     
    10781089 
    10791090#ifdef WIN32 
     1091        if (workingdir!=NULL) 
     1092                _chdir(workingdir); 
     1093 
    10801094        /*workaround for windows: sometimes LANG is defined to an integer value, not understood by gtk */ 
    10811095        if ((lang=getenv("LANG"))!=NULL){ 
Note: See TracChangeset for help on using the changeset viewer.