Added "QubesIncoming" shortcut to Nautilus
A small script will add the QubesIncoming shortcut to Nautilus file pane on the first use of qvm-copy to a given VM. The shortcut will not be recreated if deleted. fixes QubesOS/qubes-issues#2229
This commit is contained in:
parent
b20373213d
commit
fd6e551ebe
1
debian/qubes-core-agent-nautilus.install
vendored
1
debian/qubes-core-agent-nautilus.install
vendored
@ -1 +1,2 @@
|
|||||||
usr/share/nautilus-python/extensions/*
|
usr/share/nautilus-python/extensions/*
|
||||||
|
usr/lib/qubes/qvm_nautilus_bookmark.sh
|
||||||
|
@ -1,7 +1,9 @@
|
|||||||
NAUTILUSPYEXTDIR ?= /usr/share/nautilus-python/extensions
|
NAUTILUSPYEXTDIR ?= /usr/share/nautilus-python/extensions
|
||||||
|
QUBESLIBDIR ?= /usr/lib/qubes
|
||||||
|
|
||||||
.PHONY: install
|
.PHONY: install
|
||||||
|
|
||||||
install:
|
install:
|
||||||
install -d $(DESTDIR)$(NAUTILUSPYEXTDIR)
|
install -d $(DESTDIR)$(NAUTILUSPYEXTDIR)
|
||||||
install -t $(DESTDIR)$(NAUTILUSPYEXTDIR) -m 0644 *.py
|
install -t $(DESTDIR)$(NAUTILUSPYEXTDIR) -m 0644 *.py
|
||||||
|
install -t $(DESTDIR)$(QUBESLIBDIR) -m 0755 *.sh
|
||||||
|
6
qubes-rpc/nautilus/qvm_nautilus_bookmark.sh
Normal file
6
qubes-rpc/nautilus/qvm_nautilus_bookmark.sh
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
if [ ! -e ~/.config/gtk-3.0/qubes-incoming-bookmark-created ]
|
||||||
|
then
|
||||||
|
echo "file:///home/user/QubesIncoming" >> ~/.config/gtk-3.0/bookmarks
|
||||||
|
touch ~/.config/gtk-3.0/qubes-incoming-bookmark-created
|
||||||
|
fi
|
@ -1,2 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
if [ -f /usr/lib/qubes/qvm_nautilus_bookmark.sh ]
|
||||||
|
then
|
||||||
|
/usr/lib/qubes/qvm_nautilus_bookmark.sh >/dev/null 2>&1 </dev/null
|
||||||
|
fi
|
||||||
exec /usr/lib/qubes/qfile-unpacker
|
exec /usr/lib/qubes/qfile-unpacker
|
||||||
|
@ -686,6 +686,7 @@ rm -f %{name}-%{version}
|
|||||||
/usr/share/nautilus-python/extensions/qvm_copy_nautilus.py*
|
/usr/share/nautilus-python/extensions/qvm_copy_nautilus.py*
|
||||||
/usr/share/nautilus-python/extensions/qvm_move_nautilus.py*
|
/usr/share/nautilus-python/extensions/qvm_move_nautilus.py*
|
||||||
/usr/share/nautilus-python/extensions/qvm_dvm_nautilus.py*
|
/usr/share/nautilus-python/extensions/qvm_dvm_nautilus.py*
|
||||||
|
/usr/lib/qubes/qvm_nautilus_bookmark.sh
|
||||||
|
|
||||||
%files thunar
|
%files thunar
|
||||||
/usr/lib/qubes/qvm-actions.sh
|
/usr/lib/qubes/qvm-actions.sh
|
||||||
|
Loading…
Reference in New Issue
Block a user