Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_file/fsmenu.c
| Show First 20 Lines • Show All 571 Lines • ▼ Show 20 Lines | if (read_bookmarks) { | ||||
| CFRelease(pathesArray); | CFRelease(pathesArray); | ||||
| CFRelease(list); | CFRelease(list); | ||||
| } | } | ||||
| } | } | ||||
| #else | #else | ||||
| /* unix */ | /* unix */ | ||||
| { | { | ||||
| const char *home = getenv("HOME"); | const char *home = BLI_getenv("HOME"); | ||||
| if (read_bookmarks && home) { | if (read_bookmarks && home) { | ||||
| BLI_snprintf(line, sizeof(line), "%s/", home); | BLI_snprintf(line, sizeof(line), "%s/", home); | ||||
| fsmenu_insert_entry(fsmenu, FS_CATEGORY_SYSTEM_BOOKMARKS, line, NULL, FS_INSERT_SORTED); | fsmenu_insert_entry(fsmenu, FS_CATEGORY_SYSTEM_BOOKMARKS, line, NULL, FS_INSERT_SORTED); | ||||
| BLI_snprintf(line, sizeof(line), "%s/Desktop/", home); | BLI_snprintf(line, sizeof(line), "%s/Desktop/", home); | ||||
| if (BLI_exists(line)) { | if (BLI_exists(line)) { | ||||
| fsmenu_insert_entry(fsmenu, FS_CATEGORY_SYSTEM_BOOKMARKS, line, NULL, FS_INSERT_SORTED); | fsmenu_insert_entry(fsmenu, FS_CATEGORY_SYSTEM_BOOKMARKS, line, NULL, FS_INSERT_SORTED); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 114 Lines • Show Last 20 Lines | |||||