Inspiration

When I was browsing my flash drive with KDE dolphin on my fresh Arch installation, I suddenly decided to eject the drive. However, my dolphin working directory is still in the flash drive, so when I refresh, I get an error.

What it does

It returns home when I eject removable media while browsing it.

How I built it

I looked through the source tree of KDE dolphin and found the code corresponding to updating the window panel after ejecting removable media. It already checks if the terminal working directory is in the removable media when terminal is open. So I added another condition so that it also checks when terminal is not open.

Challenges I ran into

Looking though unfamiliar code base.

Accomplishments that I'm proud of

I fixed the bug!

What I learned

How Qt and KDE dolphin works.

What's next for KDE dolphin Removable Media Ejection Fix

Update working directory correctly when ejecting an optical disc / internal drive.

Built With

Share this project:

Updates