Skip to content

One keyboard and mouse for a Mac and a Windows PC over the local network, in either direction.

Beamer 1.5.16

Toby Kalkmanba0ab8bd719d
diff --git a/VERSION b/VERSION
index f6ed435..0ed0610 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-1.5.15
+1.5.16
diff --git a/flatpak/uk.co.kalkman.beamer.metainfo.xml b/flatpak/uk.co.kalkman.beamer.metainfo.xml
index fddfb6a..f79ba3c 100644
--- a/flatpak/uk.co.kalkman.beamer.metainfo.xml
+++ b/flatpak/uk.co.kalkman.beamer.metainfo.xml
@@ -43,6 +43,9 @@
</screenshots>
<content_rating type="oars-1.1"/>
<releases>
+ <release version="1.5.16" date="2026-10-27">
+ <description><p>On Windows, installing or updating no longer ends with "administrator maintenance did not complete" on a normal permission prompt, so start-at-sign-in and the input recovery task are set up again. With Control administrator windows on, the start-at-sign-in note now says Beamer starts as administrator.</p></description>
+ </release>
<release version="1.5.15" date="2026-10-27">
<description><p>On Windows, a new setting, Control administrator windows, lets Beamer move the pointer and type in apps that run as administrator. It is off by default, asks for permission once, and applies only to that PC. When Windows blocks Beamer's input, the notice now names the app in front and appears once for each window, not on every switch, and the firewall check says when it needs administrator permission.</p></description>
</release>
diff --git a/locales/beamer.pot b/locales/beamer.pot
index f9d6018..1b95bcb 100644
--- a/locales/beamer.pot
+++ b/locales/beamer.pot
@@ -4732,10 +4732,6 @@ msgstr ""
msgid "Update through your software store, or download the Flatpak from the release page and open it."
msgstr ""
-#: win_app/kvm_bridge_win.py
-msgid "Starts in the tray when you sign in, without an administrator prompt."
-msgstr ""
-
#: win_app/kvm_bridge_win.py
msgid "Seam crossings need X11 on Linux."
msgstr ""
@@ -4817,7 +4813,11 @@ msgid "No portable download is available for this release. See What's new."
msgstr ""
#: win_app/kvm_bridge_win.py
-msgid "When enabled, Beamer starts in the tray with your normal permissions."
+msgid "Starts in the tray when you sign in, as administrator."
+msgstr ""
+
+#: win_app/kvm_bridge_win.py
+msgid "Starts in the tray when you sign in, without an administrator prompt."
msgstr ""
#: win_app/kvm_bridge_win.py
@@ -4868,6 +4868,14 @@ msgstr ""
msgid "Could not save this PC's name: {error}"
msgstr ""
+#: win_app/kvm_bridge_win.py
+msgid "When enabled, Beamer starts in the tray as administrator."
+msgstr ""
+
+#: win_app/kvm_bridge_win.py
+msgid "When enabled, Beamer starts in the tray with your normal permissions."
+msgstr ""
+
#: win_app/kvm_bridge_win.py
#, python-brace-format
msgid "Windows refused: {error}"
diff --git a/locales/it.po b/locales/it.po
index b764b06..f76793b 100644
--- a/locales/it.po
+++ b/locales/it.po
@@ -4808,10 +4808,6 @@ msgstr "Questo desktop non ha un'area di notifica, quindi la finestra di Beamer
msgid "Update through your software store, or download the Flatpak from the release page and open it."
msgstr "Aggiorna tramite il tuo negozio di software oppure scarica il file Flatpak dalla pagina della versione e aprilo."
-#: win_app/kvm_bridge_win.py
-msgid "Starts in the tray when you sign in, without an administrator prompt."
-msgstr "All'accesso si avvia nell'area di notifica, senza richiesta di privilegi di amministratore."
-
#: win_app/kvm_bridge_win.py
msgid "Seam crossings need X11 on Linux."
msgstr "Il passaggio tra le giunture richiede X11 su Linux."
@@ -4897,8 +4893,12 @@ msgid "No portable download is available for this release. See What's new."
msgstr "Per questa versione non è disponibile un download portatile. Consulta Novità."
#: win_app/kvm_bridge_win.py
-msgid "When enabled, Beamer starts in the tray with your normal permissions."
-msgstr "Se attivo, Beamer si avvia nell'area di notifica con i tuoi normali privilegi."
+msgid "Starts in the tray when you sign in, as administrator."
+msgstr "All'accesso si avvia nell'area di notifica, come amministratore."
+
+#: win_app/kvm_bridge_win.py
+msgid "Starts in the tray when you sign in, without an administrator prompt."
+msgstr "All'accesso si avvia nell'area di notifica, senza richiesta di privilegi di amministratore."
#: win_app/kvm_bridge_win.py
msgid "Only the installed app can start at sign-in."
@@ -4950,6 +4950,14 @@ msgstr "Beamer — {status}: {detail}"
msgid "Could not save this PC's name: {error}"
msgstr "Impossibile salvare il nome di questo PC: {error}"
+#: win_app/kvm_bridge_win.py
+msgid "When enabled, Beamer starts in the tray as administrator."
+msgstr "Se attivato, Beamer si avvia nell'area di notifica come amministratore."
+
+#: win_app/kvm_bridge_win.py
+msgid "When enabled, Beamer starts in the tray with your normal permissions."
+msgstr "Se attivo, Beamer si avvia nell'area di notifica con i tuoi normali privilegi."
+
#: win_app/kvm_bridge_win.py
#, python-brace-format
msgid "Windows refused: {error}"
diff --git a/win_app/Install-Maintenance.ps1 b/win_app/Install-Maintenance.ps1
index b60d633..58868ae 100644
--- a/win_app/Install-Maintenance.ps1
+++ b/win_app/Install-Maintenance.ps1
@@ -126,7 +126,9 @@ function Update-BeamerGameInputRecovery([switch]$Remove) {
$action.Arguments = '-NoLogo -NoProfile -NonInteractive -Command "Restart-Service -Name ''GameInputSvc'' -ErrorAction Stop"'
$action.WorkingDirectory = Join-Path $windows 'System32'
# Set the protected ACL at registration: no interval with an elevated, user-writable task.
- $sddl = 'O:SYG:SYD:P(A;;GA;;;SY)(A;;GA;;;BA)(A;;GRGX;;;IU)'
+ # Owner is Administrators, not SYSTEM: a UAC-elevated token cannot assign SYSTEM as owner
+ # (0xD000005A, STATUS_INVALID_OWNER). An SSH admin token can, so SSH tests never caught it.
+ $sddl = 'O:BAG:SYD:P(A;;GA;;;SY)(A;;GA;;;BA)(A;;GRGX;;;IU)'
$folder.RegisterTaskDefinition($taskName, $definition, (0x6 -bor 0x10), 'S-1-5-18', $null, 5, $sddl) | Out-Null
}
diff --git a/win_app/kvm_bridge_win.py b/win_app/kvm_bridge_win.py
index 4b14af3..90b4921 100644
--- a/win_app/kvm_bridge_win.py
+++ b/win_app/kvm_bridge_win.py
@@ -2208,6 +2208,11 @@ class WindowsApplication(QWidget):
LOGGER.exception("Could not identify the signed-in account")
can_start = False
account_known = False
+ import admin_mode
+ try:
+ admin_on = admin_mode.enabled()
+ except OSError:
+ admin_on = False
enabled = False
try:
enabled = exe is not None and autostart_win.is_enabled()
@@ -2222,9 +2227,11 @@ class WindowsApplication(QWidget):
elif exe and not can_start:
hint = tr("Start at sign-in needs Beamer to run as the signed-in account.")
elif enabled:
- hint = tr("Starts in the tray when you sign in, without an administrator prompt.")
+ hint = (tr("Starts in the tray when you sign in, as administrator.") if admin_on
+ else tr("Starts in the tray when you sign in, without an administrator prompt."))
elif exe:
- hint = tr("When enabled, Beamer starts in the tray with your normal permissions.")
+ hint = (tr("When enabled, Beamer starts in the tray as administrator.") if admin_on
+ else tr("When enabled, Beamer starts in the tray with your normal permissions."))
else:
hint = tr("Only the installed app can start at sign-in.")
self.logon_hint = widgets.label(hint, "note", wrap=True)
diff --git a/win_app/tests/test_admin_mode_ui.py b/win_app/tests/test_admin_mode_ui.py
index 0117646..cafa44f 100644
--- a/win_app/tests/test_admin_mode_ui.py
+++ b/win_app/tests/test_admin_mode_ui.py
@@ -118,3 +118,27 @@ class ElevatedDiagnosticTests(unittest.TestCase):
if __name__ == "__main__":
unittest.main()
+
+
+class SignInHintTests(unittest.TestCase):
+ @classmethod
+ def setUpClass(cls):
+ cls.app = QApplication.instance() or QApplication([])
+
+ def hint(self, *, admin_on, enabled):
+ import admin_mode
+ import autostart_win
+ page = SimpleNamespace(_set_start_at_logon=Mock())
+ with patch.object(admin_mode, "enabled", return_value=admin_on), \
+ patch.object(autostart_win, "installed_exe", return_value=r"C:\Synthetic\Beamer.exe"), \
+ patch.object(autostart_win, "can_run_for_current_user", return_value=True), \
+ patch.object(autostart_win, "is_enabled", return_value=enabled):
+ module = kvm.WindowsApplication._sign_in_module(page)
+ return page.logon_hint.text()
+
+ def test_hint_says_administrator_only_when_the_task_runs_elevated(self):
+ for enabled in (True, False):
+ with self.subTest(enabled=enabled):
+ self.assertIn("as administrator", self.hint(admin_on=True, enabled=enabled))
+ self.assertNotIn("without an administrator prompt", self.hint(admin_on=True, enabled=enabled))
+ self.assertNotIn("as administrator", self.hint(admin_on=False, enabled=enabled))
diff --git a/win_app/tests/test_installer_maintenance.py b/win_app/tests/test_installer_maintenance.py
index ed107a7..b5f9204 100644
--- a/win_app/tests/test_installer_maintenance.py
+++ b/win_app/tests/test_installer_maintenance.py
@@ -179,7 +179,7 @@ if ($script:action.Path -cne (Join-Path $windows 'System32\WindowsPowerShell\v1.
if ($script:action.Arguments -cne '-NoLogo -NoProfile -NonInteractive -Command "Restart-Service -Name ''GameInputSvc'' -ErrorAction Stop"') { throw 'Recovery action accepts something other than the constant service restart' }
if ($script:action.WorkingDirectory -cne (Join-Path $windows 'System32')) { throw 'Recovery uses a user-writable working directory' }
$sd = [Security.AccessControl.RawSecurityDescriptor]::new($registration.Sddl)
-if ($sd.Owner.Value -ne 'S-1-5-18' -or $sd.Group.Value -ne 'S-1-5-18') { throw 'Interactive user can own or change the task' }
+if ($sd.Owner.Value -ne 'S-1-5-32-544' -or $sd.Group.Value -ne 'S-1-5-18') { throw 'Interactive user can own or change the task' }
if (-not ($sd.ControlFlags -band [Security.AccessControl.ControlFlags]::DiscretionaryAclProtected)) { throw 'Task permissions can inherit write access' }
if ($sd.DiscretionaryAcl.Count -ne 3) { throw 'Unexpected task permission grants' }
$expected = @{ 'S-1-5-18'=268435456; 'S-1-5-32-544'=268435456; 'S-1-5-4'=-1610612736 }