From e55fb45c936ae857dcccd37de1657842d4ee3191 Mon Sep 17 00:00:00 2001 From: valentin <valentinb@fsmpi.rwth-aachen.de> Date: Sun, 8 Nov 2020 13:30:26 +0100 Subject: [PATCH] post-oem-lip: put linuxparty.sh in Downloads and launcher in Desktop --- packages | 6 +++--- post-oem-lip | 15 +++++++++++++-- 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/packages b/packages index 1471e2a..540309a 100644 --- a/packages +++ b/packages @@ -23,7 +23,7 @@ m |singular|singular: Tool für die Vorlesung Computeralgebra m |gap|gap: Groups, Algorithms, Programming - ein System für diskrete Mathematik (595MB) M |codeblocks|codeblocks: IDE für das C++-Praktikum - P |python-numpy python3-numpy|numpy: Numerik Bibiliothek für Python + P |python-numpy python3-numpy|numpy: Numerik Bibliothek für Python P |python-scipy python3-scipy|scipy: Python-Bibliothek für scientific computing P |python-matplotlib python3-matplotlib|matplotlib: Schnittstelle zum Plotten mit Python P |python-seaborn python3-seaborn|Seaborn: Schönes Plotten statistischer Daten mit Python @@ -63,7 +63,7 @@ #System stuff, e.g. gcc and efibootmgr |automake| |cmake| - C |build-essential|build-essential: C und C++ Comiler, make + C |build-essential|build-essential: C und C++ Compiler, make |lvm2| c |screen|screen: terminal multiplexer c |tmux|tmux: terminal multiplexer @@ -91,7 +91,7 @@ LD |gparted| # LaTeX documentation: not useful in a VM |texlive-fonts-extra-doc texlive-metapost-doc texlive-science-doc texlive-latex-recommended-doc texlive-humanities-doc texlive-latex-base-doc texlive-publishers-doc texlive-latex-extra-doc texlive-fonts-recommended-doc texlive-pictures-doc texlive-pstricks-doc info|Dokumentation für LaTeX -#german language support +#German language support D |hunspell-de-de| LD |language-pack-de| D |wngerman| diff --git a/post-oem-lip b/post-oem-lip index aa22b65..ec7abf8 100644 --- a/post-oem-lip +++ b/post-oem-lip @@ -15,9 +15,20 @@ BASEDIR='/opt/lip' DELETE= for user in $(ls /home); do - mkdir -p "/home/$user/Desktop" - cp "$BASEDIR/linuxparty.sh" "$BASEDIR/packages" "/home/$user/Desktop/" || continue + mkdir -p "/home/$user/Desktop" "/home/$user/Downloads" + cp "$BASEDIR/linuxparty.sh" "$BASEDIR/packages" "/home/$user/Downloads/" || continue + cat > "/home/$user/Desktop/LinuxParty.desktop" <<EOF +#!/usr/bin/env xdg-open +[Desktop Entry] +Type=Application +Terminal=true +Icon=/usr/share/icons/Humanity/apps/128/system-installer.svg +Name=LinuxParty +Exec=bash /home/$user/Downloads/linuxparty.sh +EOF chown -R "$user:$user" "/home/$user/Desktop" + chown -R "$user:$user" "/home/$user/Downloads" + chmod 775 "/home/$user/Desktop/LinuxParty.desktop" DELETE=1 done -- GitLab