diff options
author | Michael Vetter <jubalh@iodoru.org> | 2020-07-02 11:26:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-02 11:26:18 +0200 |
commit | 9774b0c5509193027d4f68df9dcb862455699cfc (patch) | |
tree | 1ade86abc718ae2cc06199c12c5d6a4f0cb49df0 /src/ui/console.c | |
parent | 3af5f33489d1e065c9da03b0bb99eddff57816a4 (diff) | |
parent | 86cd33405e7f67647ce2c171e19bab4120201140 (diff) | |
download | profani-tty-9774b0c5509193027d4f68df9dcb862455699cfc.tar.gz |
Merge pull request #1374 from profanity-im/revampUrlopen
Rework /url and /executable for filetypes
Diffstat (limited to 'src/ui/console.c')
-rw-r--r-- | src/ui/console.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/ui/console.c b/src/ui/console.c index 8b6693e4..47267e1c 100644 --- a/src/ui/console.c +++ b/src/ui/console.c @@ -2067,12 +2067,18 @@ void cons_executable_setting(void) { char *avatar = prefs_get_string(PREF_AVATAR_CMD); - cons_show("Avatar command (/executable avatar) : %s", avatar); + cons_show("Default '/avatar open' command (/executable avatar) : %s", avatar); prefs_free_string(avatar); - char *exec = prefs_get_string(PREF_URL_OPEN_CMD); - cons_show("urlopen command (/executable urlopen) : %s", exec); - prefs_free_string(exec); + //TODO: there needs to be a way to get all the "locales"/schemes so we can + //display the defualt openers for all filetypes + gchar **urlopen = prefs_get_string_list_with_option(PREF_URL_OPEN_CMD, ""); + cons_show("Default '/url open' command (/executable urlopen) : %s", urlopen[1]); + g_strfreev(urlopen); + + char *urlsave = prefs_get_string(PREF_URL_SAVE_CMD); + cons_show("Default '/url save' command (/executable urlsave) : %s", urlsave); + g_free(urlsave); } void |