McdeSys gets the services that let others in (mcde_sys_service_state, mcde_sys_service_set) and one list of shared folders for SMB, NFS and AFP (mcde_sys_shares, mcde_sys_shares_set: /etc/mcde-shares, and a block between "# MCDE shares begin" and "... end" in exports, smb.conf and afp.conf; the rest of each file stays as written). NetBSD switches rc.conf and runs the rc.d scripts -- sshd; rpcbind, mountd, nfsd and nfslocking for NFS; samba, netatalk, atalkd and papd from pkgsrc, whose example rc.d scripts are copied to /etc/rc.d first, as PKG_RCD_SCRIPTS=YES would. Linux uses systemctl (ssh, smbd and nmbd, nfs-server, netatalk; no AppleTalk). NetBSD's kernel has AppleTalk (GENERIC: options NETATALK) and pkgsrc's netatalk4 builds atalkd on NetBSD. docs/reference/sharing.txt. The Sharing pane (Internet & Network) shows each service with its switch and how others reach it (ssh host, smb://host/, host:/folder, afp://host/), and the shared folders with Add and Remove; as a user it offers Unlock..., as Accounts does. Measured: on the Linux host, read only: ssh, smb, nfs installed, enabled, running; afp and appletalk not installed (the pane on Xvfb says so). In the build VM as root: NFS on started rpcbind, mountd, nfsd, statd, lockd; sharing /tmp/mcdeshare made showmount -e list it for Everyone; NFS off stopped them; the VM's rc.conf was restored after. First found there: mountd will not start without /etc/exports, and statd/lockd are one script, nfslocking. Samba and netatalk are not in the makronix set yet. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
66 lines
2.1 KiB
C
66 lines
2.1 KiB
C
/*
|
|
* panes.c -- dtsystemsettings: the panes and their categories (panes.h)
|
|
*
|
|
* Copyright (c) 2026 The Makronix project. GNU LGPL 2.0 or later, as CDE.
|
|
*
|
|
* One place for the computer's settings, in four rows. A pane is drawn
|
|
* here (sound, network, Bluetooth, date and time, about) when the setting
|
|
* goes through McdeSys; the panes that are CDE's own style manager open it
|
|
* until they are drawn here too.
|
|
*/
|
|
|
|
#include <string.h>
|
|
|
|
#include "panes.h"
|
|
|
|
const char *const categoryNames[CAT_COUNT] = {
|
|
"Personal",
|
|
"Hardware",
|
|
"Internet & Network",
|
|
"System"
|
|
};
|
|
|
|
const Pane panes[] = {
|
|
{ "appearance", "Appearance", CAT_PERSONAL, "DtColor.pm", PANE_OWN,
|
|
NULL },
|
|
{ "desktop", "Desktop", CAT_PERSONAL, "DtBkdrp.pm", PANE_OWN, NULL },
|
|
{ "fonts", "Fonts", CAT_PERSONAL, "DtFont.pm", PANE_OWN, NULL },
|
|
{ "language", "Language", CAT_PERSONAL, "DtI18N.pm", PANE_COMMAND,
|
|
"dtstyle" },
|
|
{ "screensaver", "Screen Saver", CAT_PERSONAL, "DtScrn.pm",
|
|
PANE_OWN, NULL },
|
|
|
|
{ "sound", "Sound", CAT_HARDWARE, "Dtaudio.m.pm", PANE_OWN, NULL },
|
|
{ "keyboard", "Keyboard", CAT_HARDWARE, "DtKeybd.pm", PANE_OWN, NULL },
|
|
{ "mouse", "Mouse", CAT_HARDWARE, "DtMouse.pm", PANE_OWN, NULL },
|
|
{ "printers", "Printers", CAT_HARDWARE, "Dtprint.m.pm", PANE_COMMAND,
|
|
"dtprintinfo -all" },
|
|
|
|
{ "network", "Network", CAT_NETWORK, "McdeWired.m.pm", PANE_OWN, NULL },
|
|
{ "bluetooth", "Bluetooth", CAT_NETWORK, "McdeBluetooth.m.pm",
|
|
PANE_OWN, NULL },
|
|
{ "sharing", "Sharing", CAT_NETWORK, "Dtlink.m.pm", PANE_OWN, NULL },
|
|
|
|
{ "datetime", "Date & Time", CAT_SYSTEM, "Dtdate.m.pm", PANE_OWN, NULL },
|
|
{ "startup", "Startup", CAT_SYSTEM, "DtStart.pm", PANE_OWN, NULL },
|
|
{ "accounts", "Accounts", CAT_SYSTEM, "DtStart.pm", PANE_OWN, NULL },
|
|
{ "update", "Software Update", CAT_SYSTEM, "Dtstyle.m.pm", PANE_OWN,
|
|
NULL },
|
|
{ "about", "About", CAT_SYSTEM, "MakronixDtlogo.m.pm", PANE_OWN, NULL },
|
|
};
|
|
|
|
const int paneCount = (int) (sizeof panes / sizeof panes[0]);
|
|
|
|
const Pane *
|
|
PaneFind(const char *id)
|
|
{
|
|
int i;
|
|
|
|
if (id == NULL)
|
|
return NULL;
|
|
for (i = 0; i < paneCount; i++)
|
|
if (strcmp(panes[i].id, id) == 0)
|
|
return &panes[i];
|
|
return NULL;
|
|
}
|