ui/common/properties.c

changeset 1014
83c83a7aa552
parent 997
287b20e2a564
equal deleted inserted replaced
1013:5d8822279684 1014:83c83a7aa552
119 #ifdef UI_COCOA 119 #ifdef UI_COCOA
120 // on OS X the app dir is $HOME/Library/Application Support/$APPNAME/ 120 // on OS X the app dir is $HOME/Library/Application Support/$APPNAME/
121 cxBufferPutString(&buf, "Library/Application Support/"); 121 cxBufferPutString(&buf, "Library/Application Support/");
122 #elif defined(_WIN32) 122 #elif defined(_WIN32)
123 // on Windows the app dir is $USERPROFILE/AppData/Local/$APPNAME/ 123 // on Windows the app dir is $USERPROFILE/AppData/Local/$APPNAME/
124 cxBufferPutString(&buf, "AppData\\Local\\"); 124 cxBufferPutString(&buf, "AppData\\Roaming\\");
125 #else 125 #else
126 if(use_xdg_config_home) { 126 if(use_xdg_config_home) {
127 // app dir is $HOME/.config/$APPNAME/ 127 // app dir is $HOME/.config/$APPNAME/
128 char *xdghome = getenv(UI_XDG_CONFIG_HOME_VAR); 128 char *xdghome = getenv(UI_XDG_CONFIG_HOME_VAR);
129 size_t xdghomelen = xdghome ? strlen(xdghome) : 0; 129 size_t xdghomelen = xdghome ? strlen(xdghome) : 0;

mercurial