kde dolphin customs menu how to run a python script and pass the dire and file as?
0
votes
2
answers
995
views
In running XFCE
In Dolphin I wish to have a right click context menu,
says myPythonScript,
that will run the python script with directory and path as python sys.argv, sys.argv
In Thunar to run it, I created a customs action as:
python myPythonScript %d %n
How can I do that under Dolphin?
I tried under
.local/share/kservices5/ServiceMenus/
to create a file called
righClickTest.desktop
which content is:
[Desktop Entry]
Type=Service
X-KDE-ServiceTypes=KonqPopupMenu/Plugin
MimeType=all/all;
Actions=rightClick;
Encoding=UTF-8
[Desktop Action rummage]
Name=rightClick
Exec=python %d %n
But I do not see my rightclick menu.
Thanks
Asked by user2718593
(69 rep)
Jul 6, 2021, 06:34 PM
Last activity: Aug 22, 2024, 01:14 PM
Last activity: Aug 22, 2024, 01:14 PM