1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-12 19:22:24 +00:00

introduce netwarn-iiab-network.desktop

This commit is contained in:
Jerry Vonau 2022-07-16 12:16:09 -05:00
parent 52989599dd
commit 8d42038ad2
2 changed files with 30 additions and 1 deletions

View file

@ -94,8 +94,27 @@
- gateway/iiab-internet-on
- gateway/iiab-internet-off
# mate desktop detection based on 'register: nd_dir'
# mate desktop detection based on 'register: nd_dir' in enable_services
- name: Check if /usr/share/mate/autostart/ exists
stat:
path: /usr/share/mate/autostart/
register: mate_dir
- name: Link /usr/share/mate/autostart/netwarn-iiab-network.desktop to {{ iiab_dir }}/scripts/netwarn-iiab-network.desktop
file:
src: "{{ iiab_dir }}/scripts/netwarn"
dest: /usr/share/mate/autostart/netwarn-iiab-network.desktop
mode: '0755'
state: link
when: mate_dir.stat.exists and mate_dir.stat.isdir
# RpiOS detection based on register: lx in pwd-warnings.yml
- name: Is /etc/xdg/lxsession/LXDE-pi a directory?
stat:
path: /etc/xdg/lxsession/LXDE-pi
register: lx
# clairify usage
- name: "Set 'network_installed: True'"
set_fact:

View file

@ -0,0 +1,10 @@
[Desktop Entry]
Name[en_US]=iiab-network
Comment[en_US]=iiab-network
Name[en_CA]=iiab-network
Comment[en_CA]=iiab-network
Type=Application
Exec=/usr/local/sbin/netwarn
Hidden=false
Name=iiab-network
Comment=iiab-network