Xfce Forum

Sub domains
 

You are not logged in.

#1 2022-08-10 08:56:58

Ra0
Member
Registered: 2022-08-10
Posts: 2

[SOLVED] Xfce-terminal - How to use "Run a custom command…"

Hi,
I want to run a short command each time I open my xfce-terminal.
I expected to do this by writing this command in Preferences » General » Run a custom command instead of my shell.

But it does not work.
Instead I have this « Failed to execute child process » error.

My command is as simple as :

ssh -X username@server

I have read somewhere that actually this field does not allow more than one word (so a command alone is ok, but a command with its arg/parameters would fail... Weird...).
Can someone confirm this ?

Anyhow, whatever I tried, it fails :

  • create an alias in Bash (my default Shell)

  • create a function in Bash

  • create a script, make it executable for my user account, save it in a dir available in my $PATH, give the script name alone in Xfce-terminal settings, or the full path to the script.

Any idea what I did wrong ?

Last edited by KBar (2022-08-11 05:52:37)

Offline

#2 2022-08-10 10:47:46

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

Re: [SOLVED] Xfce-terminal - How to use "Run a custom command…"

Hello and welcome.

Ra0 wrote:

Can someone confirm this ?

Yes I'm seeing the same.

create a script, make it executable for my user account, save it in a dir available in my $PATH, give the script name alone in Xfce-terminal settings, or the full path to the script.

This worked for me. Putting an executable script in a directory that's in your $PATH and just entering the script name in that field.

Which version of xfce4-terminal are you running?

It may be worth creating a bug report to bring it to the developer's attention.


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

#3 2022-08-10 10:56:16

KBar
Member
Registered: 2021-11-05
Posts: 689

Re: [SOLVED] Xfce-terminal - How to use "Run a custom command…"

I can confirm the same.

GNOME Terminal, however, accepts arguments no problem. So the problem must lie somewhere in xfce4-terminal itself and not in the VTE library.


Remember to edit the subject of your topic to include the [SOLVED] tag once you're satisfied with the answers or have found a solution (in which case, don't forget to share it as well), so that other members of the community can quickly refer to it and save their time. Pretty please! tongue

Offline

#4 2022-08-10 16:57:23

Ra0
Member
Registered: 2022-08-10
Posts: 2

Re: [SOLVED] Xfce-terminal - How to use "Run a custom command…"

Well... After a reboot it the script solution does work. Weird...
Thank you for your quick reaction guys !

Offline

#5 2022-08-10 23:03:11

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

Re: [SOLVED] Xfce-terminal - How to use "Run a custom command…"

a reboot clears away all processes for all users quite effectively.  logging out a user does not as many background processes stay running (probably to speed up logging back in or maintain database state or both).

if you have some kind of root access (such as sudo) you could use the pkill -u $user command to kill the other processes left over after that user logs out.  this may let you avoid a reboot.

Last edited by Skaperen (2022-08-10 23:03:32)

Offline

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

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.016 seconds, 7 queries executed - Memory usage: 534.88 KiB (Peak: 535.73 KiB) ]