Xfce Forum

Sub domains
 

You are not logged in.

#1 2019-03-06 04:11:48

fixit
Member
Registered: 2015-01-19
Posts: 129

Can I use any command as a custom action?

Can I use any command as a custom action even if it isn't related to file work?

Such as

cancel -a -x

Last edited by fixit (2019-03-06 13:07:06)


Ubuntu-Mate 24.04

Offline

#2 2019-03-06 22:56:32

ctac
Member
Registered: 2017-05-08
Posts: 57

Re: Can I use any command as a custom action?

hi,
As you can see, you get no reply. Perhaps nobody understand the question ?
If you want a custom action for a keyboard shortcut, the answer is certainly yes.
If you look for other thing, you must update your question and explain better. roll

Offline

#3 2019-03-07 03:23:00

Skaperen
Member
From: right by Jesus, our Saviour
Registered: 2013-06-15
Posts: 862

Re: Can I use any command as a custom action?

can you give us more information about the context in which you are using the custom action?  pretty much any place where you can specify a command to run will let you specify any command.  on my computer "any" is an actual command.  i wrote it.

Offline

#4 2019-03-07 13:53:26

fixit
Member
Registered: 2015-01-19
Posts: 129

Re: Can I use any command as a custom action?

Skaperen wrote:

can you give us more information about the context in which you are using the custom action?  pretty much any place where you can specify a command to run will let you specify any command.  on my computer "any" is an actual command.  i wrote it.

for ex. cancel -a -x cancels all print jobs.

So if I can use it as a custom action, that would be a  little quicker than having to go to a terminal and type that command.

Last edited by fixit (2019-03-07 13:53:43)


Ubuntu-Mate 24.04

Offline

#5 2019-03-07 15:14:52

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,486

Re: Can I use any command as a custom action?

Thunar custom actions are very flexible. Create a custom action that runs that command and on the Appearance tab, select "Directories". This will make the command show up when you right-click on a blank space a thunar window.

Doesn't cancel require root privileges? Perhaps the command should be:

pkexec cancel -a -x

..or if you are using an older distro:

gksudo cancel -a -x

Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#6 2019-03-07 19:50:25

fixit
Member
Registered: 2015-01-19
Posts: 129

Re: Can I use any command as a custom action?

ToZ wrote:

Thunar custom actions are very flexible. Create a custom action that runs that command and on the Appearance tab, select "Directories". This will make the command show up when you right-click on a blank space a thunar window.

Doesn't cancel require root privileges? Perhaps the command should be:

pkexec cancel -a -x

It doesn't require sudo on my Ubuntu Mate 18.04.

Last edited by fixit (2019-03-07 23:57:30)


Ubuntu-Mate 24.04

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.010 seconds, 7 queries executed - Memory usage: 541.66 KiB (Peak: 542.51 KiB) ]