fix(deploy): use DietPi autostart hook for cursor hiding #18

Merged
addison merged 1 commit from exe-dev-bot/kiosk:fix/hide-cursor into main 2026-02-13 19:11:43 -05:00
Contributor

The previous approach installed unclutter and wrote a snippet to /etc/chromium.d/dietpi-unclutter. DietPi's Chromium kiosk autostart (index 11) uses its own launch script and does not source /etc/chromium.d/ files, so the cursor was never hidden.

Changes

  • Package: Switch from unclutter (transitional, may not exist on Debian Trixie) to unclutter-xfixes
  • Launch hook: Use /var/lib/dietpi/dietpi-autostart/custom.sh — the official DietPi hook that runs inside the X session before the autostart app launches
  • Flag: Pass -root so unclutter monitors the root X window
  • CSS fallback: Add cursor: none rules as belt-and-suspenders, hiding the cursor immediately even before unclutter starts
  • Tests: Updated expectations to match new package name and path
The previous approach installed `unclutter` and wrote a snippet to `/etc/chromium.d/dietpi-unclutter`. DietPi's Chromium kiosk autostart (index 11) uses its own launch script and does not source `/etc/chromium.d/` files, so the cursor was never hidden. ### Changes - **Package**: Switch from `unclutter` (transitional, may not exist on Debian Trixie) to `unclutter-xfixes` - **Launch hook**: Use `/var/lib/dietpi/dietpi-autostart/custom.sh` — the official DietPi hook that runs inside the X session before the autostart app launches - **Flag**: Pass `-root` so unclutter monitors the root X window - **CSS fallback**: Add `cursor: none` rules as belt-and-suspenders, hiding the cursor immediately even before unclutter starts - **Tests**: Updated expectations to match new package name and path
The previous approach installed `unclutter` and wrote a snippet to
/etc/chromium.d/dietpi-unclutter.  DietPi's Chromium kiosk autostart
(index 11) uses its own launch script and does not source
/etc/chromium.d/ files, so the cursor was never hidden.

Changes:
- Switch package from `unclutter` (transitional, may not exist on
  Debian Trixie) to `unclutter-xfixes`.
- Launch unclutter from /var/lib/dietpi/dietpi-autostart/custom.sh,
  the official DietPi hook that runs inside the X session before
  the autostart application launches.
- Pass `-root` so unclutter monitors the root X window.
- Add `cursor: none` CSS rules as belt-and-suspenders fallback,
  hiding the cursor immediately even before unclutter starts.
- Update test expectations to match the new package name and path,
  and narrow the chmod+x absent check so it does not false-positive
  on the legitimate chmod for custom.sh.

Co-authored-by: Shelley <shelley@exe.dev>
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
kwila/kiosk!18
No description provided.