Gnome terminal doesn't keep current working directory in new tab

  • Open
  • quality assurance status badge
Details
3 participants
  • Ben Sturmfels
  • Efraim Flashner
  • Ricardo Wurmus
Owner
unassigned
Submitted by
Ben Sturmfels
Severity
normal
B
B
Ben Sturmfels wrote on 25 Apr 2019 07:28
(address . bug-guix@gnu.org)
877ebitzzk.fsf@sturm.com.au
Hi Folks,

Just minor thing, but on other systems I use, when you open subsequent
Gnome Terminal tabs, the current working directory is maintained in the
new tab. On my Guix System, new tabs start up back at /home/ben.

Very low priority of course.

Regards,
Ben
B
B
Ben Sturmfels wrote on 22 Jul 2019 10:50
Re: bug#35424: Gnome terminal doesn't keep current working directory in new tab/window
(name . Ben Sturmfels)(address . ben@stumbles.id.au)(address . 35424@debbugs.gnu.org)
87v9vuo3lg.fsf@sturm.com.au
On Thu, 25 Apr 2019, Ben Sturmfels wrote:

Toggle quote (6 lines)
> Hi Folks,
>
> Just minor thing, but on other systems I use, when you open subsequent
> Gnome Terminal tabs, the current working directory is maintained in the
> new tab. On my Guix System, new tabs start up back at /home/ben.

I've found that sourcing vte.sh fixes the issue, and the working
directory is retained:

`source /gnu/store/...-vte-0.52.2/etc/profile.d/vte.sh`

I've tested in a `guix system vm` to make sure it wasn't related to
my .bashrc and it's not. It's exactly the same aside from that the Gnome
details open a new terminal window, not a tab.
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEPn825zvdanEG+SAhAjwF4snAaPAFAl01eMsACgkQAjwF4snA
aPDFeQ/7BX5/WkFmrPM2wTIhW9Nul60gvI0IWMPZ3a7x9eD1mN0knLPpQijZ0x6h
mhR8NqRZmKAYNccMO1uiiJSDservskZJ9tj2zWgehWNVyJ/N54kkrYaf8ZmChugn
pYnRWYgixdvpPTlG9C/Otj7h4bmIBo3NxNHHQ67P/qHUMYq2RlUOvfjuo9AXXbWo
/YiM0CPc0Ae++1YorzEwKcow5fgBnkeAiXphp8HYI9DIpPMRU6D6saRoOSvVkaR0
DxfX9fNxm7LSWs/B/KWt0KyZhx8RZ/+H1WVy8ntDC47gET1y0+ZpSxcIMc9XLFBs
aS8xfbMDCTFCNm34dAcMODTG9rOk7muAiulAudaEXhTssNcQUXkUSGso13Hjp/iA
Mxh9DiyKmkZddNLRDEV6I9sgmtEoRNSdrX0E93WPOpgGt+/xPieAi9kXDuyXSmZC
XgqLMOMYq8CzK24O6+UVhsCgZQ90isY909MToi7XtW6popc0rQTA02bfOhgqX7UF
6eLHkpOQ3NYCoufKW6cIX37wppiSCfzHRk7fbXlIOMvCSqxLrHTAMxpH9X7lvofu
8NgkkAUwpS3CtIoWsUgAvfDA+AVXz02X5pkZp/L+LXqhODQkvCv8no0ppKzq6f62
C8ccpH+DytRtilugvWEi7kDxEfb5lp8kfp6gLVZvTo9lbWtgUxA=
=rJ7M
-----END PGP SIGNATURE-----

R
R
Ricardo Wurmus wrote on 22 Jul 2019 21:09
(name . Ben Sturmfels)(address . ben@stumbles.id.au)(address . 35424@debbugs.gnu.org)
87lfwpdgyu.fsf@elephly.net
Hi Ben,

Toggle quote (9 lines)
>> Just minor thing, but on other systems I use, when you open subsequent
>> Gnome Terminal tabs, the current working directory is maintained in the
>> new tab. On my Guix System, new tabs start up back at /home/ben.
>
> I've found that sourcing vte.sh fixes the issue, and the working
> directory is retained:
>
> `source /gnu/store/...-vte-0.52.2/etc/profile.d/vte.sh`

Interesting. Is this file installed to /etc/profile.d/vte.sh on other
systems? Or is it otherwise sourced?

--
Ricardo
E
E
Efraim Flashner wrote on 23 Jul 2019 08:35
(name . Ricardo Wurmus)(address . rekado@elephly.net)
20190723063514.GC780@macbook41
On Mon, Jul 22, 2019 at 09:09:13PM +0200, Ricardo Wurmus wrote:
Toggle quote (16 lines)
>
> Hi Ben,
>
> >> Just minor thing, but on other systems I use, when you open subsequent
> >> Gnome Terminal tabs, the current working directory is maintained in the
> >> new tab. On my Guix System, new tabs start up back at /home/ben.
> >
> > I've found that sourcing vte.sh fixes the issue, and the working
> > directory is retained:
> >
> > `source /gnu/store/...-vte-0.52.2/etc/profile.d/vte.sh`
>
> Interesting. Is this file installed to /etc/profile.d/vte.sh on other
> systems? Or is it otherwise sourced?
>

I can only speak for my own system. I don't have gnome-terminal
installed, but I do have tilda which uses vte. My
~/.guix-profile/etc/profile.d/ only has bash_completion.sh.

--
Efraim Flashner <efraim@flashner.co.il> ????? ?????
GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAl02qp4ACgkQQarn3Mo9
g1FUShAAwXrEvUbtgtfvbuHukredmTTyk15MZg6edBBPPQU0NTugNBtoZXQ8ZMtd
g/j02L2OTkHjsEGY2LCmji1oXiDc7bfWw/T7gGNU8sla1ICmxwAdjRQ8xARx6Doi
7hnq0aj8Xy+8OstPM85waRSt9rjVXLcB70r0kRyf6O77vi9KejFzHBuTDaedNWsF
HpnGWU/GrXz6pwS1UXHbKJMrwZQm6/OpKpx+rbSZ3M402rGeR2M/Onm6a0E+uwMZ
mG8pFLVSyj1wptW+NMi2geqMhAAiuG51ml8XMRiMDqWVLqgTQOChTn/XvmYURtSD
mayk4cPgR2iaPE5Gmv4HCT7e4BgOlAgzaButRXQovOonDY9dAFhcTFUQVqdFajmC
umRQ2Jc2a2aOvCWYU8sLEI6HttuP4GZUIPSnmSRoVsGlixu8h0Hn+aIkMnIJ18ks
dvN5NogqbojI5o92IDEJ/lKqpPL0cuLdvaEfgN7iJ/sR7M7F88aHHWhYY2KLcoXn
YrygS+SI8O8El/ByLQ07rVf7qwISw33yXgQvdz//RBiJp7Iy/1knmVV0bGFwkc/V
VBZLCO2Tb7ywLs/0rt38U7LkmK6om1gNzByGhWJuyD0amB1QCuS+4rTZ0klcRnno
OlzwM4lbw/gDa4hw5+6WJ/jwEFQYuQ1CaVAwGUZ0gNpr9rUcpJ0=
=8ACW
-----END PGP SIGNATURE-----


B
B
Ben Sturmfels wrote on 23 Jul 2019 08:40
(address . 35424@debbugs.gnu.org)
2c8f90ad-09a8-e2f3-db53-b80fa1c0fc1b@stumbles.id.au
On 23/07/19 16:35, Efraim Flashner wrote:

Toggle quote (8 lines)
>> Interesting. Is this file installed to /etc/profile.d/vte.sh on other
>> systems? Or is it otherwise sourced?
>>
>
> I can only speak for my own system. I don't have gnome-terminal
> installed, but I do have tilda which uses vte. My
> ~/.guix-profile/etc/profile.d/ only has bash_completion.sh.

I wonder if it's just a matter of moving vte to the propagated-inputs of
gnome-terminal (and other packages like tilda)? I'll try now and report
back.

Regards,
Ben
B
B
Ben Sturmfels wrote on 23 Jul 2019 08:54
(address . 35424@debbugs.gnu.org)
3ca7f646-7b83-2fb4-9891-03d31410c962@stumbles.id.au
On 23/07/19 16:40, Ben Sturmfels wrote:

Toggle quote (12 lines)
>>> Interesting. Is this file installed to /etc/profile.d/vte.sh on other
>>> systems? Or is it otherwise sourced?
>>>
>>
>> I can only speak for my own system. I don't have gnome-terminal
>> installed, but I do have tilda which uses vte. My
>> ~/.guix-profile/etc/profile.d/ only has bash_completion.sh.
>
> I wonder if it's just a matter of moving vte to the propagated-inputs of
> gnome-terminal (and other packages like tilda)? I'll try now and report
> back.

Ok, moving vte to propagated-inputs for gnome-terminal makes
~/.guix-profile/etc/profile.d/vte.sh show up if installed with `guix
package` and /etc/profile.d/vte.sh show up if installed with `guix system`.

Neither ~/.guix-profile/etc/profile or /etc/profile source their
respective profile.d files though like Trisquel does. Can someone give
me a lead on how these profiles are generated?

Regards,
Ben
B
B
Ben Sturmfels wrote on 23 Jul 2019 10:26
(address . 35424@debbugs.gnu.org)
2a2c2698-fdb0-abf1-0aba-b9afaa2db167@stumbles.id.au
On 23/07/19 16:54, Ben Sturmfels wrote:
Toggle quote (18 lines)
> On 23/07/19 16:40, Ben Sturmfels wrote:
>
>>>> Interesting. Is this file installed to /etc/profile.d/vte.sh on other
>>>> systems? Or is it otherwise sourced?
>>>>
>>>
>>> I can only speak for my own system. I don't have gnome-terminal
>>> installed, but I do have tilda which uses vte. My
>>> ~/.guix-profile/etc/profile.d/ only has bash_completion.sh.
>>
>> I wonder if it's just a matter of moving vte to the propagated-inputs of
>> gnome-terminal (and other packages like tilda)? I'll try now and report
>> back.
>
> Ok, moving vte to propagated-inputs for gnome-terminal makes
> ~/.guix-profile/etc/profile.d/vte.sh show up if installed with `guix
> package` and /etc/profile.d/vte.sh show up if installed with `guix system`.

Whoops, I got that mixed up - `guix system` does NOT create
/etc/profile.d/vte.sh after the move to propagated-inputs.
?