Xfce Forum

Sub domains
 

You are not logged in.

#1 2019-02-02 00:01:15

Mellowbob
Member
Registered: 2011-10-16
Posts: 152

vte.sh

I think I buggered things up smile I tried out budgie desktop, decided I really didn't like and uninstalled. But, now every time I start a terminal (xfce4-terminal, but it's actually a bash message) I get:

  bash: /etc/profile.d/vte.sh: No such file or directory

So, I deleted the vte files in /etc/profile.d. Nope ... not the right thing to do!

But, now I have still have the warning, and I cannot figure out how to get the vte files back. Synaptic shows that they are part of libvte-2.91.common but reinstalling that package doesn't put any new files in /etc/profile.d.  And, even if it did ... I think the error would still be there.

Ideas?

Offline

#2 2019-02-02 02:47:05

Skaperen
Member
From: surface of planet Earth
Registered: 2013-06-15
Posts: 321

Re: vte.sh

Ubuntu package libvte-2.91-common includes file /etc/profile.d/vte-2.91.sh.  i have no idea how it ends up with the name /etc/profile.d/vte.sh but my system has the file with the version in it.  i renamed my copy to a weird name and don't get the error message.  so i presume you need to enable it somehow and then it might copy or rename the file and modify things to source it.

i only have the one file.  i don't specifically use it and don't get any such message on my 16.04 system.

lt2a/forums /home/forums 9> ls -Al /etc/profile.d
total 20
-rw-r--r-- 1 root root   40 Feb 16  2017 appmenu-qt5.sh
-rw-r--r-- 1 root root  825 Jul 19  2018 apps-bin-path.sh
-rw-r--r-- 1 root root  663 May 18  2016 bash_completion.sh
-rw-r--r-- 1 root root 1003 Dec 29  2015 cedilla-portuguese.sh
-rw-r--r-- 1 root root 1941 Mar 16  2016 vte-2.91.sh
lt2a/forums /home/forums 10>

look in file /etc/profile to see if there is any code in there that references vte.sh.  if there is, you might want to edit it and comment where it references it.  mine does not.

if you have vte-2.91.sh you might want to copy it to vte.sh in there.

my /etc/profile is:

# /etc/profile: system-wide .profile file for the Bourne shell (sh(1))
# and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).

if [ "$PS1" ]; then
  if [ "$BASH" ] && [ "$BASH" != "/bin/sh" ]; then
    # The file bash.bashrc already sets the default PS1.
    # PS1='\h:\w\$ '
    if [ -f /etc/bash.bashrc ]; then
      . /etc/bash.bashrc
    fi
  else
    if [ "`id -u`" -eq 0 ]; then
      PS1='# '
    else
      PS1='$ '
    fi
  fi
fi

if [ -d /etc/profile.d ]; then
  for i in /etc/profile.d/*.sh; do
    if [ -r $i ]; then
      . $i
    fi
  done
  unset i
fi

Last edited by Skaperen (2019-02-02 03:07:52)

Offline

#3 2019-02-02 18:32:51

Mellowbob
Member
Registered: 2011-10-16
Posts: 152

Re: vte.sh

Thanks. The problem was I didn't have vte-2.91.sh. So, I grabbed the vte source from: http://www.linuxfromscratch.org/blfs/vi … e/vte.html and copied the vte.sh file from it to /etc/profile.d/vte-2.91.sh and all works. I really don't understand why synaptic shows that the vte files are in packages but they don't don't install with the --reinstall option. Oh well ... seems to be working now.

Offline

Board footer

Powered by FluxBB