Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug while starting my qterminal in a mounted filesystem #1064

Open
KZ25T opened this issue Jul 25, 2023 · 5 comments
Open

Bug while starting my qterminal in a mounted filesystem #1064

KZ25T opened this issue Jul 25, 2023 · 5 comments
Labels

Comments

@KZ25T
Copy link

KZ25T commented Jul 25, 2023

Apologize at first
I am not a native English speaker and please forgive me for my mistakes in English. And it's my first time to report a bug on Github Issue, many mistakes may happen even if I have read some of the manuals and illustrations but not all. If it's useless, please forgive me and close it.

Expected and current Behavior

I'm using qterminal in my kali linux:

$ uname -sr
Linux 6.3.0-kali1-amd64
$ qterminal --version
1.2.0

and my desktop is xfce4.

If a filesystem is mounted like ext4, ntfs or fat16 on /mnt/mountpoint, then I open that path in thunar (file and folder manager in xfce) and start qterminal by pushing the right button of the mouse and click open terminal here, then the begining working path of my shell(zsh) is /mnt/mountpoint. Then I close my thunar and command cd .. in qterminal to leave that mounted filesystem and try to unmount it:

$ sudo unmount /mnt/mountpoint
umount: /mnt/mountpoint: target is busy.

I can only unmount just at when I close my qterminal and start a new one. What I expected is to be able to unmount when my just changed my working path to leave the filesystem, even if my qterminal started firstly in that filesystem.

I have not read the source code in this repository and I cannot give a way to fix it. I will be appreciate if someone can fix it.

System Information

  • QTerminal version: 1.2.0
  • Distribution & Version: kali linux
  • Kernel: 6.3.0-kali1-amd64
  • Qt Version: qt5 1.5
@stefonarch
Copy link
Member

stefonarch commented Jul 25, 2023

Confirming here in arch with QTerminal 1.3.
Whatever directory is switched to in this terminal the mount point isn't freed.

@stefonarch
Copy link
Member

I noticed that also any new tab opened will open in the mounted directory (unchecked "open in current directory") as it would be the home dir where it usually opens with this setting unchecked.

@tsujan
Copy link
Member

tsujan commented Dec 14, 2024

My wild guess is that the initial working directory remains with the shell process “forever”, unless the process is finished by closing its corresponding tab or window.

@stefonarch
Copy link
Member

Maybe there's nothing to do about it: xterm, kitty and konsole have the same issue.

@tsujan
Copy link
Member

tsujan commented Dec 15, 2024

Maybe there's nothing to do about it

Yes, I checked the code and didn't find the cause in it. Perhaps it's how the shell process works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants