You are not logged in.

#1 2017-10-01 14:31:44

martix
Kim Jong-un Stunt Double
Registered: 2016-02-19
Posts: 1,262

What is the background of geany creating a pseudo logged-in user?

There is the command

top -d 1

which shows among others processes in use, memory in use and also: Number of users.

I was surprised - while being the only user logged in - it showed: 2 users.

Used searx for a bit more command line magic:

w -s

Hmm, there were indeed two: One tty "/usr/bin/openbox --startup /usr/lib/x86_64-linux-gnu/openbox-autostart OPENBOX" and one pts "/bin/bash".

In the end it turned out that the reason for this was geany: If it's open, it looks like this. If it's closed, the second one (pts) disappears. Is it something about creating a pseudo terminal device? And why is it necessary?

If I'm not mistaken, those pts "logins" are also showed by the command last (last USERNAME).

Offline

#2 2018-01-09 10:35:49

vinzv
Member
Registered: 2017-09-12
Posts: 180
Website

Re: What is the background of geany creating a pseudo logged-in user?

Geany has an internal terminal. Maybe it's related to that?
You could try deactivating it at Settings -> Common -> Load VTE (not sure if these points are named exactly like that in EN) and check again for the pts "login".

Offline

#3 2018-01-09 11:56:27

earlybird
ほやほや
Registered: 2015-12-16
Posts: 540
Website

Re: What is the background of geany creating a pseudo logged-in user?

w

output may or may not make sense nowadays. When using graphical environments with logind, consolekit or polkit, or desktops like KDE, GNOME, or even Openbox, you'll see some TTY allocations which do not make sense without reading the source code of those programs. And e.g. you'll see TTY allocations for each tmux pane, but when you use gnome-terminal you won't see anything about those shell sessions, since gnome-terminal implements its own terminal server...(at least on Ubuntu 16.04).

Online

Board footer

Powered by FluxBB