webapp: Automatically install Konqueror integration scripts to get and drop files.

Based on the example from the tip, but modified to cd into the repo before
running git-annex, since konqueror does not. Also, at least on my system,
the directory is ~/.kde, not ~/.kde4. (konqueror 4.12.4)

This commit was sponsored by Jürgen Peters.
This commit is contained in:
Joey Hess 2014-07-21 15:27:24 -04:00
parent 12ae4ee4ff
commit 89a72f94e2
3 changed files with 59 additions and 40 deletions

View file

@ -3,10 +3,11 @@ annexed files to get or drop.
[[!toc]]
## GNOME (nautilus)
## GNOME (nautilus) and KDE (Dolphin/Konqueror)
Recent git-annex comes with built-in nautilus integration. Just pick the
action from the menu.
Recent git-annex comes with built-in integration for the file managers of
these desktop environments. These let you pick git-annex get and git-annex
drop actions from the context menus when right-clicking on a file.
[[!img assistant/nautilusmenu.png]]
@ -14,30 +15,8 @@ action from the menu.
This is set up by making simple scripts in
`~/.local/share/nautilus/scripts`, with names like "git-annex get"
## KDE (Dolphin/Konqueror)
Create a file `~/.kde4/share/kde4/services/ServiceMenus/git-annex.desktop` with the following contents:
[Desktop Entry]
Type=Service
ServiceTypes=all/allfiles
MimeType=all/all;
Actions=GitAnnexGet;GitAnnexDrop;
X-KDE-Priority=TopLevel
X-KDE-Submenu=Git-Annex
X-KDE-Icon=git-annex
X-KDE-ServiceTypes=KonqPopupMenu/Plugin
[Desktop Action GitAnnexGet]
Name=Get
Icon=git-annex
Exec=git-annex get --notify-start --notify-finish -- %U
[Desktop Action GitAnnexDrop]
Name=Drop
Icon=git-annex
Exec=git-annex drop --notify-start --notify-finish -- %U
and by making a
`~/.kde/share/kde4/services/ServiceMenus/git-annex.desktop file.
## XFCE (Thunar)