Xfce Forum

Sub domains
 

You are not logged in.

#1 2023-03-22 18:08:58

Uncleoilybag
Member
Registered: 2023-03-22
Posts: 3

Script to open xfce4-terminal --drop-down and run a command there

I am able to write a script which opens an xfce terminal and then runs 'ranger'
eg

    #! /bin/bash
    xfce4-terminal   -e "/bin/bash -c 'ranger'" &  

and it works exactly as expected.

BUT I would really like to do the same using the DROPDOWN version of xfce4-terminal
So I tried this ....but it doesn't work .

    #! /bin/bash
    xfce4-terminal --drop-down  -e "/bin/bash -c 'ranger'" &  

    It will open the dropdown menu but not carry out the command in the dropped down window.
Could someone point me in the right direction?
Thank you.
Running Linux Mint 20.3
Using  xfce-terminal 0.8.10

Offline

#2 2023-03-22 19:37:28

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

Re: Script to open xfce4-terminal --drop-down and run a command there

Interesting, as your script works for me, though I am using a newer version of xfce4-terminal (1.0.4).

I do notice that your script has a space in the first line, it should read:

#!/bin/bash

...though I'm not sure if that would make a difference.

Do you have any error messages in ~/.xsession-errors when you try to run the "--drop-down" version of the script?

BTW, welcome to the forum.


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 2023-03-22 19:50:51

Uncleoilybag
Member
Registered: 2023-03-22
Posts: 3

Re: Script to open xfce4-terminal --drop-down and run a command there

Hi, thanks - no the space makes no difference.
There are no new errors in  ~/.xsessions-errors
I've re read the manual and wonder whether there should be a --tab option but I still don't seem to make it work.
Should options be in a particular order?

Offline

#4 2023-03-22 20:02:58

Uncleoilybag
Member
Registered: 2023-03-22
Posts: 3

Re: Script to open xfce4-terminal --drop-down and run a command there

I think this works :-

 #!/bin/bash
  xfce4-terminal --tab --drop-down -e ranger 

and I've linked it to a shortcut using the wonderful xbindkeys program

Offline

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

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.009 seconds, 8 queries executed - Memory usage: 523.66 KiB (Peak: 524.51 KiB) ]