dzchimp
April 26th, 2012, 12:18 PM
I'd like to add a Command "Upload to Server" as a right click item for pictures (extensions .jpg,.jpeg and .png), which would open a specific command "/userscripts/uploader path_and_name_of_picturefile"
Meaning I want to right click a file in Dolphin, choose the menu item "Upload to server", and my bash script should be invoked with an argument as the fullpath of file with the filename. My script would then take care of 'ftp put' for the file, then display the location where I have uploaded the file to.
The bash script is ready. I need to know how to add context menu items for specific file extensions, and pass the argument to my script, and then how to keep the "konsole" process active till I manually close it.
Meaning I want to right click a file in Dolphin, choose the menu item "Upload to server", and my bash script should be invoked with an argument as the fullpath of file with the filename. My script would then take care of 'ftp put' for the file, then display the location where I have uploaded the file to.
The bash script is ready. I need to know how to add context menu items for specific file extensions, and pass the argument to my script, and then how to keep the "konsole" process active till I manually close it.