improve unmounting via media button

30 views
Skip to first unread message

Jan Lepper

unread,
Nov 12, 2009, 8:42:27 AM11/12/09
to krusade...@googlegroups.com
Hi everybody,

I would like to make the unmounting via the media button a bit less
complicated:

At the moment you have to open the media menu -> rightclick on the device ->
umount.
I suggest either to put the unmont command for each mounted medium directly
into the media menu (like in dolpin), or to create an extra unmount menu
which could be opened for example via rightclick on the media button.

What do you think ?

Jan

Frank Schoolmeesters

unread,
Nov 12, 2009, 3:35:17 PM11/12/09
to krusade...@googlegroups.com
Hi Jan,

Identical as Dolphin is probably the best option, so that we get some
KDE consistency.

Thanks and bye,

Frank

Dirk Eschler

unread,
Nov 12, 2009, 4:25:21 PM11/12/09
to krusade...@googlegroups.com

Hi Jan,

can you post a screenshot of Dolphin's media menu? I can't seem to find it. =)

bye,
Dirk

--
Dirk Eschler <esc...@gmail.com>
http://www.krusader.org

Csaba Karai

unread,
Nov 13, 2009, 3:47:03 AM11/13/09
to krusader-devel
Hi Jan,

Imagine, that you are the administrator of a Linux server containing
30 devices (network + hard drive partitions + ...).

1. If you add umount to the Media button, then the list will contain
60 elements!
2. Most of the users have permissions only for umounting CD and pen
drive, so 2 of the umount buttons are OK, and the other 28 are useless
3. As for adding a separate umount menu: you will choose umount from
31 elements, a new popup menu appears containing other 30 elements. Is
it faster than the current one?

The best is to keep media button small and simple.

What can you do?
=======================
Creating a new control:

[ Icon Device_1 (+)]
[ Icon Device_2 (+)]
[ Icon Device_3 (-)]
[ Icon CD_Device_4 (^)(-)]

If you press Icon or the Device name, then the device will be opened.
If you press (+) or (-), then the device will be mounted/unmounted,
and for CD ROM (^) can eject the device.

Implementing this would be a hard stuff, that's why I didn't to that.
You have to create a new Popup menu for MediaButton.

Csaba
> Dirk Eschler <esch...@gmail.com>http://www.krusader.org

Jan Lepper

unread,
Nov 13, 2009, 6:31:14 AM11/13/09
to krusade...@googlegroups.com
Hi Dirk,

well, it's actually the "places" menu.
The unmount option only appears if the currently opened dir is on the device.

Jan

menu.png

Jan Lepper

unread,
Nov 13, 2009, 7:05:22 AM11/13/09
to krusade...@googlegroups.com
Hi Csaba,

Ok, maybe the media button is the wrong place for this anyway.
My motivation was to have a a quick way to unmount removable media - another
way to have this could be an action "unmount removable media", so that you
would only have to hit a shortcut and then select the device from a menu.

Jan

Csaba Karai

unread,
Nov 13, 2009, 7:38:32 AM11/13/09
to krusader-devel
> The unmount option only appears if the currently opened dir is on the device.

That's more logical. I would accept to add 2 new items to media
button: Eject/Unmount if available.
Krusader holds reference on the current directories, so umount
wouldn't work at once.
-> 1st you have to step out from every directory belonging to the
media
-> 2nd umount can be executed.

Thanks,

Csaba
>  menu.png
> 28KViewDownload

Jan Lepper

unread,
Nov 26, 2009, 8:52:47 AM11/26/09
to krusade...@googlegroups.com
Hi,

i now think that it would be best to extend the mount manager a bit to filter
by mount types: (screenshot).

Btw: as Csaba said, it is not possible to unmount if the the currently
opened dir lies on it, because we change the working dir to it - why is this
necessary ?

Jan
mountman.png

Jonas Bähr

unread,
Nov 26, 2009, 3:46:17 PM11/26/09
to krusade...@googlegroups.com
Hi,

Am 26.11.2009 um 14:52 schrieb Jan Lepper:

> Hi,
>
> i now think that it would be best to extend the mount manager a bit
> to filter
> by mount types: (screenshot).
>
> Btw: as Csaba said, it is not possible to unmount if the the
> currently
> opened dir lies on it, because we change the working dir to it

A solution could be to "cd ~" just before the unmount.

> why is this necessary ?

I think this is for the integrated command line. without the cd the
commands you type would not be executed in the dir of the active panel.

bye,
Jonas

>
> Jan
>
> --
>
> You received this message because you are subscribed to the Google
> Groups "krusader-devel" group.
> To post to this group, send email to krusade...@googlegroups.com.
> To unsubscribe from this group, send email to krusader-deve...@googlegroups.com
> .
> For more options, visit this group at http://groups.google.com/group/krusader-devel?hl=en
> .
>
>
> <mountman.png>

Karai Csaba

unread,
Nov 27, 2009, 1:38:13 PM11/27/09
to krusade...@googlegroups.com
Hi,

The reason of keeping reference on a dir:

Krusader was playing with the floppy drive on SuSE 8.x:
- floppy used AUTOFS which automatically umounted the file if it was not
referenced
- the watcher periodically checked whether any file was changed
-> mounted again
- result: the floppy was loud because of the continuous
umounting/mounting, and Krusader was slow...

I know, that noone uses now AUTOFS + floppy, but it's a question if
there are other devices working the same way.

I wouldn't remove the reference, just use cd ~ instead.

Thanks,

Csaba



Jonas B�hr �rta:

Jan Lepper

unread,
Dec 9, 2009, 1:26:26 PM12/9/09
to krusade...@googlegroups.com
On Friday 27 November 2009 19:38:13 Karai Csaba wrote:
> Hi,
>
> The reason of keeping reference on a dir:
>
> Krusader was playing with the floppy drive on SuSE 8.x:
> - floppy used AUTOFS which automatically umounted the file if it was not
> referenced
> - the watcher periodically checked whether any file was changed
> -> mounted again
> - result: the floppy was loud because of the continuous
> umounting/mounting, and Krusader was slow...
>
> I know, that noone uses now AUTOFS + floppy, but it's a question if
> there are other devices working the same way.
>
> I wouldn't remove the reference, just use cd ~ instead.
>
> Thanks,
>
> Csaba
>

Hi Csaba,

thanks for clarifying. Unfortunately cd ~ doesn't help if some other program
tries to unmount.
I think we should make this a configurable option.

Jan
Reply all
Reply to author
Forward
0 new messages