schischi / xcwd

A simple tool that prints the current working directory of the currently focused window
Other
293 stars 32 forks source link

always returns the first terminal directory (i3/gnome-terminal) #14

Open sylvainbannier opened 9 years ago

sylvainbannier commented 9 years ago

runnings multiples gnome-terminal in i3 in several workspaces and I get something like this :

➜ tmp>xcwd
/home/myuser/d1
➜ tmp>pwd
/home/myuser/d2
alecmev commented 8 years ago

I think this is happening due to the fact that gnome-terminal uses client-server model (only one process being up at all times: gnome-terminal-server), and it doesn't seem like there's a way to revert to the standalone mode. What a shame.

What I'm doing now is just using Ctrl + Shift + N instead, when I want to fork.

pipriles commented 7 years ago

I am having this same issue with urxvtd and urxvtc.

fletchmakes commented 5 years ago

Not sure if this project is still being maintained, however I noticed today that in urxvt, executing this command in ~/dir1 while I had a process running in another terminal (pwd being ~/dir2), xcwd would output the directory of the terminal with an active process. Seems related to the above.

Running on Manjaro i3 Linux.