blob: d1c8134b4bd105cf96fbe376e9d9aced986f0edf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
#!/bin/bash
#
# Wrapper around firefox
#
if which flatpak &> /dev/null; then
if ! flatpak list | grep -q ^org.mozilla.FirefoxDevEdition; then
# Install
sudo flatpak install -y --from https://firefox-flatpak.mojefedora.cz/org.mozilla.FirefoxDevEdition.flatpakref
# Run this script again
$0
else
flatpak run org.mozilla.FirefoxDevEdition &
# Woraround while we dont fix this issue
# https://elementaryos.stackexchange.com/questions/6796/why-does-firefox-keep-creating-a-desktop-folder
# 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
while ! [ -d "$HOME/Desktop" ]; do
sleep 2
done
rmdir $HOME/Desktop $HOME/Downloads &> /dev/null
fi
else
# Install flatpak
sudo apt install flatpak -y
# Run this script again
$0
fi
|