Mercurial > geeqie.yaz
comparison src/main.c @ 1636:c0f6a98c9204
do not install helper scripts into /usr/bin
- install the helper scripts into pkglibdir, that is /usr/lib/geeqie
- add the directory to $PATH on startup - the Exec line in desktop files
does not have to contain full path
fixes
https://sourceforge.net/tracker/?func=detail&aid=2801121&group_id=222125&atid=1054680
author | nadvornik |
---|---|
date | Wed, 10 Jun 2009 20:26:47 +0000 |
parents | 62521de19763 |
children | 24360823aa6a |
comparison
equal
deleted
inserted
replaced
1635:b4199094b0db | 1636:c0f6a98c9204 |
---|---|
444 *----------------------------------------------------------------------------- | 444 *----------------------------------------------------------------------------- |
445 */ | 445 */ |
446 | 446 |
447 #define RC_HISTORY_NAME "history" | 447 #define RC_HISTORY_NAME "history" |
448 | 448 |
449 static void setup_env_path(void) | |
450 { | |
451 const gchar *old_path = g_getenv("PATH"); | |
452 gchar *path = g_strconcat(GQ_BIN_DIR, ":", old_path, NULL); | |
453 g_setenv("PATH", path, TRUE); | |
454 g_free(path); | |
455 } | |
456 | |
449 static void keys_load(void) | 457 static void keys_load(void) |
450 { | 458 { |
451 gchar *path; | 459 gchar *path; |
452 | 460 |
453 path = g_build_filename(get_rc_dir(), RC_HISTORY_NAME, NULL); | 461 path = g_build_filename(get_rc_dir(), RC_HISTORY_NAME, NULL); |
783 mkdir_if_not_exists(get_rc_dir()); | 791 mkdir_if_not_exists(get_rc_dir()); |
784 mkdir_if_not_exists(get_collections_dir()); | 792 mkdir_if_not_exists(get_collections_dir()); |
785 mkdir_if_not_exists(get_thumbnails_cache_dir()); | 793 mkdir_if_not_exists(get_thumbnails_cache_dir()); |
786 mkdir_if_not_exists(get_metadata_cache_dir()); | 794 mkdir_if_not_exists(get_metadata_cache_dir()); |
787 | 795 |
796 setup_env_path(); | |
797 | |
788 keys_load(); | 798 keys_load(); |
789 accel_map_load(); | 799 accel_map_load(); |
790 | 800 |
791 /* restore session from the config file */ | 801 /* restore session from the config file */ |
792 | 802 |