Guake / guake

Drop-down terminal for GNOME
https://guake.github.io
GNU General Public License v2.0
4.37k stars 577 forks source link

guake rename a tab not selected ? #2197

Open fredmo opened 10 months ago

fredmo commented 10 months ago

Hello Guake,

I use "guake -r "mytabname" to rename the tabs but I have a lot of tabs opened in parallel. ( and several scripts in parallel )

I have the following issue : In tab1, I do : sleep 10 ; guake -r "test" I switch to tab2/ during the 10s, the tab2 received the name of the "test" ...

Would it be possible to rename the tab of the script where it is launched? and not the latest tab selected?

It's the same issue with sleep 10 ; guake -g => it will return the index of the latest tab selected.

Regards,

Davidy22 commented 9 months ago

I think this should be doable by collecting the PID of the terminal that invoked the command and sending that with the dbus message. On the receiving end should just be able to iterate over the terminal PIDs and it it's not found then it came from another terminal and we can use the current behavior. If the PID is found we can pick that terminal instead. Seems straightforward enough, can put this up for a good first issue till I can get around to it.

This is going to change behavior of commands that this is relevant to, I think this is probably the saner default though.

fredmo commented 5 months ago

Hello, By waiting for the guake evolution, Is it workaroundable with an alias or bash script? Could you share a sample?