about summary refs log tree commit diff stats
path: root/src/config
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2020-05-20 10:41:59 +0200
committerMichael Vetter <jubalh@iodoru.org>2020-05-20 10:54:58 +0200
commit21cc53bdfdb70bc375bf6b4c46593889b9702489 (patch)
treebd426c61c839affc49af40a9cebd7076cdd018fd /src/config
parentfc5fa629513d804dee5371f85acc4c4558e699a1 (diff)
downloadprofani-tty-21cc53bdfdb70bc375bf6b4c46593889b9702489.tar.gz
Make urlopen command configurable
Diffstat (limited to 'src/config')
-rw-r--r--src/config/preferences.c4
-rw-r--r--src/config/preferences.h1
2 files changed, 5 insertions, 0 deletions
diff --git a/src/config/preferences.c b/src/config/preferences.c
index 9a2105c0..3821f024 100644
--- a/src/config/preferences.c
+++ b/src/config/preferences.c
@@ -1783,6 +1783,7 @@ _get_group(preference_t pref)
         case PREF_LOG_ROTATE:
         case PREF_LOG_SHARED:
         case PREF_AVATAR_CMD:
+        case PREF_URL_OPEN_CMD:
             return PREF_GROUP_LOGGING;
         case PREF_AUTOAWAY_CHECK:
         case PREF_AUTOAWAY_MODE:
@@ -2070,6 +2071,8 @@ _get_key(preference_t pref)
             return "slashguard";
         case PREF_MAM:
             return "mam";
+        case PREF_URL_OPEN_CMD:
+            return "urlopen.cmd";
         default:
             return NULL;
     }
@@ -2205,6 +2208,7 @@ _get_default_string(preference_t pref)
         case PREF_COLOR_NICK:
             return "false";
         case PREF_AVATAR_CMD:
+        case PREF_URL_OPEN_CMD:
             return "xdg-open";
         default:
             return NULL;
diff --git a/src/config/preferences.h b/src/config/preferences.h
index 7d651ac3..fc6eeafc 100644
--- a/src/config/preferences.h
+++ b/src/config/preferences.h
@@ -170,6 +170,7 @@ typedef enum {
     PREF_AVATAR_CMD,
     PREF_SLASH_GUARD,
     PREF_MAM,
+    PREF_URL_OPEN_CMD,
 } preference_t;
 
 typedef struct prof_alias_t {