From 91309cf2f8c8e6a68f45734fa815504f1402bb09 Mon Sep 17 00:00:00 2001 From: Kohei Watanabe Date: Wed, 23 Nov 2022 14:39:09 +0900 Subject: [PATCH] fixed problem with mist install not working --- desktop/install | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/desktop/install b/desktop/install index 12ce78f..41d97cb 100755 --- a/desktop/install +++ b/desktop/install @@ -35,11 +35,17 @@ function install_source_han_mono_fonts() { fc-cache } +function install_makedeb_packages() { + local uid + uid=${SUDO_UID:-$(id -u)} + sudo --user="#$uid" mist update + sudo --user="#$uid" mist install logseq-bin +} + (($(id -u) == 0)) \ && [[ -f /etc/debian_version ]] \ && install_apt_packages install_gsettings settings.ini / install_gsettings terminal-settings.ini "/org/gnome/terminal/legacy/profiles:/:$(gsettings get org.gnome.Terminal.ProfilesList default | tr -d \')/" install_source_han_mono_fonts -mist update \ - && mist install logseq-bin +install_makedeb_packages