mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-31 16:06:22 +00:00
Make urlopen command configurable
This commit is contained in:
@@ -8871,7 +8871,7 @@ cmd_urlopen(ProfWin *window, const char *const command, gchar **args)
|
|||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
call_external("xdg-open", args[0]);
|
call_external(prefs_get_string(PREF_URL_OPEN_CMD), args[0]);
|
||||||
} else {
|
} else {
|
||||||
cons_show("urlopen not supported in this window");
|
cons_show("urlopen not supported in this window");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1783,6 +1783,7 @@ _get_group(preference_t pref)
|
|||||||
case PREF_LOG_ROTATE:
|
case PREF_LOG_ROTATE:
|
||||||
case PREF_LOG_SHARED:
|
case PREF_LOG_SHARED:
|
||||||
case PREF_AVATAR_CMD:
|
case PREF_AVATAR_CMD:
|
||||||
|
case PREF_URL_OPEN_CMD:
|
||||||
return PREF_GROUP_LOGGING;
|
return PREF_GROUP_LOGGING;
|
||||||
case PREF_AUTOAWAY_CHECK:
|
case PREF_AUTOAWAY_CHECK:
|
||||||
case PREF_AUTOAWAY_MODE:
|
case PREF_AUTOAWAY_MODE:
|
||||||
@@ -2070,6 +2071,8 @@ _get_key(preference_t pref)
|
|||||||
return "slashguard";
|
return "slashguard";
|
||||||
case PREF_MAM:
|
case PREF_MAM:
|
||||||
return "mam";
|
return "mam";
|
||||||
|
case PREF_URL_OPEN_CMD:
|
||||||
|
return "urlopen.cmd";
|
||||||
default:
|
default:
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
@@ -2205,6 +2208,7 @@ _get_default_string(preference_t pref)
|
|||||||
case PREF_COLOR_NICK:
|
case PREF_COLOR_NICK:
|
||||||
return "false";
|
return "false";
|
||||||
case PREF_AVATAR_CMD:
|
case PREF_AVATAR_CMD:
|
||||||
|
case PREF_URL_OPEN_CMD:
|
||||||
return "xdg-open";
|
return "xdg-open";
|
||||||
default:
|
default:
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|||||||
@@ -170,6 +170,7 @@ typedef enum {
|
|||||||
PREF_AVATAR_CMD,
|
PREF_AVATAR_CMD,
|
||||||
PREF_SLASH_GUARD,
|
PREF_SLASH_GUARD,
|
||||||
PREF_MAM,
|
PREF_MAM,
|
||||||
|
PREF_URL_OPEN_CMD,
|
||||||
} preference_t;
|
} preference_t;
|
||||||
|
|
||||||
typedef struct prof_alias_t {
|
typedef struct prof_alias_t {
|
||||||
|
|||||||
Reference in New Issue
Block a user