This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
people:glen [2014-07-22 16:48] glen [Dropbox as picture share service] update |
people:glen [2014-07-22 16:50] glen add dropbox autostart .desktop |
||
---|---|---|---|
Line 254: | Line 254: | ||
Requirements: [[https://www.dropbox.com/install?os=lnx|dropboxd]] running, [[http://ftp.gnome.org/pub/GNOME/sources/libnotify/0.7/|libnotify]], [[https://github.com/rvoicilas/inotify-tools/wiki|inotify-tools]] | Requirements: [[https://www.dropbox.com/install?os=lnx|dropboxd]] running, [[http://ftp.gnome.org/pub/GNOME/sources/libnotify/0.7/|libnotify]], [[https://github.com/rvoicilas/inotify-tools/wiki|inotify-tools]] | ||
- | You should start the script at startup of your X session. | + | You should start the script at startup of your X session, example: |
+ | <code ini ~/.config/autostart/dropbox-watch.desktop> | ||
+ | [Desktop Entry] | ||
+ | Type=Application | ||
+ | Name=Dropbox watch | ||
+ | Comment=Launch dropbox watcher script | ||
+ | Icon=dropbox | ||
+ | Exec=$HOME/.local/bin/dropbox-watch.sh | ||
+ | </code> | ||
- | <code bash ~/.local/bin/dropbox-watch.sh>#!/bin/sh | + | <code bash ~/.local/bin/dropbox-watch.sh> |
+ | #!/bin/sh | ||
# A script that watches ~/Pictures/Screenshots dir, and any new file is added there, it | # A script that watches ~/Pictures/Screenshots dir, and any new file is added there, it | ||
# is renamed so it would contain filename modify timestamp (uses safe | # is renamed so it would contain filename modify timestamp (uses safe |