lxqt / qterminal

A lightweight Qt-based terminal emulator
https://lxqt.github.io
GNU General Public License v2.0
610 stars 154 forks source link

Bug while starting my qterminal in a mounted filesystem #1064

Open KZ25T opened 1 year ago

KZ25T commented 1 year ago

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

stefonarch commented 1 year ago

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