← Back to team overview

desktop-packages team mailing list archive

[Bug 1132700] Re: gnome-terminal >= 3.7 requires sourcing of vte.sh login script -- go back to reading /proc/pid/cwd

 

Sorry, I missed the fact that you're not a random single user, but
Ubuntu's developer finally updating gnome-terminal. I'm grateful you're
doing it and supportive of your work!

You *don't* need to modify any user's existing settings!

You need/should modify some global files under /etc, such as profile,
bashrc and/or zshrc.  You can figure it out.  The simplest approach is
as simple as three lines in /etc/bash.bashrc sourcing vte.sh
(conditionally to the existance of the file, of course), and something
similar for zsh.  (It's a bit tricky because it's already sourced by
profile.d, but since terminals bring up non-login shells you need to
source it from bash.bashrc instead, or from both which should be
harmless.)  Each distro does this whole business of profile/bashrc/etc.
differently so vte can't offer an out-of-the-box solution, but it should
be very easy to accomodate it to Ubuntu's setup.

I myself as a vte/gnome-terminal developer and Ubuntu user, I strongly
discourage you from deviating from mainstream gnome-terminal and
reverting to an older approach.  It's technically inferior, obsolete,
will cause significant maintenance cost, give users a worse experience,
and you'll not have support from mainstream developers.

Please accept mainstream gnome-terminal's decision, and tailor it to
Ubuntu's needs.  Feel free to move vte.sh to a different directory (like
/etc/bashrc.d or so), feel free to customize it, feel free to remove
setting the window title (I myself hate that and remove this part for
myself), feel free to reimplement it from scratch, whatever.  But please
do keep this architecture!

I cannot / don't want to join an IRC channel, I'd be grateful if all
discussions happened here, publicly visibly.  I'd be happy to see Ubuntu
move forward rather than backward, accomodating new technologies rather
than reverting them.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gnome-terminal in Ubuntu.
https://bugs.launchpad.net/bugs/1132700

Title:
  gnome-terminal >= 3.7 requires sourcing of vte.sh login script -- go
  back to reading /proc/pid/cwd

Status in GNOME Terminal:
  New
Status in “gnome-terminal” package in Ubuntu:
  Triaged

Bug description:
  As of gnome-terminal 3.7.0, it is required to add the following to
  PS1 to get the usual behaviour where a new terminal opens with the
  current working directory of the terminal you activated it from.

  export PS1='\[$(__vte_ps1)\]'$PS1

  gnome-terminal devs suggest to put this in .bashrc, however since this
  basically causes a regression, it would make sense to deal with it at
  a distro level and perhaps include it in the system bash scripts or
  similar.

  The actual change was made in libvte so this may potentially affect
  any application that uses that library.

  As a side note: __vte_ps1() is provided by /etc/profile.d/vte.sh,
  which is installed by libvte, however atleast on my system this script
  is not getting sourced at login for some reason.

To manage notifications about this bug go to:
https://bugs.launchpad.net/gnome-terminal/+bug/1132700/+subscriptions