6

I have Xubuntu 16.04 with XFCE window manager.

Every time when I start my computer, the terminal of Terminator is also autostarting.

When I look into "Session and Startup", , I found nothing which relates to Terminator. And "Automatically save session on logout" is also unchecked.

In the Terminator settings, there is no autostart option available.

In the following folders:

~/.config/autostart
/etc/xdg/autostart

There are no contents related to Terminator, so it's scratching my mind where Terminator autostartup come from.

When I change the name Terminator as following

sudo mv /usr/bin/terminator /usr/bin/terminator.backup(

and rebooting, Terminator is indeed not starting. Looking into my logs on /var/log, grepping for anything that would relate to Terminator, I found nothing.

Any suggestion to find out which process is responsible for the autostarting Terminator?

  • Check your .bashrc file. – Josef Klimuk Jun 4 '18 at 13:22
  • I use Fish and Bash, but in both files there is no command that calls terminator. To be sure, I removed my .bashrc and fish configuration file, and rebooted. But Terminator is still popping up... – ReneFroger Jun 4 '18 at 13:26
  • Does it help if you clear the session cache? To do that choose the Session-tab in the Session and Startup-window and click the Clear saved sessions-button. – mook765 Jun 8 '18 at 1:41
  • 2
    What does pstree -psa <pid-of-terminator> report? There's also ~/.config/upstart, ~/.config/systemd for init-system based user-session autostart. – muru Jun 8 '18 at 2:00
  • could be a duplicate see askubuntu.com/questions/228762/… – s1mmel Jun 8 '18 at 6:03
1

pstree is the best way I can think of.

First you need to find the PID of your terminator session you want to trace. I use gnome-terminal so I would use:

$ ps aux | grep gnome-terminal
rick     10321  0.0  0.0  14524  1088 pts/18   S+   20:49   0:00 grep --color=auto gnome-terminal
rick     12871  0.0  0.4 538372 37968 ?        Sl   Jun10   0:31 /usr/lib/gnome-terminal/gnome-terminal-server

The first PID is the ps aux command itself so ignore that. You will have two other PIDs, one for the ghost and one for the ghost-hunter session. Use this to display the pstree for both PIDs:

$ pstree -sapl 12871
systemd,1 splash fastboot kaslr
  └─lightdm,1050
      └─lightdm,1597 --session-child 12 19
          └─upstart,1891 --user
              └─gnome-terminal-,12871
                  ├─bash,12879
                  ├─bash,15278
                  │   └─pstree,21311 -sapl 12871
                  ├─{dconf worker},12873
                  ├─{gdbus},12875
                  └─{gmain},12874

The pstree will trace back all parent processes to your terminator sessions based on PID (Process Identification).

protected by Community Jun 14 '18 at 20:44

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.