Skip to content

Commit

Permalink
Add a custom icon in RHEL VM (#8980)
Browse files Browse the repository at this point in the history
  • Loading branch information
danieloh30 authored Jan 16, 2025
1 parent 18b56b6 commit 6f99f28
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Version=1.0
Name=RAD AI Labs
Comment=Opens Firefox with a specific URL
Exec=firefox localhost:8443
Icon=/usr/share/icons/hicolor/48x48/apps/firefox.png
Icon=/usr/share/icons/hicolor/48x48/apps/rad_lab.png
Terminal=false
Type=Application
Categories=Network;WebBrowser;
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,12 @@
- name: Build and start the lab instructions for Desktop labs
shell: "sh /home/{{ setup_instructlab_user }}/dev-guides/utilities/lab-desktop-start"

- name: Add a custom shortcut icon
ansible.builtin.copy:
src: frad_lab.png
dest: "/usr/share/icons/hicolor/48x48/apps/rad_lab.png"
mode: u=rw,g=rw,o=

- name: Add a firefox shortcut for the lab instructions
ansible.builtin.copy:
src: firefox-rad.desktop
Expand All @@ -143,5 +149,8 @@
- name: Update the desktop database to make the new shortcut visible
shell: "sudo gtk-update-icon-cache -f -t /usr/share/icons/hicolor"

- name: reboot the VM
shell: "sudo reboot"

become: true
become_user: "{{ setup_instructlab_user }}"

0 comments on commit 6f99f28

Please sign in to comment.