Bug 476027 - Unable to unmount storage device when viewed with Terminal panel open.
Summary: Unable to unmount storage device when viewed with Terminal panel open.
Status: CONFIRMED
Alias: None
Product: dolphin
Classification: Applications
Component: panels: terminal (show other bugs)
Version: 23.08.1
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-24 02:09 UTC by Roke Julian Lockhart Beedell
Modified: 2025-03-04 22:18 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Demonstration screenshot (for `#c0`). (149.58 KB, image/png)
2025-02-09 15:36 UTC, Roke Julian Lockhart Beedell
Details
Reproduction screencast (for `#c0`). (254.11 KB, video/webm)
2025-02-09 15:38 UTC, Roke Julian Lockhart Beedell
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Roke Julian Lockhart Beedell 2023-10-24 02:09:41 UTC
STEPS TO REPRODUCE
1.  Visit device with Terminal panel enabled and `bash` configured as default shell using
    ```.sh
    chsh -s $(command -v bash)
    ```
2. Attempt to unmount the visited disk.

OBSERVED RESULT
> One or more files on this device are opened in application "bash".

EXPECTED RESULT
I should be able to unmount the storage device.

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20231022
KDE Plasma Version: 5.27.8
KDE Frameworks Version: 5.111.0
Qt Version: 5.15.11
Kernel Version: 6.5.6-1-default (64-bit)
Graphics Platform: X11
Processors: 12 × AMD Ryzen 5 7600X 6-Core Processor
Memory: 30.5 GiB of RAM
Graphics Processor: AMD Radeon RX 5700
Manufacturer: ASRock
Product Name: X670E Taichi

ADDITIONAL INFORMATION
https://forums.opensuse.org/t/why-is-one-my-external-drives-mounted-at-tmp-by-default-suddenly/170048/2
Comment 1 Roke Julian Lockhart Beedell 2023-10-24 02:11:26 UTC
Weirdly, trying to reproduce this doesn't work anymore after fixing it once by hiding the Terminal that time. Perhaps, per the aforelinked, the mount path is relevant?
Comment 2 Justin Zobel 2025-02-08 02:12:13 UTC
I am going to assume you meant unmount in the summary.

I have just tested this on Dolphin 24.12.1 and it appears to be fixed, I mounted a disk in Dolphin with the Terminal panel open. It automatically moved to the device as expected. Then I unmounted the device using the eject icon in the places panel and the terminal automatically moved me back to my home directory.

Can you please re-check and see if this issue is still occurring? If it is, please change the status back to REPORTED, otherwise please mark RESOLVED/WORKSFORME.
Comment 3 Roke Julian Lockhart Beedell 2025-02-09 15:35:38 UTC
(In reply to Justin Zobel from comment #2)  
> I am going to assume you meant unmount in the summary.

Likewise. I've changed the title. Thanks.
Comment 4 Roke Julian Lockhart Beedell 2025-02-09 15:36:07 UTC
Created attachment 178094 [details]
Demonstration screenshot (for `#c0`).

(In reply to Justin Zobel from comment #2)  
> I have just tested this on Dolphin 24.12.1 and it appears to be fixed, I mounted a disk in Dolphin with the Terminal panel open. It automatically moved to the device as expected. Then I unmounted the device using the eject icon in the places panel and the terminal automatically moved me back to my home directory.

I can still reproduce this, on a new OS, and fairly new installation thereof.
Comment 5 Roke Julian Lockhart Beedell 2025-02-09 15:37:44 UTC
(In reply to Roke Julian Lockhart Beedell from comment #4)
> I can still reproduce this, on a new OS, and fairly new installation thereof.

Apologies for the mail spam. Forgot to include the new environment information:

1.	~~~sh
	#!/usr/bin/env sh
	kinfo
	~~~

2.	> ~~~YAML
	> Operating System: Fedora Linux 41
	> KDE Plasma Version: 6.2.5
	> KDE Frameworks Version: 6.10.0
	> Qt Version: 6.8.2
	> Kernel Version: 6.12.11-200.fc41.x86_64 (64-bit)
	> Graphics Platform: Wayland
	> Processors: 12 × AMD Ryzen 5 7600X 6-Core Processor
	> Memory: 30.4 GiB of RAM
	> Graphics Processor: AMD Radeon RX 5700
	> ~~~
Comment 6 Roke Julian Lockhart Beedell 2025-02-09 15:38:56 UTC
Created attachment 178095 [details]
Reproduction screencast (for `#c0`).
Comment 7 John 2025-03-04 22:18:22 UTC
I can reproduce this on:
SOFTWARE/OS VERSIONS
Linux (Debian 13 - unstable repository)/KDE Plasma:
KDE Plasma Version: 6.3.2
KDE Frameworks Version: 6.11.0
Qt Version: 6.8.2
Kernel Version: 6.12.17-amd64 (64-bit)
Mesa  Version: 25.0.0-1
Graphics Platform: Wayland
Dolphin: 24.12.2


HARDWARE SPECIFICATIONS
Hardware: Laptop Dell Inspiron 5770 (17" 1080p@60Hz screen)
CPU: Intel® Core™ i5-8250U CPU @ 1.60GHz
GPU 1: Intel® UHD Graphics 620 (main, Vulkan capable)
GPU 2: AMD Radeon R5 M465 Series
RAM: 8 GiB (7.7 GiB usable)

I just mounted a pen drive, navigated to a folder and opened the terminal in it.
Then I minimized the terminal, without ever typing anything in it before.
After the minimization I tried to unmount the pen drive and strangely it refused to do it, showing this message at the top:
"One or more files on this device are open within an application." on a red background.
This message is clearly lying as there were no files opened on that device!
A folder was opened, if we can call opening the terminal in that folder as opening the folder.
And not even an 'ls' or 'pwd' command was made.
I don't think simply opening the terminal in a folder should interrupt the unmount.
If I just open the terminal by itself and navigate to the same folder with the 'cd' command interrupts the unmount too.
Which is also wrong.

This is the second or third time I notice this strange and unexpected behavior.

I think the unmount should work anyway as long as not folders or files are read or written.
If you want you can improve Konsole a bit to show after the unmount a message like:
This folder is not available anymore as the drive was unmounted
Maybe change the background of the path / working directory too.