Well, I am just trying to make it a bit more “convenient” and honestly trying to learn something new.
Through command line:
1- you right click to open terminal
2- you type the command (maybe mistake in typing or qutation marks depending on filename.pdf or “file name.pdf”)
3- [EDIT] if the file is in a search result I would need to open the folder, find it again…!
In service menu you type nothing, you just right click and select “OCR”
As I said, I’m trying to make it easier and learn something new.
Now all what I have is a sub menu entry “Ocr” where when I click it nothing happens to the file I right clicked!
Experienced user can help I hope.
The point is I am trying to make it more convenient to do something with a file.
P.S. I got some help at KDE forums but seems we are stuck!
I understand “EndeavourOS A terminal-centric distro with a vibrant and friendly community at its core” but any way it has desktops, uses mouse, clicks and right clicks anyway.
For example, if you have the KDE file archive utility Ark installed you will see a menu entry to “Extract here…” whenever you right-click on a file archive. The option to “Extract here…” is a servicemenu.
Yes, I am using Dolphin!
The link you provided says it is located at “kio/servicemenu” which I don’t have! Should I install kio?
For about 3 days now I have been reading and found some saying the “.desktop” file should be placed at "/usr/share/kservices5/ServiceMenus/” which I did.
My file as shown above. The problem is that nothing happens to the file when I right click!
I can guess the problem is in writing the “Exec=” command properly. I tried many things but couldn’t get it to work!
It won’t work with aliases because aliases are loaded with .bashrc and that happens when you start the interactive shell session in the terminal (that is, when you launch your terminal emulator).
In this case, you have a non-interactive shell session which won’t load your .bashrc.
I don’t know why, it should work if you have #!/bin/bash as the first line of your script (or #!/usr/bin/env python3 for Python, on Arch, 3 is not necessary), and proper permissions set.
A command line may contain at most one %f, %u, %F or %U field code. If the application should not open any file the %f, %u, %F and %U field codes must be removed from the command line and ignored.