mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
Enact Chrome browser autostart w/ compositor labwc (no longer wayfire) for RasPiOS
This commit is contained in:
parent
adfc1cc696
commit
7544b79285
1 changed files with 11 additions and 11 deletions
|
@ -31,11 +31,11 @@
|
|||
# 2022-07-22: SIMILAR TO roles/iiab-admin/tasks/pwd-warnings.yml FOR passwords
|
||||
# AND roles/network/tasks/netwarn.yml FOR iiab-network
|
||||
|
||||
# 2024-12-09: RasPiOS changed compositor from wayfire to labwc, so check for dir /home/{{ iiab_admin_user }}/.config/labwc/ instead?
|
||||
- name: Does /home/{{ iiab_admin_user }}/.config/wayfire.ini exist?
|
||||
# 2024-12-12: RasPiOS changed compositor from wayfire to labwc: https://forums.raspberrypi.com/viewtopic.php?t=379321
|
||||
- name: Does directory /home/{{ iiab_admin_user }}/.config/labwc/ exist?
|
||||
stat:
|
||||
path: /home/{{ iiab_admin_user }}/.config/wayfire.ini
|
||||
register: wayfire_ini
|
||||
path: /home/{{ iiab_admin_user }}/.config/labwc/
|
||||
register: labwc_dir
|
||||
|
||||
- name: Does /usr/bin/chromium-browser exist?
|
||||
stat:
|
||||
|
@ -47,14 +47,14 @@
|
|||
# path: /usr/bin/chromium
|
||||
# register: chromium_present
|
||||
|
||||
# 2024-12-09: RasPiOS changed compositor from wayfire to labwc, so try putting the line in NON-ini file /home/{{ iiab_admin_user }}/.config/labwc/autostart -- according to: https://forums.raspberrypi.com/viewtopic.php?t=379321
|
||||
# 2024-12-12: RasPiOS changed compositor from wayfire to labwc: https://forums.raspberrypi.com/viewtopic.php?t=379321
|
||||
- name: If both above exist, add '/usr/bin/chromium-browser --disable-restore-session-state http://box/home' to /home/{{ iiab_admin_user }}/.config/wayfire.ini
|
||||
ini_file:
|
||||
path: /home/{{ iiab_admin_user }}/.config/wayfire.ini # iiab-admin
|
||||
section: autostart
|
||||
option: chromium-browser
|
||||
value: '/usr/bin/chromium-browser --disable-restore-session-state http://box/home'
|
||||
when: wayfire_ini.stat.exists and chromium_browser.stat.exists
|
||||
lineinfile:
|
||||
path: /home/{{ iiab_admin_user }}/.config/labwc/autostart # iiab-admin
|
||||
create: yes
|
||||
regexp: '^/usr/bin/chromium'
|
||||
line: '/usr/bin/chromium-browser --disable-restore-session-state http://box/home'
|
||||
when: labwc_dir.stat.exists and labwc_dir.stat.isdir and chromium_browser.stat.exists
|
||||
|
||||
# - name: Add chromium to /etc/xdg/lxsession/LXDE-pi/autostart
|
||||
# lineinfile:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue