Version: 0.9.5 (using KDE KDE 3.97.0)
Installed from: Ubuntu Packages
first of all thank you for your work on dolphin (it's becoming a killer app) and anybody else involved on kde 4,
Now, my wish:
I know that we already can unmount removable drives with right-click->unmount, but there should be an easier way to do that instead of right-clicking, think of gwenview's dolphin kpart, onMouseOver() of an image you are greeted with three options on a nice black and rounded background (fullscreen and to rotated image on the left or on the right), in dolphins case regarding removable drives we'd be greeted with: "eject/unmount/remove, delete and edit" lets say,
maybe this mouse-over thing could be applied on all items of Places Panel.
Created attachment 22659 [details]
removing drives, mockup
I made a mockup of my idea, to make my wish more visible for you =)
Nice to hear that you like Dolphin :-) Regarding your wish I've added Kevin Ottens to CC, as he is the maintainer of the places panel. I personally like the idea judging from the mockup, let's see what we can do in future...
Will hopefully be for 4.1.
Any news on this? Plans implementing it in 4.4?
Does it make sense from a usability POV? Or is this a no-go?
Well, will hopefully be implemented. I think it's an interesting idea, it's quite some work to get it right though...
*** Bug 255790 has been marked as a duplicate of this bug. ***
*** Bug 383678 has been marked as a duplicate of this bug. ***
*** Bug 377259 has been marked as a duplicate of this bug. ***
Definitely. My vote goes to adding a little eject symbol next to mounted volumes in Dolphin's Places panel.
*** Bug 305050 has been marked as a duplicate of this bug. ***
this bug 154499 is ready fixed? if yesthis bug will be close..right?
No, that patch just added the Removable Devices section to file dialogs. We still don't have an eject button there, which is what this bug tracks.
I started looking into this (first dive into KDE code) and it looks like the PlacesItem class is only capable of displaying one icon, which renders on the left, and the text, which renders on the right. Furthermore, it seems like the whole PlacesItem is clicked and activated as a unit. To implement this, we'll have to add the option for PlacesItem to render a second icon that is activated separately from the main icon/text.
On the plus side, all of the code to unmount the drive and enable/disable the icon is already present for the context menu, and easy to pull out.
That's very cool, Jason. Let me know if you run into any roadblocks along the way! I'd love to help.
*** Bug 421222 has been marked as a duplicate of this bug. ***
*** Bug 425149 has been marked as a duplicate of this bug. ***
Changed to dolphin as a product. Seems to make more sense to me.
regarding where this bug report should live, let me provide a bit of background.
The actual model for the paces panel lives in KIO, but there are two implementations of its visual presentation: one in KIO, which you can see in the file dialog, Gwenview, Kate, and many other places; and another one specific to Dolphin.
So with the current state of affairs, we'd technically need two bug reports: one tracking implementing this in the general KIO version, and another one tracking implementing it just for Dolphin.
However what we ideally should do is port Dolphin to use the KIO implementation so that all the code is centralized in one place and we don't need to implement the same feature in two places (KIO and Dolphin. See https://phabricator.kde.org/T9795. Then we can implement the eject button in KIO once and all apps that show a Places panel will get it for free.
Kai started working on doing this last year: https://phabricator.kde.org/D26067
Unfortunately the work seems to have stalled recently. :( I think it would be good to get that going again and move this bug back to KIO so that the feature can be implemented there, and then once Kai's patch gets merged, Dolphin will get the feature for free. What do you think?
Oh and thanks for all the bug triaging, BTW. :)
Thanks for the explanation. I was unaware of the different implementations of the places panel.
You are right, it probably makes sense to try not to have duplicate code and thus use the already existing implementation also in Dolphin. The only thing I am not sure about is whether it is sensible to have unmount buttons also in the other contexts where the places panel is used in. But I guess that could also maybe be circumvented with some sort of switch dependent on the context, if this should turn out to be a problem.
Cool, glad to be able to provide that background.
Are you okay with moving this back to KIO?
(In reply to Nate Graham from comment #20)
> Cool, glad to be able to provide that background.
> Are you okay with moving this back to KIO?
I don't know what the right place would be. Basically this issue wants to see the functionality integrated in Dolphin and doesn't really care how this is achieved technically. To get this done technically in the proposed way, one would need actually two issues, one for integrating this in KIO and one to use KIO places in Dolphin. So I think one could maybe add those two issues (if not already there) and link them to this one, with having KIO places in Dolphin as a dependency for this one. This has the benefit that there are open issue for every involved product, so the awareness for this on the relevant sides might be higher. Also it offers some more granularity and modularity.
Finally some progress!
* The KIO enablement for porting back Dolphin to KFilePlacesView has just been merged
* The Dolphin patch is still pending but should be safe to go in in a few days
* and now there's a patch to add a little eject icon :) https://invent.kde.org/frameworks/kio/-/merge_requests/697
Git commit b59404eb70469195732dd31a9ac0f94728a6d942 by Kai Uwe Broulik.
Committed on 10/01/2022 at 13:14.
Pushed by broulik into branch 'master'.
[KFilePlacesView] Add inline eject button
M +142 -12 src/filewidgets/kfileplacesview.cpp
M +72 -8 src/filewidgets/kfileplacesview_p.h