Skip to content

Commit ac6eea0

Browse files
authored
www_options: Restore browser autostart, by renaming chromium-browser to chromium
1 parent b153990 commit ac6eea0

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

roles/www_options/tasks/main.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,10 @@
3737
path: /home/{{ iiab_admin_user }}/.config/labwc/
3838
register: labwc_dir
3939

40-
- name: Does /usr/bin/chromium-browser exist?
40+
# 2025-12-14: RasPiOS 13 "Trixie" recently renamed chromium-browser to chromium
41+
- name: Does /usr/bin/chromium exist?
4142
stat:
42-
path: /usr/bin/chromium-browser
43+
path: /usr/bin/chromium
4344
register: chromium_browser
4445

4546
# - name: Does /usr/bin/chromium exist? (check for browser filename change)
@@ -48,12 +49,12 @@
4849
# register: chromium_present
4950

5051
# 2024-12-12: RasPiOS changed compositor from wayfire to labwc: https://forums.raspberrypi.com/viewtopic.php?t=379321
51-
- name: If both above exist, add '/usr/bin/chromium-browser --disable-restore-session-state http://box/home &' to /home/{{ iiab_admin_user }}/.config/labwc/autostart
52+
- name: If both above exist, add '/usr/bin/chromium --disable-restore-session-state http://box/home &' to /home/{{ iiab_admin_user }}/.config/labwc/autostart
5253
lineinfile:
5354
path: /home/{{ iiab_admin_user }}/.config/labwc/autostart # iiab-admin
5455
create: yes
5556
regexp: '^/usr/bin/chromium'
56-
line: '/usr/bin/chromium-browser --disable-restore-session-state http://box/home &'
57+
line: '/usr/bin/chromium --disable-restore-session-state http://box/home &'
5758
when: labwc_dir.stat.exists and labwc_dir.stat.isdir and chromium_browser.stat.exists
5859

5960
# - name: Add chromium to /etc/xdg/lxsession/LXDE-pi/autostart

0 commit comments

Comments
 (0)