Unix & Linux Stack Exchange
Q&A for users of Linux, FreeBSD and other Unix-like operating systems
Latest Questions
0
votes
2
answers
994
views
kde dolphin customs menu how to run a python script and pass the dire and file as?
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[1], sys.argv[2] In Thunar to run it, I created a customs action as: python myPythonScript %d %n How can I do that under Dolphin? I tri...
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
user2718593
(69 rep)
Jul 6, 2021, 06:34 PM
• Last activity: Aug 22, 2024, 01:14 PM
0
votes
1
answers
120
views
Dolphin service menu to run konsole command with copied data in working directory
I would like to combine these two elements that I already use: - Konsole terminal running a `yt-dlp` command in order to download from a copied link (like `konsole -e yt-dlp 8 %u`) - A Dolphin service menu to open Konsole at a specific location (`konsole --workdir %f`) I would like a Dolphin service...
I would like to combine these two elements that I already use:
- Konsole terminal running a
I need that when I quickly want to run that command on a USB-stick or other removable device, without the need to manually copy its location or of copying the file there after download, etc.
How to combine the
yt-dlp
command in order to download from a copied link (like konsole -e yt-dlp 8 %u
)
- A Dolphin service menu to open Konsole at a specific location (konsole --workdir %f
)
I would like a Dolphin service menu to open Konsole at a specific location AND run the yt-dlp
command.

%f
and/or %u
parameters here? After --workdir
they are referring to the directory that is open in Dolphin, and after yt-dlp
they are referring to the copied download link, so that a line like Exec=konsole --workdir -e yt-dlp 8 %u
doesn't work.
cipricus
(1779 rep)
Nov 27, 2023, 10:09 AM
• Last activity: Nov 27, 2023, 10:22 AM
0
votes
1
answers
1069
views
Remove Dolphin context menu entry 'Activities'
On my plasma 5.24.6 I have this entry that seems deprecated, supposedly to create links for files and folders to an activity or other. [![enter image description here][1]][1] I couldn't even find what linking a file to an activity could mean. I was expecting something like opening that file/folder i...
On my plasma 5.24.6 I have this entry that seems deprecated, supposedly to create links for files and folders to an activity or other.
I couldn't even find what linking a file to an activity could mean. I was expecting something like opening that file/folder into a specific activity, restricting it to that activity - but that's not it at all. (For *that* window rules are needed. )
[This](https://www.reddit.com/r/kde/comments/9xzlzm/comment/e9ybuyy/?utm_source=share&utm_medium=web2x&context=3) is the only meaningful info I could get: it should create a link on the desktop in a given activity if the option was selected somewhere...
[Here](https://forum.kde.org/viewtopic.php?f=289&t=126257) there is an old discussing showing this might have been dead since Plasma 5.2.
If this is true it seem like a deprecated feature, the option is absent in settings, and a google search gives nothing more.
Can I remove that buggy menu entry?

cipricus
(1779 rep)
Oct 20, 2022, 10:11 PM
• Last activity: Nov 16, 2022, 08:59 AM
1
votes
1
answers
174
views
`kate -n new.txt %u` in Dolphin service menu saves one level up
When creating a new Dolphin service menu to create a new text file using Kate (given there is no shortcut for that like for folders and that the menu option is rather hidden under multiple clicks as said [here][1]), using a desktop file like this [Desktop Entry] Type=Service Icon=kate Actions=new-fi...
When creating a new Dolphin service menu to create a new text file using Kate (given there is no shortcut for that like for folders and that the menu option is rather hidden under multiple clicks as said here ), using a desktop file like this
[Desktop Entry]
Type=Service
Icon=kate
Actions=new-file
ServiceTypes=KonqPopupMenu/Plugin,inode/directory
X-KDE-Priority=TopLevel
[Desktop Action new-file]
Name=New text file
Icon=kate
Exec=kate %u
Kate creates the file not within the selected directory, but at the same path as that directory, one level up than expected: selecting folder
/PATH/TO/MY_DIRECTORY
and using the context menu service, the text file is ready to be saved at /PATH/TO
instead of /PATH/TO/MY_DIRECTORY
.
The same happens with Exec=kate -n new.txt %u
, as the file is created *and* saved.
How to make Kate save or offer to save **within the selected directory**?
How to do it inside the selected folder?
cipricus
(1779 rep)
Oct 19, 2021, 02:23 PM
• Last activity: Mar 8, 2022, 04:55 AM
0
votes
0
answers
293
views
.desktop file KDE Service menu - how to copy many files
I have a servicemenuitem for KDE which copies the selected file to the desktop. It works when one file is selected on the desktop, but when multiple files are selected, they are not copied. The -exec parameter "%F has a list of all files and their full paths in, but I don't know how to get this to w...
I have a servicemenuitem for KDE which copies the selected file to the desktop.
It works when one file is selected on the desktop, but when multiple files are selected, they are not copied.
The -exec parameter "%F has a list of all files and their full paths in, but I don't know how to get this to work with the -cp command.
Thanks
[Desktop Action copytodesktop]
Exec=cp "%F" /home/acer1/Desktop
Name=Copy To Desktop
Icon=document-send
[Desktop Entry]
Actions=copytodesktop
ServiceTypes=KonqPopupMenu/Plugin
MimeType=all/all;
Type=Service
X-KDE-Priority=TopLevel
AliC
(1 rep)
May 10, 2021, 08:39 AM
2
votes
0
answers
610
views
Where can I find the .desktop files for the "Copy To" and "Move To" service menus for Dolphin file browser
I am using KDE Neon. I want to create modified versions of the "Move To" and "Copy To" services in the Dolphin file browser. I want to find the built-in services, copy their .desktop files, and edit the copies, making a new pair of services with the new option. I ran ```kf5-config --path services```...
I am using KDE Neon. I want to create modified versions of the "Move To" and "Copy To" services in the Dolphin file browser.
I want to find the built-in services, copy their .desktop files, and edit the copies, making a new pair of services with the new option.
I ran
-config --path services
and got /home/myusername/.local/share/kservices5/:/usr/share/kservices5/ I checked in both of these locations and could not find .desktop files which appeared to be related to Copy To or Move to.
Do Copy To and Move To even have .desktop files associated with them? If so, where would I find them.
Ian
(131 rep)
Oct 17, 2019, 02:07 AM
3
votes
1
answers
1757
views
Add another sub-level to KDE-Submenu in Dolphin actions/services?
Is it possible to create lower levels of sub-menus in Dolphin context menu than the one created by the line `X-KDE-Submenu=` under `[Desktop Entry]`? --- Example: I have created an action called "Subtitles" (`X-KDE-Submenu=Subtitles`) which contains 4 options for downloading different languages with...
Is it possible to create lower levels of sub-menus in Dolphin context menu than the one created by the line
After that I have created a second such file which is almost identical, only it uses the
I was expecting that the names in
Which gives this:
Is something similar possible in Dolphin?
---
X-KDE-Submenu=
under [Desktop Entry]
?
---
Example:
I have created an action called "Subtitles" (X-KDE-Submenu=Subtitles
) which contains 4 options for downloading different languages with the filebot
tool. I know I can make that appear in the top level or under Actions. I have set it for toplevel with the line X-KDE-Priority=TopLevel
.
[Desktop Entry]
Type=Service
Name=Download subtitles (filebot)
ServiceTypes=KonqPopupMenu/Plugin
Actions=en;fr;ro;it;
MimeType=video/*
Icon=gnome-subtitles
Encoding=UTF-8
X-KDE-Priority=TopLevel
X-KDE-Submenu=Subtitles
[Desktop Action en]
Exec=filebot -get-subtitles -rename -non-strict %f
Icon=gnome-subtitles
Name=English (filebot)
Termial=true
[Desktop Action fr]
Exec=terminator -e "filebot -get-subtitles --lang fr -rename -non-strict %f" -p ttt
Icon=gnome-subtitles
Name=Français (filebot)
[Desktop Action ro]
Exec=terminator -e "filebot -get-subtitles --lang ro -rename -non-strict %f" -p ttt
Icon=gnome-subtitles
Name=Româneşte (filebot)
[Desktop Action it]
Exec=terminator -e "filebot -get-subtitles --lang it -rename -non-strict %f" -p ttt
Icon=gnome-subtitles
Name=Italiano (filebot)

subliminal tool
. Also, the two files have different names in Name=
under [Desktop Entry]
: one is Name=Download subtitles (filebot)
, the other Name=Download subtitles (subliminal)
.
Nevertheless, all the eight actions of these two files appear grouped together under 'Subtitles'.

Name=Download subtitles (filebot)
and Name=Download subtitles (subliminal)
to count for something, but they seem to do nothing.
I have created two desktop files with 4 actions each but it looks as if I had created a single desktop file with 8 actions, because the two files have in common the line X-KDE-Submenu=Subtitles
.
I know I can separate the actions of the two files by setting different X-KDE-Submenu
names, but then I will have two different toplevel entries (or two separate entries in Actions if I remove X-KDE-Priority=TopLevel
).
But what I want is to have one toplevel entry called Subtitles with two sub-menus, one for filebot, the other for subliminal, and in each of these the four language options - similar to what I can add in a different OS in Nautilus. There, I have made this setting in Nautilus config tool:


user32012
Feb 7, 2017, 04:14 PM
• Last activity: Feb 10, 2017, 07:08 PM
4
votes
1
answers
2111
views
Is it possible to add KDE/dolphin service menu for specific file extension?
In windows, you can and context menu entries that are only shown for specific file types only. In Dolphin, I know how to add service menu entry using .desktop file. but Is there way to only show those service menus for specific file type?
In windows, you can and context menu entries that are only shown for specific file types only.
In Dolphin, I know how to add service menu entry using .desktop file. but Is there way to only show those service menus for specific file type?
engineerwolf
(41 rep)
May 1, 2016, 03:43 AM
• Last activity: Feb 10, 2017, 04:42 PM
0
votes
1
answers
333
views
What are all possible values for the 'Type=' option in a .desktop service file in KDE/Dolphin's?
In application launchers that I have seen is `Type=Application`, in Dolphin actions (that I can create in `~/.local/share/kservices5`) it is `Type=Service`. Are there other possibilities beside these two for Dolphin and KDE/Plasma 5? The context in which this interests me is that of a more specific...
In application launchers that I have seen is
Type=Application
, in Dolphin actions (that I can create in ~/.local/share/kservices5
) it is Type=Service
.
Are there other possibilities beside these two for Dolphin and KDE/Plasma 5?
The context in which this interests me is that of a more specific question that I have posted at the same time:
[How many sub-levels can there be in Dolphin actions/services?](https://unix.stackexchange.com/q/343211/32012)
but slso [this](https://elementaryos.stackexchange.com/q/10586/170) on elementaryOS.
user32012
Feb 7, 2017, 03:42 PM
• Last activity: Feb 8, 2017, 08:26 AM
1
votes
1
answers
478
views
KDE 4.14 on OpenSuse, KDE Thunderbird with "Send as Email attachment"
I am running KDE OpenSuse 13.2 which has KDE 4.14. I could not find any way to configure the "Send as Email Attachment" service menu action to open Thunderbird through any standard configuration GUI. At present, this service menu opens kmail. All searches on google pointed to old instructions that d...
I am running KDE OpenSuse 13.2 which has KDE 4.14. I could not find any way to configure the "Send as Email Attachment" service menu action to open Thunderbird through any standard configuration GUI. At present, this service menu opens kmail.
All searches on google pointed to old instructions that do not seem to work on OpenSuse 13.2.
What is the best practice to manage KDE's Service Menu's on OpenSuse 13.2?
Timothy C. Quinn
(519 rep)
Feb 25, 2015, 06:38 PM
• Last activity: Feb 25, 2015, 06:45 PM
1
votes
0
answers
308
views
Adding separator on top level service menu
I have a top level service menu, now I want to add a separator before this menu, Here's my current service menu header: [Desktop Entry] Type=Service Actions=A;_SEPARATOR_;B;C; X-KDE-Priority=TopLevel X-KDE-Submenu=Debuggers ServiceTypes=KonqPopupMenu/Plugin,all/allfiles Encoding=UTF-8 MimeType=appli...
I have a top level service menu, now I want to add a separator before this menu,
Here's my current service menu header:
[Desktop Entry]
Type=Service
Actions=A;_SEPARATOR_;B;C;
X-KDE-Priority=TopLevel
X-KDE-Submenu=Debuggers
ServiceTypes=KonqPopupMenu/Plugin,all/allfiles
Encoding=UTF-8
MimeType=application/x-ms-dos-executable;application/x-executable;application/x-msdownload;
Now I would have a sub menu named Debuggers, and it's like this,
Debuggers --> A
-----
B
C
What I want is like this,
---------
Debuggers --> A
-----
B
C
So, how should I add the separator for the top level menu?
daisy
(55777 rep)
May 13, 2013, 02:33 AM
0
votes
1
answers
57
views
Is it necessary to use quotes in KDE4 ServiceMenus?
In the `Exec=` line of a service menu in kde4, I normally use: `Exec=command %f` So I wonder, if it's necessary to quote the `%f`, not sure how KDE4 parses the menu file, i.e `Exec=command "%f"`
In the
Exec=
line of a service menu in kde4, I normally use:
Exec=command %f
So I wonder, if it's necessary to quote the %f
, not sure how KDE4 parses the menu file, i.e
Exec=command "%f"
daisy
(55777 rep)
May 5, 2013, 03:04 AM
• Last activity: May 5, 2013, 12:34 PM
Showing page 1 of 12 total questions