feat: add the desktop application roles #47
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/desktop-app-roles"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What changes
Adds the desktop application roles and wires them into
desktop_aleksei:roles/telegram: installs Telegram Desktop 7.4.4 from the official tdesktopGitHub release into
/opt/telegram. It does not create or rewrite any.desktopfile or icon; those stay owned by Telegram/Ubuntu.roles/feishin: installs Feishin 1.17.0 from the official GitHub release into/opt/feishinand setschrome-sandboxto mode4755, which Electron needsfor its sandbox. It does not create or rewrite any
.desktopfile or icon.roles/chrome: Google Chrome from the official stable.deb.roles/unsnap: repeats the gist athttps://gist.github.com/lassekongo83/808b19e034c05d10ac4e3cc259808e4e as
Ansible tasks, without a copied script: it removes all snaps and snapd,
unmounts the core snaps, purges snapd and removes the snap directories and
the user's
~/snap. It runs only whensnap/snapdis present.roles/karing: Karing 1.2.26.2934 from the official GitHub.deb. Therelease publishes an amd64 package only.
roles/steam: Valve's official Steam installer.deb, with the i386foreign architecture enabled first.
roles/gamescope:gamescopefrom the distribution.The application roles install only when the target is missing;
*_update: trueforces a reinstall from the pinned source.
Manual migrations
desktop_aleksei: done./opt/Telegramwas moved to/opt/telegramand/opt/Feishinto/opt/feishin. The current per-user Telegram launcher andD-Bus service were updated to the new path; the stale launcher/service that
pointed into
~/Downloadswere removed.feishin.desktopwas updated to/opt/feishin/feishin. The roles do not manage these files.dev_aleksei: still pending. Move/opt/Feishinto/opt/feishinand updateor remove
/usr/share/applications/feishin.desktopby hand; the Feishin roleis not added to that host.
Rollout
The
desktop_alekseimigration was done, then the playbook was run. During thefirst launch Feishin failed because the migrated tarball had
chrome-sandboxwithout the setuid bit; the Feishin role now sets it to
4755, and reapplyingthe role fixed the host. The full playbook now reports
ok=21 changed=0 failed=0 skipped=31.Feishin starts successfully (
App ready, main window created, authenticationagainst
music.kosyrev.name) andgtk-launch feishinlaunches it. Telegram andFeishin were stopped for the directory move; Telegram needs to be reopened by
the desktop user. Chrome/Karing/Steam/Gamescope were already present,
unsnapskipped because snap is absent, and the Ghostty config was already in place.
Verification
ansible-playbook --syntax-check playbooks/desktop_aleksei.yamlpasses.ansible-playbook --list-tasks playbooks/desktop_aleksei.yamlresolves everyrole and task; the Telegram and Feishin roles contain no desktop-entry or icon
tasks.
dprint checkpasses.Karing release assets were checked against the current releases.