From 35b11e1a213804e050e9b4e67d48879f7f653b74 Mon Sep 17 00:00:00 2001 From: Mirko Brombin Date: Thu, 1 Dec 2022 10:37:39 +0100 Subject: [PATCH] recipe: Fix Flathub not being installed in the original homedir --- recipe.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/recipe.json b/recipe.json index 4c35ca0..0f9feac 100644 --- a/recipe.json +++ b/recipe.json @@ -75,8 +75,8 @@ "type": "command", "commands": [ "apt install -y flatpak gnome-software-plugin-flatpak", - "!noSudo flatpak remote-add --user --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo", - "gsettings set org.gnome.software packaging-format-preference '[\"flatpak\", \"snap\", \"deb\"]'" + "gsettings set org.gnome.software packaging-format-preference '[\"flatpak\", \"snap\", \"deb\"]'", + "!outRun echo '[Desktop Entry]\nType=Application\nExec=kgx -e bash -c \"echo 'Configuring Flathub..' && flatpak remote-add --user --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo && rm -f ~/.config/autostart/flathub.desktop && echo 'Flathub installed successfully' || echo 'Failed installing Flathub. Are you connected to the internet?'\"\nName=Flatpak Flathub\nComment=Add Flathub repository to Flatpak\n' > ~/.config/autostart/flathub.desktop" ] }, {