From ca0a2e4607bf2144256b89c72cf3d0e53b7f7350 Mon Sep 17 00:00:00 2001
From: Adar Nimrod <nimrod@shore.co.il>
Date: Fri, 13 Sep 2019 11:58:14 +0300
Subject: [PATCH] Run `flatpak-daily` as root with the correct home directory.

Otherwise the files (as root) are written to my home directory and when
I correct the ownership I get this error: "Refusing to operate on a user
installation as root".
---
 Documents/bin/flatpak-daily | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Documents/bin/flatpak-daily b/Documents/bin/flatpak-daily
index 5b22e52..9116cde 100755
--- a/Documents/bin/flatpak-daily
+++ b/Documents/bin/flatpak-daily
@@ -1,2 +1,2 @@
 #!/bin/sh
-exec sudo /bin/sh -c 'flatpak update --assumeyes && flatpak uninstall --unused --assumeyes'
+exec sudo --set-home /bin/sh -c 'flatpak update --assumeyes && flatpak uninstall --unused --assumeyes'
-- 
GitLab