mirror of
https://github.com/starr-dusT/dotfiles.git
synced 2025-05-19 02:46:06 -07:00
update to hide specific desktop files
This commit is contained in:
parent
fbcef727f7
commit
51014ab160
4
.bashrc
4
.bashrc
@ -12,10 +12,6 @@ then
|
||||
fi
|
||||
export PATH
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
export NVM_DIR="$HOME/.nvm"
|
||||
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
|
||||
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
|
||||
|
18
provision/tasks/desktop/_hide-desktop.yml
Normal file
18
provision/tasks/desktop/_hide-desktop.yml
Normal file
@ -0,0 +1,18 @@
|
||||
- name: Check desktop file exists
|
||||
ansible.builtin.stat:
|
||||
path: "{{ item }}"
|
||||
register: p
|
||||
|
||||
- name: Edit desktop file
|
||||
ansible.builtin.lineinfile:
|
||||
path: "{{ item }}"
|
||||
insertafter: '^Type'
|
||||
line: 'NoDisplay=true'
|
||||
firstmatch: true
|
||||
state: present
|
||||
become: true
|
||||
when: p.stat.exists
|
||||
|
||||
- debug:
|
||||
msg: "Warning - {{ item }} does not exist"
|
||||
when: p.stat.exists == False
|
@ -4,6 +4,7 @@
|
||||
- rhytmbox
|
||||
- cheese
|
||||
- totem
|
||||
- gnome-photos
|
||||
- gnome-maps
|
||||
- gnome-characters
|
||||
- gnome-connections
|
||||
@ -16,3 +17,23 @@
|
||||
- yelp
|
||||
state: absent
|
||||
become: true
|
||||
|
||||
- name: Set desktop files to hide
|
||||
include_tasks: _hide-desktop.yml
|
||||
loop:
|
||||
- /usr/share/applications/wine-winhelp.desktop
|
||||
- /usr/share/applications/wine-mime-msi.desktop
|
||||
- /usr/share/applications/wine-notepad.desktop
|
||||
- /usr/share/applications/wine-oleview.desktop
|
||||
- /usr/share/applications/wine-regedit.desktop
|
||||
- /usr/share/applications/wine-uninstaller.desktop
|
||||
- /usr/share/applications/wine-wineboot.desktop
|
||||
- /usr/share/applications/wine-winecfg.desktop
|
||||
- /usr/share/applications/wine-winefile.desktop
|
||||
- /usr/share/applications/wine-winemine.desktop
|
||||
- /usr/share/applications/wine-wordpad.desktop
|
||||
- /usr/share/applications/vifm.desktop
|
||||
- /usr/share/applications/dosbox-staging.desktop
|
||||
- /usr/share/applications/nvim.desktop
|
||||
- /usr/share/applications/syncthing-start.desktop
|
||||
- /usr/share/applications/syncthing-ui.desktop
|
@ -2,5 +2,11 @@
|
||||
dnf:
|
||||
name:
|
||||
- codium # Free/Libre Open Source Software Binaries of VS Code
|
||||
- python3-pip # A tool for installing and managing Python3 packages
|
||||
state: present
|
||||
become: true
|
||||
|
||||
- name: Install development python packages
|
||||
ansible.builtin.pip:
|
||||
name:
|
||||
- ansible-lint # Command-line tool for linting playbooks, roles and collections
|
Loading…
x
Reference in New Issue
Block a user