Skip to content

Commit

Permalink
move desktop shortcuts from ~/.local/share/applications to /usr/share…
Browse files Browse the repository at this point in the history
…/applications
  • Loading branch information
capsulecorplab committed Dec 1, 2023
1 parent a9c1e30 commit 371df94
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions playbook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -266,10 +266,8 @@
creates: /opt/{{ prusaslicer_dir }}/bin/prusa-slicer
- name: Create symlink for prusa-slicer in /usr/local/bin
shell: ln -srv /opt/{{ prusaslicer_dir }}/bin/prusa-slicer /usr/local/bin/prusa-slicer
- name: Create local application folder for PrusaSlicer
shell: mkdir -p /home/kasm-default-profile/.local/share/applications/
- name: Configure PrusaSlicer desktop shortcut
shell: echo "[Desktop Entry]\nName=PrusaSlicer\nGenericName=PrusaSlicer\nExec=/usr/local/bin/prusa-slicer\nIcon=/opt/{{ prusaslicer_dir }}/resources/icons/PrusaSlicer.png\nTerminal=false\nType=Application\nStartupNotify=false\nCategories=Application;Development;" > /home/kasm-default-profile/.local/share/applications/prusaslicer.desktop
shell: echo "[Desktop Entry]\nName=PrusaSlicer\nGenericName=PrusaSlicer\nExec=/usr/local/bin/prusa-slicer\nIcon=/opt/{{ prusaslicer_dir }}/resources/icons/PrusaSlicer.png\nTerminal=false\nType=Application\nStartupNotify=false\nCategories=Application;Development;" > /usr/share/applications/prusaslicer.desktop
- name: Get prusa-slicer version
shell: prusa-slicer --help | grep PrusaSlicer- | awk '{ print $1 '}
register: installed_prusaslicer_version
Expand Down Expand Up @@ -666,10 +664,8 @@
mode: '0755'
- name: Create symlink for FreeCAD AppImage in /usr/local/bin
shell: ln -srv /opt/FreeCAD/FreeCAD_{{ freecad_version }}-{{ freecad_release_date }}-conda-Linux-x86_64-py310.AppImage /usr/local/bin/freecad
- name: Create local application folder for FreeCAD
shell: mkdir -p /home/kasm-default-profile/.local/share/applications/
- name: Configure FreeCAD desktop shortcut
shell: echo "[Desktop Entry]\nName=FreeCAD\nGenericName=FreeCAD\nExec=/usr/local/bin/freecad\nIcon=/opt/FreeCAD/freecad-icon-16.png\nTerminal=false\nType=Application\nStartupNotify=false\nCategories=Application;Development;" > /home/kasm-default-profile/.local/share/applications/freecad.desktop
shell: echo "[Desktop Entry]\nName=FreeCAD\nGenericName=FreeCAD\nExec=/usr/local/bin/freecad\nIcon=/opt/FreeCAD/freecad-icon-16.png\nTerminal=false\nType=Application\nStartupNotify=false\nCategories=Application;Development;" > /usr/share/applications/freecad.desktop

-
# install Python packages with pip
Expand Down

0 comments on commit 371df94

Please sign in to comment.