diff options
Diffstat (limited to 'caja')
-rw-r--r-- | caja/Makefile | 15 | ||||
-rwxr-xr-x | caja/c | 6 | ||||
l--------- | caja/c-Zenith | 1 | ||||
-rwxr-xr-x | caja/thunar | 18 |
4 files changed, 32 insertions, 8 deletions
diff --git a/caja/Makefile b/caja/Makefile index b0c08a5..3b36437 100644 --- a/caja/Makefile +++ b/caja/Makefile @@ -1,12 +1,17 @@ .POSIX: -include ../common.mk install: - $(CHECK_INSTALLED) dash + ../check-installed-shebang c mkdir -p -- ~/.local/bin - ln -sf -- ~/.dotfiles/caja/c ~/.local/bin/ + test ! -e ~/.local/bin/c || test -L ~/.local/bin/c + if test -e "c-$$(hostname)"; then \ + ../check-in-path "$$(readlink -- "c-$$(hostname)")" && \ + ln -sf -- ~/.dotfiles/caja/"c-$$(hostname)" ~/.local/bin/c; \ + else \ + ln -sf -- ~/.dotfiles/caja/c ~/.local/bin/c; \ + fi uninstall: + +! ../check-installed caja + +! ../check-installed caja-gtk2 -unlink -- ~/.local/bin/c - -.PHONY: install uninstall @@ -1,7 +1,7 @@ #!/bin/dash for i in $(ls /dev/fd/); do - eval "exec $i>&-" + eval "exec $i>&-" done exec 0</dev/null exec 1>/dev/null @@ -10,7 +10,7 @@ exec 2>/dev/null if test $# = 0; then exec caja --no-desktop & else - p="$(realpath -- "$*" || printf '%s\n' "$*")" + p="$(realpath -- "$*" || printf '%s\n' "$*")" cd / - exec caja --no-desktop -- "$p" & + exec caja --no-desktop -- "$p" & fi diff --git a/caja/c-Zenith b/caja/c-Zenith new file mode 120000 index 0000000..af8fd0e --- /dev/null +++ b/caja/c-Zenith @@ -0,0 +1 @@ +thunar
\ No newline at end of file diff --git a/caja/thunar b/caja/thunar new file mode 100755 index 0000000..b21c2dd --- /dev/null +++ b/caja/thunar @@ -0,0 +1,18 @@ +#!/bin/dash + +for i in $(ls /dev/fd/); do + eval "exec $i>&-" +done +exec 0</dev/null +exec 1>/dev/null +exec 2>/dev/null + +if test $# = 0; then + #exec caja --no-desktop & + exec thunar & +else + p="$(realpath -- "$*" || printf '%s\n' "$*")" + cd / + #exec caja --no-desktop -- "$p" & + exec thunar -- "$p" & +fi |