mirror of
https://github.com/profanity-im/profanity.git
synced 2024-11-03 19:37:16 -05:00
Display default value for /url associated commands
The display of commands associated with specific file types and protocols will need to be implemented later, but this requires to use private data of the GKeyFile structure, which can be a maintainability issue on the long term. Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
parent
bcea9c863b
commit
f9961677aa
@ -2067,12 +2067,16 @@ void
|
||||
cons_executable_setting(void)
|
||||
{
|
||||
char *avatar = prefs_get_string(PREF_AVATAR_CMD);
|
||||
cons_show("Avatar command (/executable avatar) : %s", avatar);
|
||||
prefs_free_string(avatar);
|
||||
cons_show("'/avatar' command (/executable avatar) : %s", avatar);
|
||||
g_free(avatar);
|
||||
|
||||
char *exec = prefs_get_string(PREF_URL_OPEN_CMD);
|
||||
cons_show("urlopen command (/executable urlopen) : %s", exec);
|
||||
prefs_free_string(exec);
|
||||
char **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
|
||||
|
Loading…
Reference in New Issue
Block a user