You are not logged in.
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
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
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
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
[ Generated in 0.009 seconds, 8 queries executed - Memory usage: 523.66 KiB (Peak: 524.51 KiB) ]