And just to b. cilly, the #!/bin/bash shebang will use bash, sh will use
lrwxrwxrwx 1 root root 4 May 15 13:43 /bin/sh -> dash*
lrwxrwxrwx 1 root root 4 May 15 13:43 /bin/sh -> dash*
Exec=./zip.sh %U
# set PATH so it includes user's private bin if it exists if [ -d "$HOME/bin" ] ; then PATH="$HOME/bin:$PATH" fi # set PATH so it includes user's private bin if it exists if [ -d "$HOME/.local/bin" ] ; then PATH="$HOME/.local/bin:$PATH" fi
[Desktop Action move-file] Exec=/usr/lib/x86_64-linux-gnu/libexec/kf5/kdesu mv "%U" /usr/share/applications Name=Move file Icon=document-send [Desktop Entry] Actions=move-file MimeType=application/x-desktop; ServiceTypes=KonqPopupMenu/Plugin Type=Service X-KDE-Priority=TopLevel
Exec=printf %U | xsel -b -i && /usr/lib/x86_64-linux-gnu/libexec/kf5/kdesu mv "%U" ...
sudo chown root:root basename
Exec=printf %U | xsel -b -i && /usr/lib/x86_64-linux-gnu/libexec/kf5/kdesu mv "%U" /usr/share/applications && cd /usr/share/applications && /usr/lib/x86_64-linux-gnu/libexec/kf5/kdesu chown root:root $( basename $(xsel -b -o) )
[Desktop Entry] Type=Service ServiceTypes=KonqPopupMenu/Plugin,all/allfiles MimeType=Application/octet-stream;inode/directory Actions=NFFS [Desktop Action NFFS] Name=New Folder with Selection Icon=folder-download Exec=sh /$HOME/bin/new_folder_with_selection.sh %U
#!/bin/sh dirname="$(kdialog \ --inputbox "Folder to be created" "New Folder" \ )" && mkdir -p -- "$dirname" && mv --target-directory="$dirname" -- "$@" || kdialog --error "Something went wrong"
[FONT=monospace][COLOR=#000000][Desktop Entry][/COLOR] Type=Service Icon=transform-shear-up X-KDE-ServiceTypes=KonqPopupMenu/Plugin MimeType=all/allfiles; Actions=moveUp; X-KDE-Priority=TopLevel #X-KDE-Submenu= Encoding=UTF-8 [Desktop Action moveUp] Name=Move up one level Icon=transform-shear-up Exec=echo "%U" | sed 's# /#\\n/#g' | while read url; do kdemv5 "$url" ..; done [/FONT]
Comment