diff options
author | Gerald Combs <gerald@wireshark.org> | 2023-01-17 14:07:33 -0800 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2023-01-18 20:37:08 +0000 |
commit | 5a9812ab6130c241ff304c2b76f0b57fb7cccde6 (patch) | |
tree | 2aa58a9de049361ad2d5954dd9bbb272bd011e14 /wsutil | |
parent | a5eb85a1d6d2667610d7e7c1833c6b03b1c0de8a (diff) |
AppRun: Set various paths
Set our ld library path and our data, extcap, and plugin directories.
Document WIRESHARK_EXTCAP_DIR and WIRESHARK_PLUGIN_DIR. Note that we
might want to set our various directories relative to the program path.
Diffstat (limited to 'wsutil')
-rw-r--r-- | wsutil/filesystem.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/wsutil/filesystem.c b/wsutil/filesystem.c index 6e5ba34889..a463a01974 100644 --- a/wsutil/filesystem.c +++ b/wsutil/filesystem.c @@ -1033,6 +1033,11 @@ get_datafile_dir(void) */ datafile_dir = g_strdup(progfile_dir); } else { + /* + * XXX We might want want to make this relative to progfile_dir, which would + * allow installation into arbitrary directories and provide better AppImage + * support. + */ datafile_dir = g_strdup(DATA_DIR); } #endif @@ -1142,6 +1147,11 @@ init_plugin_dir(void) } #endif else { + /* + * XXX We might want want to make this relative to progfile_dir, which would + * allow installation into arbitrary directories and provide better AppImage + * support. + */ plugin_dir = g_strdup(PLUGIN_DIR); } } @@ -1277,6 +1287,11 @@ init_extcap_dir(void) } #endif else { + /* + * XXX We might want want to make this relative to progfile_dir, which would + * allow installation into arbitrary directories and provide better AppImage + * support. + */ extcap_dir = g_strdup(EXTCAP_DIR); } #endif |