Panama absorbed Users, Sharing, Printers and Online Accounts one page at a time. Each time, the row pointing at GNOME's equivalent stayed exactly where it was -- so an app whose stated purpose is to make GNOME Settings unnecessary shipped four doors back to it, two of them inside a card headed "these areas remain owned by Fedora and GNOME's mature system panels". Nothing failed. Every row worked as written. They were simply no longer true, and no test could notice, because none of them knew what Panama had come to own in the meantime. gnome-handoff-contract reads the sidebar for the pages that exist and the pages for the panels they hand off, and fails on any overlap -- derived from both sides rather than a hand-kept list, so absorbing the next page cannot leave a stale door behind. Adding an online account is allow-listed with its reason: it genuinely requires GOA's own dialog. health-ui-contract asserted those handoffs were present, which is how they survived. The assertion is inverted rather than deleted, so reintroducing one fails loudly. The Home Assistant "Light entities" box is gone. It was a multi-line list of comma-separated Zigbee entity IDs, and the light catalog does not come from it -- the helper discovers that live. It is a one-time migration seed for the Control Center selection, so saving now passes the stored value back untouched: setting a URL or a token cannot disturb it. Deleting the control naively would have written an empty list over it. Sharing showed two "Port" rows for RDP, same label and value, one read-only and one editable, separated by a switch. The read-only leftover is gone. The SSH port stays read-only because sshd's port is not ours to write. About reported "488G free of 1.9T" where Storage said "523 GB free of 2.0 TB" -- the same drive, binary against decimal. About uses decimal now, matching how drives are sold. Memory and swap stay in GiB, which is how RAM is sold. Claude-Session: https://claude.ai/code/session_01BRvzt4H8XXLPVH5MyYdk9L
178 lines
6.4 KiB
QML
178 lines
6.4 KiB
QML
// What this machine offers to other machines on the network.
|
|
//
|
|
// Every row states what is true right now, including "the software for this is
|
|
// not installed" -- which is the honest answer for file sharing here, and is
|
|
// what the panel this replaces hides behind a switch that silently does
|
|
// nothing.
|
|
//
|
|
// Turning remote login on changes the whole system and prompts. Remote desktop
|
|
// is a user service and does not.
|
|
|
|
import Quickshell
|
|
import QtQuick
|
|
import qs.config
|
|
import qs.services
|
|
|
|
SettingsPage {
|
|
id: root
|
|
|
|
objectName: "sharing"
|
|
title: "Sharing"
|
|
lede: "What this machine offers to other machines on the network."
|
|
|
|
Component.onCompleted: Sharing.refresh()
|
|
|
|
TextRow {
|
|
visible: Sharing.lastError !== ""
|
|
label: "Sharing needs attention"
|
|
detail: Sharing.lastError
|
|
value: ""
|
|
divider: false
|
|
}
|
|
|
|
SettingsCard {
|
|
title: "This machine"
|
|
subtitle: "The name other machines see."
|
|
|
|
TextFieldRow {
|
|
label: "Network name"
|
|
detail: "Used for ssh and for anything else that finds this machine by name"
|
|
text: Sharing.hostname
|
|
placeholder: "desktop"
|
|
enabled: !Sharing.busy
|
|
divider: false
|
|
onAccepted: value => Sharing.setHostname(value)
|
|
}
|
|
}
|
|
|
|
SettingsCard {
|
|
title: "Remote login"
|
|
subtitle: "Sign in to a terminal on this machine over SSH."
|
|
|
|
SwitchRow {
|
|
label: "Allow remote login"
|
|
detail: Sharing.remoteLogin?.installed === true
|
|
? (Sharing.remoteLoginOn
|
|
? "Running, and starts automatically at boot"
|
|
: "Not running")
|
|
: "OpenSSH server is not installed"
|
|
checked: Sharing.remoteLoginOn
|
|
enabled: !Sharing.busy && Sharing.remoteLogin?.installed === true
|
|
onToggled: value => Sharing.setRemoteLogin(value)
|
|
}
|
|
|
|
TextRow {
|
|
visible: Sharing.remoteLoginOn
|
|
label: "Connect with"
|
|
detail: "From another machine on your network"
|
|
value: "ssh " + Sharing.networkName
|
|
}
|
|
|
|
TextRow {
|
|
visible: Sharing.remoteLoginOn
|
|
label: "Port"
|
|
detail: "Where the SSH server is listening"
|
|
value: String(Sharing.remoteLogin?.port ?? "22")
|
|
}
|
|
|
|
// Reported from the configuration rather than assumed. Saying "keys
|
|
// only" on a machine that actually accepts passwords would be a
|
|
// security claim this page cannot back up.
|
|
TextRow {
|
|
visible: Sharing.remoteLoginOn
|
|
label: "Password sign-in"
|
|
detail: Sharing.passwordLoginSummary()
|
|
value: ""
|
|
divider: false
|
|
}
|
|
}
|
|
|
|
SettingsCard {
|
|
title: "Remote desktop"
|
|
subtitle: "See and control this desktop from another machine."
|
|
|
|
SwitchRow {
|
|
label: "Allow remote desktop"
|
|
detail: Sharing.remoteDesktop?.available === true
|
|
? (Sharing.remoteDesktopOn
|
|
? "Running for your session"
|
|
: (Sharing.remoteDesktop?.hasCredentials === true
|
|
? "Not running"
|
|
: "Set a username and password before turning this on"))
|
|
: "Remote desktop support is not installed"
|
|
checked: Sharing.remoteDesktopOn
|
|
enabled: !Sharing.busy
|
|
&& Sharing.remoteDesktop?.available === true
|
|
&& Sharing.remoteDesktop?.hasCredentials === true
|
|
onToggled: value => Sharing.setRemoteDesktop(value)
|
|
}
|
|
|
|
TextFieldRow {
|
|
visible: Sharing.remoteDesktop?.available === true
|
|
label: "Port"
|
|
detail: "The RDP port other machines connect to"
|
|
text: String(Sharing.remoteDesktop?.port ?? "")
|
|
placeholder: "3389"
|
|
enabled: !Sharing.busy
|
|
onAccepted: value => Sharing.setRdpPort(value)
|
|
}
|
|
|
|
SwitchRow {
|
|
visible: Sharing.remoteDesktop?.available === true
|
|
label: "View only"
|
|
detail: "Let someone watch this desktop without controlling the pointer or keyboard"
|
|
checked: Sharing.remoteDesktop?.viewOnly === true
|
|
enabled: !Sharing.busy
|
|
onToggled: value => Sharing.setRdpViewOnly(value)
|
|
}
|
|
|
|
// The password is typed into gnome-remote-desktop's own tool in a
|
|
// terminal, never into this page. grdctl prompts for it on a terminal
|
|
// and crashes without one, and passing it as an argument would publish
|
|
// it through /proc to every process on this machine.
|
|
ActionRow {
|
|
visible: Sharing.remoteDesktop?.available === true
|
|
label: "Credentials"
|
|
detail: Sharing.remoteDesktop?.hasCredentials === true
|
|
? "Stored in the login keyring · setting new ones opens a terminal to type into"
|
|
: "None stored yet · remote desktop cannot be turned on without them"
|
|
action: "Set…"
|
|
enabled: !Sharing.busy
|
|
onTriggered: Sharing.setRdpCredentials(Quickshell.env("USER") || "")
|
|
}
|
|
|
|
ActionRow {
|
|
visible: Sharing.remoteDesktop?.available === true
|
|
&& Sharing.remoteDesktop?.hasCredentials === true
|
|
label: "Forget the stored credentials"
|
|
detail: "Remote desktop cannot be turned on again until new ones are set"
|
|
action: "Clear"
|
|
enabled: !Sharing.busy
|
|
divider: false
|
|
onTriggered: Sharing.clearRdpCredentials()
|
|
}
|
|
}
|
|
|
|
SettingsCard {
|
|
title: "File and media sharing"
|
|
subtitle: "Sharing folders and media needs software this machine does not necessarily have."
|
|
|
|
TextRow {
|
|
label: "Share folders on the network"
|
|
detail: Sharing.fileSharing?.installed === true
|
|
? "Samba is installed"
|
|
: "Needs Samba, which is not installed. Settings does not install software."
|
|
value: Sharing.fileSharing?.installed === true ? "Available" : "Not installed"
|
|
}
|
|
|
|
TextRow {
|
|
label: "Share music and video to devices"
|
|
detail: Sharing.mediaSharing?.installed === true
|
|
? "Rygel is installed"
|
|
: "Needs Rygel, which is not installed."
|
|
value: Sharing.mediaSharing?.installed === true ? "Available" : "Not installed"
|
|
divider: false
|
|
}
|
|
}
|
|
}
|