upload to sftp servicemenu
  1. [Desktop Entry]
  2.  
  3. Actions=UploadFileToSftp;
  4. Type=Service
  5. MimeType=application/octet-stream;
  6. X-KDE-ServiceTypes=KonqPopupMenu/Plugin
  7.  
  8. [Desktop Action UploadFileToSftp]
  9. Exec=kdialog --yesno "Opravdu odeslat soubor? " --title "Upload to SFTP" &&scp %U user@host:/path/to/uploaddir/ &&qdbus org.kde.klipper /klipper org.kde.klipper.klipper.setClipboardContents "https://host/uploaddir/$(basename %U)" &&firefox --new-tab "https://host/uploaddir/$(basename %U)"
  10. Icon=network
  11. Name=Upload to SFTP
Parsed in 0.004 seconds