From kde-core-devel Tue Sep 08 19:34:36 2009 From: =?UTF-8?B?UmFmYcWCIE1pxYJlY2tp?= Date: Tue, 08 Sep 2009 19:34:36 +0000 To: kde-core-devel Subject: Re: Mountable devices support in KDE Message-Id: X-MARC-Message: https://marc.info/?l=kde-core-devel&m=125243853028862 2009/9/8 Alexander Neundorf : > On Tuesday 08 September 2009, Rafał Miłecki wrote: >> 2009/9/8 Kevin Ottens : >> > On Tuesday 8 September 2009 11:03:37 Rafał Miłecki wrote: >> >> 2009/9/8 Kevin Ottens : >> >> > On Tuesday 8 September 2009 00:38:28 Rafał Miłecki wrote: >> >> >> 2) Link to something like "media:/sdb1" and change KDE's libs to >> >> >> offer (un)mount also for that. Or maybe insted "media:/" we could >> >> >> just use "/dev/sdb1/"? >> >> > >> >> > For the record: kio media doesn't exist anymore since KDE 4.0. >> >> >> >> I know, I've meant creating something like that. Or maybe just >> >> detecting KUrl starting from media:/ in konq's popupMen? Without real >> >> implementing that protocol? >> > >> > There's likely a solid device behind those mount points. So if you want >> > to do some url tricks, you could craft a URL scheme passing the solid >> > device identifier. Then the popup menu would decode it and use solid to >> > do the mounting or unmounting. >> >> What scheme do you suggest? Do you think >> solid:/id >> will be fine? > > Hmm, not sure. > Just a comment: one thing I didn't like in KDE3 about the media (or system ?) > ioslave was that while you were able to mount devices and navigate them with > KDE programs, it wasn't obvious what their real path in the file system was, > so at least I never knew where they were mounted (and then did a "mount" in a > terminal to actually see it). > > If what you want to do leads to a similar situation this would not be ideal > IMO. No, absolutely not. I didn't like that "mysterious" navigating via media:/. I just need to use some pseudo-protocol to let libkonq know I want it to display popup menu with (un)mount operations. I'm absolutely not going to implement media protocol for browsing anything. -- Rafał Miłecki