atom-open-terminal-here icon indicating copy to clipboard operation
atom-open-terminal-here copied to clipboard

KDE Konsole does not respect the current working directory when executing x-terminal-emulator (edited)

Open fcojgodoy opened this issue 8 years ago • 7 comments

Open the terminal in the user folder (no the indicated folder) when a terminal window is already open.

fcojgodoy avatar Dec 11 '16 21:12 fcojgodoy

Hi @fcojgodoy, could you explain your use case a little further? What's the purpose of opening up the terminal in the user folder via this extension in contrast to simply opening the terminal, which should use the user folder as default directory?

blueimp avatar Dec 12 '16 14:12 blueimp

Sorry, point to point:

  1. I have a terminal opened.
  2. I open Atom, do right click over a folder in tree view and click on "Open terminal here"
  3. A terminal is open on /home/user

The behaviour is correct just when:

  1. Any terminal is open.
  2. I open Atom, do right click over a folder in tree view and click on "Open terminal here".
  3. A terminal is open in the right folder.

Kubuntu 16.10 Konsole 16.04.3 Atom 1.10.2

fcojgodoy avatar Dec 12 '16 21:12 fcojgodoy

Ah, sorry I misunderstood you there. Thanks for the bug report and the environment info, I'll look into it.

blueimp avatar Dec 14 '16 18:12 blueimp

Could you please execute the following in a shell (if possible not Konsole, but another desktop shell):

cd /tmp
x-terminal-emulator

Could you report back what happens in the two instances you described, once with Konsole open and once without Konsole open.

The command above (x-terminal-emulator) is exactly what get's executed on Linux by this atom package, with the given directory as context.

blueimp avatar Dec 14 '16 19:12 blueimp

Case 1:

  • Konsole is open
  • In Qterminal I execute cd /tmp and x-terminal-emulator
  • Konsole is open in /tmp

Case 2:

  • Konsole is close
  • In Qterminal I execute cd /tmp and x-terminal-emulator
  • Konsole is open in /tmp

Case 3:

  • In Open-terminal-here settings change the command for 'qterminal'
  • All is OK. When qterminal is open and when it not, the opened folder is the correct!

Then, the problem is in Konsole?

(I'm sorry for my English. If you do not understand something ask it without problems)

fcojgodoy avatar Dec 16 '16 08:12 fcojgodoy

Thanks for testing this @fcojgodoy.

And yes, unfortunately it looks like this is an issue with Konsole, seems like it ignores the context directory when already opened.

blueimp avatar Dec 16 '16 12:12 blueimp

Ok, thank you. I'll ask the guys at Konsole.

fcojgodoy avatar Dec 16 '16 12:12 fcojgodoy