Add NeoNet Yabasic networking FFI library, fix fcitx5 service and WM context menus, install yabasic-doc and mandoc

This commit is contained in:
Luxferre committed 2026-10-27 07:39:07 +02:00
1 parent fb3723fab4
commit 726500085a
33 files changed
+2617 -69

No files matched your search

+34
View File
@@ -2029,6 +2029,11 @@ run(void)
while (XPending(xw.dpy)) {
xev = 1;
XNextEvent(xw.dpy, &ev);
if (ev.type == ClientMessage &&
(Atom)ev.xclient.data.l[0] == xw.wmdeletewin) {
cmessage(&ev);
continue;
}
if (XFilterEvent(&ev, None))
continue;
if (handler[ev.type])
@@ -2254,6 +2259,35 @@ run:
if (!opt_title)
opt_title = (opt_line || !opt_cmd) ? "st" : opt_cmd[0];
if (!getenv("DISPLAY"))
setenv("DISPLAY", ":0", 0);
if (!getenv("XDG_RUNTIME_DIR"))
setenv("XDG_RUNTIME_DIR", "/run/user/10000", 0);
if (!getenv("SXMO_WM"))
setenv("SXMO_WM", "dwm", 0);
setenv("LANG", "C.UTF-8", 1);
setenv("LC_ALL", "C.UTF-8", 1);
setenv("XMODIFIERS", "@im=fcitx", 1);
setenv("GTK_IM_MODULE", "fcitx", 1);
setenv("QT_IM_MODULE", "fcitx", 1);
if (!getenv("DBUS_SESSION_BUS_ADDRESS")) {
const char *rdir = getenv("XDG_RUNTIME_DIR");
char bpath[256], bbuf[256];
snprintf(bpath, sizeof(bpath), "%s/dbus.bus",
(rdir && rdir[0]) ? rdir : "/run/user/10000");
FILE *bf = fopen(bpath, "r");
if (bf) {
if (fgets(bbuf, sizeof(bbuf), bf)) {
char *nl = strpbrk(bbuf, "\r\n");
if (nl)
*nl = '\0';
if (bbuf[0])
setenv("DBUS_SESSION_BUS_ADDRESS", bbuf, 1);
}
fclose(bf);
}
}
setlocale(LC_CTYPE, "");
XSetLocaleModifiers("");