Add Webarchy ultrawide browser, DNS UI, WLAN/st fixes, and media/CLI packages
- Port Webarchy GTK3/WebKit2GTK browser for 2160x1080 with flush-right vertical tab bar, DPI-scaled .Xresources SIGUSR1 theming, single-instance FIFO, and GPU crash CPU fallback (src/webarchy/webarchy.cpp, geminux-webarchy) - Cross-compile pure-C gdk-pixbuf 2.42.12 (geminux-gdk-pixbuf) and compile rootfs GSettings schemas so webkit2gtk-4.1 and gst-plugins-good install with zero Rust ELFs - Add zero-Rust geminux-mpv (mpv v0.40.0, FFmpeg n7.1.5, libplacebo, gst-libav 1.28.9) plus python3, py3-pip, mpg123, yt-dlp (quickjs), gnupg, gpg, pass, and pinentry-curses - Fix MT6797 WLAN peer deauth and CCMP EAPOL GTK rekey (patch 0007), set wifi.powersave = 2, pin active WLAN connections in geminux-net, and add the DNS tab with geminux-dnsctl - Restore st filled/hollow cursor focus across screenlock and libgemui grabs via dwm, libgemui, and st updates - Update README.md, MANUAL.md, ARCHITECTURE.md, POWER-OPTIMIZATION.md, check-rebuild.sh, and host Python tests
This commit is contained in:
1 parent
c12ed68d19
commit
e01806f3c8
82 files changed
+5499
-117
No files matched your search
@@ -35,6 +35,7 @@ C_TEST = r"""
|
||||
#include "geminux-bt-list.h"
|
||||
#include "geminux-audio-parse.h"
|
||||
#include "geminux-tz-valid.h"
|
||||
#include "geminux-dns-valid.h"
|
||||
#include "geminux-cam-bayer.h"
|
||||
#include "geminux-leds-core.h"
|
||||
|
||||
@@ -428,6 +429,75 @@ int main(void) {
|
||||
assert(geminux_uevent_is_power_supply(uev_ps, sizeof(uev_ps)));
|
||||
assert(!geminux_uevent_is_power_supply(uev_in, sizeof(uev_in)));
|
||||
assert(!geminux_uevent_is_power_supply(uev_pfx, sizeof(uev_pfx)));
|
||||
|
||||
/* Wi-Fi active connection preservation (iw link + merge into empty/partial scan) */
|
||||
char iw_bssid[24], iw_ssid[96];
|
||||
int iw_chan = 0, iw_sig = 0;
|
||||
const char *iw_sample =
|
||||
"Connected to 11:22:33:44:55:66 (on wlan0)\n"
|
||||
"\tSSID: OfficeNet\n"
|
||||
"\tfreq: 5220.0\n"
|
||||
"\tsignal: -42 dBm\n";
|
||||
assert(geminux_parse_iw_link(iw_sample, iw_bssid, sizeof(iw_bssid),
|
||||
iw_ssid, sizeof(iw_ssid), &iw_chan, &iw_sig));
|
||||
assert(strcmp(iw_bssid, "11:22:33:44:55:66") == 0);
|
||||
assert(strcmp(iw_ssid, "OfficeNet") == 0);
|
||||
assert(iw_chan == 44 && iw_sig == 100);
|
||||
assert(!geminux_parse_iw_link("Not connected.\n", iw_bssid, sizeof(iw_bssid),
|
||||
iw_ssid, sizeof(iw_ssid), &iw_chan, &iw_sig));
|
||||
|
||||
geminux_wifi_group_t active_only[4];
|
||||
int na = geminux_merge_active_wifi(active_only, 0, 4, "OfficeNet",
|
||||
"11:22:33:44:55:66", 44, 96, "WPA2");
|
||||
assert(na == 1 && active_only[0].in_use);
|
||||
assert(strcmp(active_only[0].ssid, "OfficeNet") == 0);
|
||||
assert(active_only[0].best_chan == 44 && active_only[0].best_signal == 96);
|
||||
|
||||
geminux_wifi_group_t partial[4];
|
||||
int np2 = geminux_parse_wifi_scan(" :aa\\:bb\\:cc\\:dd\\:ee\\:03:StrongOther:1:92:WPA2\n", partial, 4);
|
||||
np2 = geminux_merge_active_wifi(partial, np2, 4, "OfficeNet",
|
||||
"11:22:33:44:55:66", 44, 82, "WPA2");
|
||||
assert(np2 == 2);
|
||||
assert(strcmp(partial[0].ssid, "OfficeNet") == 0 && partial[0].in_use);
|
||||
assert(strcmp(partial[1].ssid, "StrongOther") == 0 && !partial[1].in_use);
|
||||
|
||||
/* Mark existing entry active when nmcli scan missed '*' flag */
|
||||
geminux_wifi_group_t unmarked[4];
|
||||
int nu = geminux_parse_wifi_scan(" :aa\\:bb\\:cc\\:dd\\:ee\\:03:StrongOther:1:92:WPA2\n"
|
||||
" :aa\\:bb\\:cc\\:dd\\:ee\\:04:OfficeNet:36:60:WPA2\n",
|
||||
unmarked, 4);
|
||||
nu = geminux_merge_active_wifi(unmarked, nu, 4, "OfficeNet", NULL, 0, 0, NULL);
|
||||
assert(nu == 2 && unmarked[0].in_use && strcmp(unmarked[0].ssid, "OfficeNet") == 0);
|
||||
assert(!unmarked[1].in_use);
|
||||
|
||||
/* DNS preset & custom nameserver parsing/validation */
|
||||
assert(geminux_dns_mode_valid("default"));
|
||||
assert(geminux_dns_mode_valid("cloudflare"));
|
||||
assert(geminux_dns_mode_valid("google"));
|
||||
assert(geminux_dns_mode_valid("radicaldns"));
|
||||
assert(geminux_dns_mode_valid("quad9"));
|
||||
assert(geminux_dns_mode_valid("custom"));
|
||||
assert(!geminux_dns_mode_valid("evil;rm"));
|
||||
assert(!geminux_dns_mode_valid(""));
|
||||
|
||||
char dv4[6][16], dv6[6][46], dnorm[192];
|
||||
int dn4 = 0, dn6 = 0;
|
||||
int dtot = geminux_parse_dns_servers(" 2a01:4f8:1c0c:82c0::1, 88.198.92.222 192.71.166.92, 88.198.92.222 ",
|
||||
dv4, &dn4, 6, dv6, &dn6, 6, dnorm, sizeof(dnorm));
|
||||
assert(dtot == 3 && dn4 == 2 && dn6 == 1);
|
||||
assert(strcmp(dnorm, "88.198.92.222,192.71.166.92,2a01:4f8:1c0c:82c0::1") == 0);
|
||||
assert(geminux_parse_dns_servers("", dv4, &dn4, 6, dv6, &dn6, 6, dnorm, sizeof(dnorm)) < 0);
|
||||
assert(geminux_parse_dns_servers("1.1.1.1;id", dv4, &dn4, 6, dv6, &dn6, 6, dnorm, sizeof(dnorm)) < 0);
|
||||
assert(geminux_parse_dns_servers("0.0.0.0", dv4, &dn4, 6, dv6, &dn6, 6, dnorm, sizeof(dnorm)) < 0);
|
||||
assert(geminux_parse_dns_servers("224.0.0.1", dv4, &dn4, 6, dv6, &dn6, 6, dnorm, sizeof(dnorm)) < 0);
|
||||
assert(geminux_parse_dns_servers("999.1.1.1", dv4, &dn4, 6, dv6, &dn6, 6, dnorm, sizeof(dnorm)) < 0);
|
||||
assert(geminux_parse_dns_servers("1.1.1.1,1.0.0.1,8.8.8.8,8.8.4.4,9.9.9.9,88.198.92.222,192.71.166.92",
|
||||
dv4, &dn4, 6, dv6, &dn6, 6, dnorm, sizeof(dnorm)) < 0);
|
||||
|
||||
char rsum[128];
|
||||
int rc_cnt = geminux_parse_resolv_conf("# Generated\nnameserver 88.198.92.222\nnameserver 192.71.166.92 # rad\n",
|
||||
rsum, sizeof(rsum));
|
||||
assert(rc_cnt == 2 && strcmp(rsum, "88.198.92.222, 192.71.166.92") == 0);
|
||||
return 0;
|
||||
}
|
||||
"""
|
||||
|
||||
Reference in new issue
Block a user