Add Privacy Center (Tor, GS-Warp, OpenVPN, GSocket, WireGuard), tunneled DNS, and stage a1105 (vendetta) changelog
This commit is contained in:
1 parent
471916424e
commit
2030201539
110 files changed
+5562
-37
No files matched your search
@@ -175,6 +175,7 @@ static const char *ICON_GAM = "\xf3\xb0\x8a\xb4";
|
||||
static const char *ICON_EML = "\xf3\xb0\x87\xae";
|
||||
static const char *ICON_GLB = "\xef\x82\xac";
|
||||
static const char *ICON_MAP = "\xf3\xb0\x8d\x8d";
|
||||
static const char *ICON_SHD = "\xef\x84\xb2";
|
||||
|
||||
static void drawmenu(void);
|
||||
static void show_menu(void);
|
||||
@@ -857,6 +858,16 @@ trigger_plugin_open(const char *plugin_spec)
|
||||
snprintf(plugin_name, sizeof(plugin_name), "%s", plugin_spec);
|
||||
}
|
||||
|
||||
if (access("/tmp/bananarchy_duress_mode", F_OK) == 0 &&
|
||||
(strcmp(plugin_name, "passcode") == 0 ||
|
||||
strcmp(plugin_name, "tox") == 0 ||
|
||||
strcmp(plugin_name, "irc") == 0 ||
|
||||
strcmp(plugin_name, "sip") == 0 ||
|
||||
strcmp(plugin_name, "engmenu") == 0 ||
|
||||
strcmp(plugin_name, "privacy") == 0)) {
|
||||
return;
|
||||
}
|
||||
|
||||
char fifo_path[128];
|
||||
snprintf(fifo_path, sizeof(fifo_path), "/tmp/dwm_plugin_%s.fifo", plugin_name);
|
||||
int fd = open(fifo_path, O_WRONLY | O_NONBLOCK | O_CLOEXEC);
|
||||
@@ -2519,6 +2530,11 @@ open_builtin_menu(const char *menu_name, int keep_idx)
|
||||
snprintf(label, sizeof(label), "%s Networks", ICON_NET);
|
||||
add_menu_item(label, "@plugin:networks", 0);
|
||||
|
||||
if (!duress) {
|
||||
snprintf(label, sizeof(label), "%s Privacy Center", ICON_SHD);
|
||||
add_menu_item(label, "@plugin:privacy", 0);
|
||||
}
|
||||
|
||||
snprintf(label, sizeof(label), "%s Audio", ICON_MUS);
|
||||
add_menu_item(label, "@menu:audio", 1);
|
||||
|
||||
@@ -2561,6 +2577,8 @@ open_builtin_menu(const char *menu_name, int keep_idx)
|
||||
add_menu_item(label, "@plugin:irc", 0);
|
||||
snprintf(label, sizeof(label), "%s Tox Messenger", ICON_MSG);
|
||||
add_menu_item(label, "@plugin:tox", 0);
|
||||
snprintf(label, sizeof(label), "%s Privacy Center", ICON_SHD);
|
||||
add_menu_item(label, "@plugin:privacy", 0);
|
||||
}
|
||||
snprintf(label, sizeof(label), "%s Webarchy Browser", ICON_GLB);
|
||||
add_menu_item(label, "@plugin:webarchy", 0);
|
||||
@@ -2786,6 +2804,8 @@ open_builtin_menu(const char *menu_name, int keep_idx)
|
||||
if (!duress) {
|
||||
snprintf(label, sizeof(label), "%s Passcode", ICON_PLK);
|
||||
add_menu_item(label, "@plugin:passcode", 0);
|
||||
snprintf(label, sizeof(label), "%s Privacy Center", ICON_SHD);
|
||||
add_menu_item(label, "@plugin:privacy", 0);
|
||||
}
|
||||
|
||||
snprintf(label, sizeof(label), "%s Themes", ICON_THM);
|
||||
@@ -2996,6 +3016,7 @@ any_other_plugin_active(void)
|
||||
"xgps.pid",
|
||||
"xpasscode.pid",
|
||||
"xengmenu.pid",
|
||||
"xprivacy.pid",
|
||||
};
|
||||
const char *rdir = getenv("XDG_RUNTIME_DIR");
|
||||
const char *base = (rdir && rdir[0]) ? rdir : "/run/user/10000";
|
||||
@@ -3049,6 +3070,7 @@ close_other_active_plugins(void)
|
||||
{ "xgps.pid", "/tmp/dwm_plugin_gps.fifo" },
|
||||
{ "xpasscode.pid", "/tmp/dwm_plugin_passcode.fifo" },
|
||||
{ "xengmenu.pid", "/tmp/dwm_plugin_engmenu.fifo" },
|
||||
{ "xprivacy.pid", "/tmp/dwm_plugin_privacy.fifo" },
|
||||
};
|
||||
const char *rdir = getenv("XDG_RUNTIME_DIR");
|
||||
const char *base = (rdir && rdir[0]) ? rdir : "/run/user/10000";
|
||||
|
||||
Reference in new issue
Block a user