about summary refs log tree commit diff stats
path: root/src/ui/console.c
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2020-07-02 11:26:18 +0200
committerGitHub <noreply@github.com>2020-07-02 11:26:18 +0200
commit9774b0c5509193027d4f68df9dcb862455699cfc (patch)
tree1ade86abc718ae2cc06199c12c5d6a4f0cb49df0 /src/ui/console.c
parent3af5f33489d1e065c9da03b0bb99eddff57816a4 (diff)
parent86cd33405e7f67647ce2c171e19bab4120201140 (diff)
downloadprofani-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.c14
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