This may (or may not) be related to this bug.
General description (synopsis)
When I open the Dropbox folder using the icon located in the Unity Panel, nautilus crashes and my desktop icons disappear.
Ubuntu 17.04, arc-dark theme (however, it happens even after it is removed, so I doubt it's related). Dropbox installed using sudo apt install nautilus-dropbox
.
Detailed description
Restart machine.
Click on "open Dropbox folder" in the dropdown menu extended from the icon in the Panel.
Nautilus crashes (+ desktop icons disappear, obviously).
Trying to restart Nautilus does not work until I pkill nautilus and restart it, and get this:
$ Initializing nautilus-dropbox 2015.10.28 Nautilus-Share-Message: Called "net usershare info" but it failed: 'net usershare' returned error 255: mkdir failed on directory /var/run/samba/msg.lock: Permission denied net usershare: cannot open usershare directory /var/lib/samba/usershares. Error No such file or directory Please ask your system administrator to enable user sharing.
After a while, I also get this (repeating every 30 seconds or so).
Unable to monitor entire Dropbox folder hierarchy. Please run "echo fs.inotify.max_user_watches=100000 | sudo tee -a /etc/sysctl.conf; sudo sysctl -p" and restart Dropbox to fix the problem.
Quitting Dropbox and restarting also gives me this:
~$ dropbox start Starting Dropbox...Done! ~$ Nautilus-Share-Message: Called "net usershare info" but it failed: 'net usershare' returned error 255: mkdir failed on directory /var/run/samba/msg.lock: Permission denied net usershare: cannot open usershare directory /var/lib/samba/usershares. Error No such file or directory Please ask your system administrator to enable user sharing.
Edit:
So far I tried all the usual suspects, restarting, reinstalling Dropbox etc (and also echo fs.inotify.max_user_watches=100000 | sudo tee -a /etc/sysctl.conf; sudo sysctl -p
)