]> gitweb.fluxo.info Git - utils-x11.git/commitdiff
Workaround for firefox-dev desktop/download folders (3)
authorSilvio Rhatto <rhatto@riseup.net>
Tue, 21 Nov 2017 19:06:15 +0000 (17:06 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Tue, 21 Nov 2017 19:06:15 +0000 (17:06 -0200)
firefox-dev

index 717d049649292b92b8cedb811fa78069da1b62dd..0e4ea96e1af6adfa03a8ff0e9f0c17b0ea853bf1 100755 (executable)
@@ -10,6 +10,9 @@ if which flatpak &> /dev/null; then
   # https://superuser.com/questions/1266254/prevent-firefox-from-creating-desktop-folder
   # http://docs.flatpak.org/en/latest/working-with-the-sandbox.html
   # https://www.mankier.com/1/flatpak-override
-  sleep 20
+  while ! [ -d "$HOME/Desktop" ] && ! [ -d "$HOME/Downloads" ]; do
+    sleep 2
+  done
+
   rmdir $HOME/Desktop $HOME/Downloads
 fi