Registered Member
|
Hi there,
please excuse my maybe not perfect english. Also i work in a german setup, so hopefully all transcriptions are correct. For my daily work i want to create a context-menu entry for directories that calls a shellscript. I created the .desktop-file in and i get my script called via right-click->context-menu->actions->etc... , so this part works. For testing purposes i just echo things out to the terminal and a .txt-file. Here is the .desktop-entry:
and here the called shell-script:
The "read -p ..." line is for keeping the terminal open, for this i tried . "echo ... $u %u" was for trying just anything. As expected i get
Also i get $0,
But i did not manage to get the path from where i called the -action. I tried any iteration of using sh or bash, with or without ' " ' on different places and so on. I followed this https://develop.kde.org/docs/dolphin/service-menus/ tutorial, telling
also inserting the " ; " inside the ' " ', then nothing at all happened. After hours of trying i urge for solution... how can i use the desired variable, which is reffered to as for use with d-bus, in my shellscript? Thanks in advance, i appreciate any help, Frank |
Registered users: abc72656, Bing [Bot], daret, Google [Bot], lockheed, Sogou [Bot], Yahoo [Bot]