feat(identity): rename user-visible identity to voculinux with one-time legacy import
The fork takes its own name everywhere a user can see it: binaries (voculinux, voculinux-gui), desktop entry, autostart, tray, D-Bus namespace (com.voculinux.Voculinux, no alias for the old name), config/data/cache dirs, single-instance lock, IBus engine identity, tray icons, resource prefixes, VOCULINUX_* environment names, and the update-checker user agent. The internal Python module stays vocalinux and the distribution metadata keeps the upstream URLs as provenance. On first run a previous Vocalinux install's config.json, custom dictionary, and portal restore token are copied once into the new locations (new config always wins, no merge, no write-back); models re-resolve through the pinned-checksum download path. An offline naming-sweep test proves no old-name strings remain on user-visible surfaces outside the allowlist. Refs #18
This commit is contained in:
@@ -790,7 +790,7 @@ class TestEvdevKeyboardBackendPermissionHint:
|
||||
result = backend.get_permission_hint()
|
||||
assert result is None
|
||||
|
||||
@patch.dict("os.environ", {"SNAP": "/snap/vocalinux/x1"}, clear=False)
|
||||
@patch.dict("os.environ", {"SNAP": "/snap/voculinux/x1"}, clear=False)
|
||||
@patch("vocalinux.ui.keyboard_backends.evdev_backend.EVDEV_AVAILABLE", True)
|
||||
@patch("vocalinux.ui.keyboard_backends.evdev_backend.find_keyboard_devices")
|
||||
def test_permission_hint_snap_no_devices(self, mock_find_devices):
|
||||
@@ -802,7 +802,7 @@ class TestEvdevKeyboardBackendPermissionHint:
|
||||
assert "raw-input" in result
|
||||
assert "hardware-observe" in result
|
||||
|
||||
@patch.dict("os.environ", {"SNAP": "/snap/vocalinux/x1"}, clear=False)
|
||||
@patch.dict("os.environ", {"SNAP": "/snap/voculinux/x1"}, clear=False)
|
||||
@patch("vocalinux.ui.keyboard_backends.evdev_backend.EVDEV_AVAILABLE", True)
|
||||
@patch("vocalinux.ui.keyboard_backends.evdev_backend.find_keyboard_devices")
|
||||
@patch("vocalinux.ui.keyboard_backends.evdev_backend.InputDevice")
|
||||
@@ -1804,7 +1804,7 @@ class TestEvdevGrabAndForwarding:
|
||||
device = MagicMock()
|
||||
device.fileno.return_value = 10
|
||||
device.info.bustype = 0x06 # BUS_VIRTUAL
|
||||
device.name = "AT Translated Set 2 keyboard (vocalinux)"
|
||||
device.name = "AT Translated Set 2 keyboard (voculinux)"
|
||||
mock_input_device.return_value = device
|
||||
|
||||
backend = EvdevKeyboardBackend()
|
||||
@@ -3192,7 +3192,7 @@ class TestWriteOnlyUInput:
|
||||
patch.object(eb._WriteOnlyUInput, "_find_device", return_value=device),
|
||||
patch.object(eb._uinput, "write") as write,
|
||||
):
|
||||
uinput = eb._WriteOnlyUInput(events={1: [30]}, name="kbd (vocalinux)", bustype=0x06)
|
||||
uinput = eb._WriteOnlyUInput(events={1: [30]}, name="kbd (voculinux)", bustype=0x06)
|
||||
yield uinput, mock_open, set_phys, enable, setup, create, write, device
|
||||
|
||||
def test_opens_wronly_and_runs_setup(self) -> None:
|
||||
@@ -3243,7 +3243,7 @@ class TestWriteOnlyUInput:
|
||||
),
|
||||
):
|
||||
with pytest.raises(TypeError):
|
||||
eb._WriteOnlyUInput(events=None, name="kbd (vocalinux)", bustype=0x06)
|
||||
eb._WriteOnlyUInput(events=None, name="kbd (voculinux)", bustype=0x06)
|
||||
|
||||
mock_close.assert_called_once_with(42)
|
||||
|
||||
@@ -3254,7 +3254,7 @@ class TestWriteOnlyUInput:
|
||||
|
||||
name = _clone_device_name(device)
|
||||
|
||||
assert name.endswith(" (vocalinux)")
|
||||
assert name.endswith(" (voculinux)")
|
||||
assert len(name.encode("utf-8")) <= 79
|
||||
|
||||
def test_clone_device_name_keeps_short_names(self) -> None:
|
||||
@@ -3262,7 +3262,7 @@ class TestWriteOnlyUInput:
|
||||
device = MagicMock()
|
||||
device.name = "AT Translated Set 2 keyboard"
|
||||
|
||||
assert _clone_device_name(device) == "AT Translated Set 2 keyboard (vocalinux)"
|
||||
assert _clone_device_name(device) == "AT Translated Set 2 keyboard (voculinux)"
|
||||
|
||||
|
||||
class TestSharedEvdevDeviceLayer:
|
||||
|
||||
Reference in New Issue
Block a user