-
-
Notifications
You must be signed in to change notification settings - Fork 938
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
gui: fix media eject on linux (#4700) #4701
Conversation
Removable media is not ejected on linux platform Make get_removable_drive_from_path() check if path is a dir or not. Trim last component in latter case only.
THANK YOU! Finally! 😃👍🏻 |
Thank you so much! |
After testing this commit I discovered that this PR unfortunately doesn't resolve #4700, as the removable drive doesn't get unmounted. |
That is may be related to permissions and volumes handling on different machines. @discip, could you please collect some logs?
I have a next output while exporting G-code to a removable media following by ejection of the storage:
|
First of all: Thank you for the almost instant reaction! 👍🏻Unfortunately I'm not on my Linux (Manjaro) machine right now, so I won't be able to test this until later.
|
I've took a brief look into Manjaro removable drive handling and found it is different to one on debian/ubuntu systems I am used to. Could you provide additional details about your distribution (like desktop environment used), so I would install it onto my test machine for debugging? |
Yeah, for sure! It's Manjaro GNOME (x86_64). |
Unfortunately I can't reproduce issue using fresh install of Manjaro GNOME: all works exactly the same as on my Ubuntu machine despite mount points for removable media moved from So I've added extensive logging on debug branch https://github.com/buzzhuzz/OrcaSlicer/tree/dbuzz/debug-orca-pr4701 Could you get debug build at https://github.com/buzzhuzz/OrcaSlicer/actions/runs/8444658594 and give it a try?
Slice some object, save gcode to USB drive/SD card, press eject media, wait few seconds and close Orca. All necessary logs will be collected into |
Will do when I'm home again. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good
Thank you
@SoftFever |
no issues. |
Unfortunately this did't work either. 😞 |
Assuming that you have redacted log replacing your username with the
Could you do more tests on the same build?
|
Everything you predicted works as apparently intended, but I can still access the drive via Nautilus: However if I click the eject symbol, the removable drive disappears. This also works if I use the eject symbol in the taskbar: And in both cases this popup confirms the success of ejecting the drive: |
So good news in this PR is actually working. It looks like some bug or non-consistent behavior within Nautilus. I've just checked on my system and I see the same behavior: drive is listed by Nautilus on side panel even though system log says it is no longer mounted in the system. Never noticed that previously, probably because I rarely use nautilus. |
|
Yes
Correct You could check what happens with the drive by display system-wide log:
With that running in a display corner, run test sequence involving both Orca and Nautilus. |
This is good to go! 😊 |
Removable media is not ejected on linux platform
Make get_removable_drive_from_path() check if path is a dir or not. Trim last component in latter case only.