-
Notifications
You must be signed in to change notification settings - Fork 3
/
install-dropbox
39 lines (33 loc) · 1.27 KB
/
install-dropbox
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
34
35
36
37
38
39
# install-dropbox
# Storage - Install Dropbox client
# Install official Dropbox client with nemo support. Headless moder – run as user which will be using dropbox.
echo -e "Running: Storage - Install Dropbox client - ./scripts/install-dropbox"
## More information: https://www.dropbox.com/install-linux
# Install official Dropbox client. Headless moder – run as user which will be using dropbox.
cd ~ && wget -O - "https://www.dropbox.com/download?plat=lnx.x86_64" | tar xzf - &&
# Add Dropbox to user's environment autostart (with Gnome panel icon fix)
mkdir -p ~/.config/autostart &&
echo -e "[Desktop Entry]\n\
Type=Application\n\
Name=Dropbox\n\
Exec=env XDG_CURRENT_DESKTOP=Gnome /home/$USER/.dropbox-dist/dropboxd\n\
OnlyShowIn=GNOME\n\
Terminal=false\n\
Hidden=false\n\
NoDisplay=false\n\
Comment=Start Dropbox at log in" | tee ~/.config/autostart/dropbox.desktop > /dev/null
# # Add Dropbox python CLI script
# mkdir ~/.local/bin
# cd ~/.local/bin/ && wget "https://linux.dropbox.com/packages/dropbox.py"
# chmod +x dropbox.py
# ln -s dropbox.py dropbox
# # Firstrun dropbox daemon and then kill it to not freeze configuration script
# ~/.dropbox-dist/dropboxd & sleep 10
# killall dropbox*
if [ $? -eq 0 ]; then
echo -e "\\nOK\\n"
exit 0
else
echo -e "\\nFAIL\\n"
exit 1
fi