From d8eb008b7ca3be916c3798159a65dc16cfb7e8e1 Mon Sep 17 00:00:00 2001 From: onryo Date: Sat, 29 Jan 2022 09:24:50 +0000 Subject: [PATCH] Update 'util/install.sh' --- util/install.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/util/install.sh b/util/install.sh index fb6c0ac..250f530 100755 --- a/util/install.sh +++ b/util/install.sh @@ -1,11 +1,12 @@ #!/bin/bash # Copyright 2019-2021 The Hush Developers -./build.sh linguist && ./build.sh +cd ../ && ./build.sh linguist && ./build.sh +# should be better username=$(id -un) -sed -i "s|\/home\/.*\/SilentDragonLite\/|\/home\/$username\/SilentDragonLite\/|g" SilentDragonLite.desktop +cd util/ && sed -i "s|\/home\/.*\/SilentDragonLite\/|\/home\/$username\/SilentDragonLite\/|g" SilentDragonLite.desktop -cp util/SilentDragonLite.desktop ~/.local/share/applications +cp SilentDragonLite.desktop ~/.local/share/applications # might be /usr/share/applications/ that requires sudo \ No newline at end of file