文件夹内容不会在ubuntu 14.04中自动刷新

我正在使用Ubuntu 14.04,当我正在做一个在特定文件夹X中创建新文件的实验时。但是我没有在X中看到这些新文件而没有刷新X.

我已将计数增加到1M

/proc/sys/fs/inotify/max_user_watches 

但问题仍然没有解决。

怎么解决?

编辑按照建议,输出cat /etc/xdg/autostart/user-dirs-update-gtk.desktop

 [Desktop Entry] Encoding=UTF-8 Exec=xdg-user-dirs-gtk-update Name=User folders update Comment=Update common folders names to match current locale Terminal=false OnlyShowIn=GNOME;LXDE;Unity; Type=Application StartupNotify=false X-KDE-autostart-after=panel NoDisplay=true X-Ubuntu-Gettext-Domain=xdg-user-dirs-gtk 

因此,这些变化不是永久性的

  1. 编辑文件/etc/sysctl.conf

     sudo nano /etc/sysctl.conf 
  2. 添加以下行,例如

     fs.inotify.max_user_watches=1000000 
  3. 重新加载更改

     sudo sysctl -p 

    你应该看到这样的东西

     fs.inotify.max_user_watches = 1000000 

    并使用cat /proc/sys/fs/inotify/max_user_watches

     1000000