terminal icon indicating copy to clipboard operation
terminal copied to clipboard

Pantheon-Terminal does not log me in and logs me out of the desktop environment when I close it.

Open elementaryBot opened this issue 8 years ago • 5 comments

I recently installed elementary-os (Freya 64-bit) on my laptop. I share my home directory with my pre-existing Ubuntu installation. When I launch the pantheon-terminal it does not give me the login prompt. It just remains stuck with a blinking cursor. When I close it, it logs me out my the desktop environment altogether.

I am able to login into TTY plain terminals. Removing .bashrc/.bash_logout has no effect on this behaviour.

Launchpad Details: #LP1548299 Apoorv Khurasia - 2016-02-22 12:51:06 +0000

elementaryBot avatar Apr 26 '17 17:04 elementaryBot

I found the problem:

The culprit is the startup shell code in http://bazaar.launchpad.net/~elementary-apps/pantheon-terminal/trunk/view/head:/src/TerminalWidget.vala. My login shell in GTK settings was somehow set to blank. This didn't affect XTerm or gnome-terminal but affected pantheon-terminal. Running usermod -s fixed things. However, this is a bug as it does not affect other terminals. Furthermore, I am still not clear as to why closing the hung shell logs me out of the desktop itself.

As I am not very familiar with this codebase, so I cannot propose a proper fix. But here is log for your reference:

[_LOG_LEVEL_INFO 21:10:14.472800] Application.vala:155: Terminal version: 0.3.2 [_LOG_LEVEL_INFO 21:10:14.472935] Application.vala:157: Kernel version: 3.19.0-39-generic [_LOG_LEVEL_DEBUG 21:10:14.484829] Settings.vala:163: Loading settings from schema 'org.pantheon.terminal.saved-state' [_LOG_LEVEL_DEBUG 21:10:14.486054] Settings.vala:163: Loading settings from schema 'org.pantheon.terminal.settings' [_LOG_LEVEL_WARN 21:10:14.492801] Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-CveKzRDv6b: Connection refused [_LOG_LEVEL_DEBUG 21:10:14.535759] [Gtk] Connecting to session manager [_LOG_LEVEL_WARN 21:10:14.648694] TerminalWidget.vala:273: Failed to execute child process "" (No such file or directory) [_LOG_LEVEL_FATAL 21:10:18.614219] [Vte-2.90] vte_pty_get_fd: assertion 'VTE_IS_PTY(pty)' failed [_LOG_LEVEL_FATAL 21:10:18.614265] PantheonTerminal will not function properly. Hangup

Launchpad Details: #LPC Apoorv Khurasia - 2016-02-22 13:19:56 +0000

elementaryBot avatar Apr 26 '17 17:04 elementaryBot

Sorry to be a bit dim, but usermod -s what? I'm having the same problem. Learned the command usermod from your post.

Launchpad Details: #LPC Joseph Hundley - 2016-06-27 01:14:21 +0000

elementaryBot avatar Apr 26 '17 17:04 elementaryBot

Confirmed because of Joseph's reply.

Launchpad Details: #LPC Zisu Andrei - 2016-06-27 07:32:49 +0000

elementaryBot avatar Apr 26 '17 17:04 elementaryBot

To answer my own question: usermod -s bash myusername seems to have fixed the issue in my case.

Launchpad Details: #LPC Joseph Hundley - 2016-07-07 20:26:18 +0000

elementaryBot avatar Apr 26 '17 17:04 elementaryBot

I'm seeing a similar issue when setting the shell setting to a command with arguments (e.g. gsettings set io.elementary.terminal.settings shell 'env tmux'). Terminal is stuck displaying only the cursor, and closing it crashes plasmashell. I'm using Terminal 5.4.0 with KDE 5.64.0 on Void Linux.

AluisioASG avatar Dec 09 '19 15:12 AluisioASG