From 34b2d76621d3dc30ac63679a3aafefdc0249d538 Mon Sep 17 00:00:00 2001 From: lw520203 <1823363429@qq.com> Date: Sun, 2 Mar 2025 15:14:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=92=E9=99=A4/home=E8=B7=AF=E5=BE=84?= =?UTF-8?q?=E4=B8=8B=E6=96=87=E4=BB=B6=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- devstation-config.spec | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/devstation-config.spec b/devstation-config.spec index 409bbda..810110d 100644 --- a/devstation-config.spec +++ b/devstation-config.spec @@ -1,5 +1,5 @@ Name: devstation-config -Version: 2 +Version: 3 Release: 1 Summary: A shortcut to openEuler official site @@ -23,9 +23,11 @@ install -D -m 0644 %SOURCE2 %{buildroot}%{_datadir}/glib-2.0/schemas/80_devstati %post echo "Trying to install the shortcut to user desktops..." for user in $(ls /home); do - [[ ! -d /home/$user/Desktop ]] && mkdir /home/$user/Desktop - %{__install} %{_datadir}/applications/openEuler.desktop /home/$user/Desktop - echo " Installed to \"$user\"." + if [ -d /home/$user ]; then + [[ ! -d /home/$user/Desktop ]] && mkdir /home/$user/Desktop + %{__install} %{_datadir}/applications/openEuler.desktop /home/$user/Desktop + echo " Installed to \"$user\"." + fi done [[ ! -d /root/Desktop ]] && mkdir /root/Desktop %{__install} %{_datadir}/applications/openEuler.desktop /root/Desktop @@ -36,6 +38,9 @@ echo " Installed to \"root\"." %{_datadir}/glib-2.0/schemas/80_devstation-config.gschema.override %changelog +* Fri Feb 28 2025 Liu Wang <1823363429@qq.com> - 3-1 +- Filter out files from the /home path + * Sat Feb 1 2025 Eustace - 2-1 - Pin icons -- Gitee