File: install.sh

package info (click to toggle)
gallery-uploader 2.4-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 408 kB
  • ctags: 106
  • sloc: python: 851; xml: 81; sh: 8; makefile: 4
file content (25 lines) | stat: -rwxr-xr-x 579 bytes parent folder | download | duplicates (2)
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
#! /bin/bash

# This script must be ran from inside the folder containing it
# (with "./install.sh").

# It doesn't need root privileges, since it "installs" the scripts only for the
# user running it.
# WARNING: it will close all your currently opened folders.


mkdir ~/.gnome2/nautilus-scripts/Gallery

upload=~/.gnome2/nautilus-scripts/Gallery/Upload\ to\ Gallery

if [ -h "$upload" ]
    then
        unlink "$upload"
fi


ln -s `pwd`/gallery-uploader "$upload"

killall nautilus; nautilus &

# After you ran it, just rightclick on an image and take a look under "Scripts".