KDE: Breaking the Network Barrier 475
comforteagle writes "In this month's KDE: From the Source, entitled Breaking the Network Barrier George Staikos takes us on a walk-through of KDE's desktop networking protocol handlers in the vein of sftp:// webdav:// and a few really nifty ones I wasn't aware of like info:/ perldoc:/ and tar:/. The entire KDE desktop environment is decked out like this, and as George puts it, 'Microsoft Windows and Mac OS X have a long way to go to catch up with the robust, transparent functionality that KDE has provided since version 2.0.'"
What a relief. (Score:5, Funny)
a walk-through of KDE's desktop networking protocol handlers in the vein of sftp:// webdav:// and a few really nifty ones I wasn't aware of like info:/ perldoc:/ and tar:/
Good thing the Christmas Island people have made it safe for the goatse:/ handler.
Re:What a relief. (Score:5, Funny)
Re:What a relief. (Score:5, Informative)
Re:What a relief. (Score:4, Funny)
Re:What a relief. (Score:3, Funny)
Re:What a relief. (Score:3, Funny)
Marketspeak (Score:3, Insightful)
I'm sorry, but to me that bit just reduced a potentially informative article to yet another trivial Slashvertisement.
Re:Marketspeak (Score:5, Insightful)
Perhaps you should just read the article and not pay attention to the slashblurb? Whether it's Slashvertising or not, it's still interesting.
Re:Marketspeak (Score:3, Insightful)
Re:Marketspeak (Score:5, Informative)
The useful thing is for example:
- Writing a webpage in Quanta and uploading it directly to your webserver simply by typing ftp://blahblah in the file save dialog.
- Streaming your movios from an smb share directly to Kaffeine without needing to use smbmount or anything similar. Or stream directly from http or ftp or ssh servers
- Opening an mp3 song from an audio CD. You simply type audiocd:// in the file open dialog and you'll be able to find a virtual mp3 on there. You open it from amaroK and you get an mp3 encoded on the fly. OK, not the most useful usage and not sure if it works, but you get the drift
The point is, if it works from Konqueror, it works from EVERYWHERE in KDE. Automatically.
Re:Marketspeak (Score:3, Informative)
Basically its an extensible system that allows for any protocol to be used. No one else has that yet.
Re:Marketspeak (Score:3, Informative)
I hope they fix this in Tiger. 10.3 is way better than 10.1 in this respect though.
Kwel (Score:5, Funny)
GNOME compatibility? (Score:2, Informative)
Errr.... security? (Score:3, Insightful)
Re:Errr.... security? (Score:5, Insightful)
Re:Errr.... security? (Score:3, Insightful)
Ok, could be added security to avoid some of this tricks, but now you are in a position of unsafe by default unless you take every possible protection measure.
Re:Errr.... security? (Score:2)
We're not talking about integrating scripting engines or even anything that would follow links to other sources. Just plain old accessing files in any location with any program as if they were locally stored.
Re:Errr.... security? (Score:3, Informative)
In a word, NO. (Score:3, Insightful)
kde is pretty good, but... (Score:2, Insightful)
The one thing that I do not like about it, is how long it takes to boot. Windows (and probably mac, never really used it) have linux/kde beat for loading times. I really wish there was a distro that could integrate kde into the booting process rather then boot linux then kde - like back in the dos/win days...
Re:kde is pretty good, but... (Score:2)
Re:kde is pretty good, but... (Score:2)
Re:kde is pretty good, but... (Score:2)
Combining your messages:
My P3/600, 128MB ram ... takes over 3 minutes to boot Windows '98 into a viewable state
If that's the case, you've either seriously messed up your computer with spyware and viruses, tried loading a thousand programs at boot, or you've got a nasty hardware problem, like a failing drive or defective memory. Seriously, there's no reason why Win98 should be taking that long to boot up.
I just finished cleaning up my sister's Win98 machine, which is a P2-233 with 64MB of memory, and i
Re:kde is pretty good, but... (Score:2, Interesting)
the stability advantage (Score:2)
Re:kde is pretty good, but... (Score:2)
(shrug) I usually boot my linux boxes every year or so, and never really thought about booting times being a problem... If you really want a fast boot, there is a linux bios project that allows a system to come from a powered off state to "ready for login" in a few seconds...
User friendliness is still the issue (Score:3, Insightful)
And the entire Windows OS is decked out with enough user friendliness for most people to use, and, as I put it, 'KDE has a long way to go to catchup with the userfriendliness of Mac OSX and Windows.
Windows, as much as everyone hates it, is still more user friendly than KDE. If they'd spend more time on user friendliness and less on robust (aka confusing, complex) features, they'd find more people willing to try it out.
Re:User friendliness is still the issue (Score:2, Insightful)
Re:User friendliness is still the issue (Score:3, Insightful)
(See how easy that is? How is this "Insightful"?)
Re:User friendliness is still the issue (Score:5, Insightful)
Let's not even get into the illogical nonsense which Windows fans still defend as user-friendly. For example, if I minimise a program, there are THREE different places it can go. It can go to the taskbar (the only LOGICAL place), it can go to the system tray, or it can be minimised to one of the application launch buttons on the panels. Now how the hell is this friendly and useful, when I have to thing three times before finding my minimised program? Windows usability is SERIOUSLY overrated, get over it. Use KDE for a while and when you get used to it, you will see that it's a much more usable environment.
Re:What a lame response (Score:3, Interesting)
Re:User friendliness is still the issue (Score:2)
Actually, I find KDE a whole lot more friendly than windows. It might be because I have been using it for a very long time, but when I go back to windows, I simply don't understand how/where the options and controls are located.
Compare a usable windows machine (with applications actually installed so you can do your job) with a stock KDE install (where you can still do your job). The menus have a much better organisation in KDE. Graphic-related programs are grouped together, and so are multimedia, devel
Don't forget DCOP (Score:5, Interesting)
Also worth noting however, is the DCOP [ibm.com] system integrated into KDE. The protocol handlers and DCOP can and do make a powerful combination.
MacOS _should_ have these things. (Score:5, Interesting)
The network transparency of KDE is brilliant. I'm not sure where the holdup for OSX is, but I would kill to be able to open a location with cmd-k, fish://user@myhost
I suspect that for Apple to add these bits would require some OS level work as well as some finder work. I hope they'd take that opportunity to update the finder to be a cocoa application. (As a side note, the Finder continues to bother me. My Mac savvy friends and I joke that the Finder, Mail.app, and Quicktime teams are Microsoft moles trying to take Apple down from the inside).
Anyone have any speculation as to why Apple hasn't already done some of the truly nifty network protocols? They've already got a finder view for FTP (which, unfortunately is dog-slow). Still, Apple has proven itself as a very agile software company. They've got a track record for adding features correctly and quickly, but the lack of an SSH handler is baffling to me.
-Peter
Re:MacOS _should_ have these things. (Score:2)
Re:MacOS _should_ have these things. (Score:5, Informative)
FUSE KIO Gateway (Score:3, Informative)
Not necessarily.....
http://kde.ground.cz/tiki-index.php?page=KIO+Fu
Re:MacOS _should_ have these things. (Score:3, Insightful)
If you mean the kernel VFS layer, then Apple is not doing it right: this sort of functionality does not belong in the kernel. And Apple has not even managed to make the Carbon and Cocoa views of the world entirely consistent.
KDE's I/O slaves are not real filesystems and are not accessible by all applications.
True, and that is bad. But there is a middle ground between KDE's pi
Should KDE implement OS features? (Score:4, Interesting)
In my mind there are two ways to look at it. You've presented one way: KDE must have this feature, and if the OSes won't provide it, then KDE must provide it in some suboptimal way.
The alternate approach is to say that mounting a fish or whatever is a feature that belongs in the OS, and if a particular OS supports it, then KDE will get that for free. If an OS doesn't support it, then KDE won't have that feature when running on that OS.
Re:MacOS _should_ have these things. (Score:2)
Re:RTFM- there's no "holdup", it's done it since 1 (Score:4, Informative)
SSH+SCP would be really nice. fish:// on the other hand, is shear brilliance. It uses Perl on the server side to do some things that are not possible with just SSH+SCP. Those are great fallbacks, but fish:// is innovative. But, I'd be happy with just SSH+SCP. As far as I can tell, it doesn't exist in OSX.
This brings me to another annoyance with OSX: It doesn't tell you when it doesn't know about a protocol. I can tell my OS X 10.3 machine to connect to a server. For a URL I type in "bogusprotocol://foo@foo.foo". The Finder tells me, "Connection Failed. No response from the server. Please try again."
WTF? I'd prefer something like, "You moron, you've just typed in a protocol name that doesn't exist." Please don't say, "Sorry, but we couldn't connect to this perfectly valid URL because the host wasn't available."
-Peter
Pretty slick (Score:5, Insightful)
Being able to do all of these things from a web browser is definitely a nice parlor trick, but in reality it's not a very easy way to use a computer. The real power of these protocol handlers is unleashed when they're used within various KDE applications. Any of these protocols can be used from the KDE file dialog, allowing files to be opened from or saved to any protocol!
I must say, as much as I don't really like KDE, that's really slick, and potentially very useful. Nice job guys.
(I'll even withold bashing and pro-gnome comments for the sake of sanity)
Re:Pretty slick (Score:2)
I might not understand what you're trying to say, but that's the whole point of kioslaves. You simply type ftp://user@host/blah/blah into any KDE file save dialog and KDE does the rest for you.
Re:Pretty slick (Score:4, Informative)
Re:Pretty slick (Score:2)
What are you talking about? I can do "fish://ssh_alias_for_some_server"[*] in the directory edit field, press Enter, get a nice dialog for password, browse to the file I need in the Open dialog and open it.
[*] ssh host al
OS X has a long way to go to catch up? (Score:2, Interesting)
useless protocols? (Score:4, Informative)
Re:useless protocols? (Score:4, Informative)
The key advantage of KDE's IOSlaves over protocol handlers in Windows is that in KDE they are transparent and available to every application. This is not the case in Windows or OSX. Gnome-VFS does have this advantage as well, but is nowhere near as extensive.
Old Unix philosophy (Score:5, Interesting)
Correct me if I'm wrong, but wouldn't the old way of doing this be something like
What was the reason for not implementing these as devices?
Re:Old Unix philosophy (Score:2, Informative)
In fact there is a module for the FUSE system that allows you to use the KDE plugins in the way you suggest.
Re:Old Unix philosophy (Score:4, Informative)
Because KDE is a cross platform desktop, and devices are too tightly tied to a specific kernel. A Linux device doesn't help a FreeBSD, Solaris or AIX user.
Microsoft Doesn't Need to Catch Up (Score:3, Insightful)
...yet.
Microsoft won't see any need to add new features as long as it's users don't find out, and it's market share remains 90%-ish.
Once it DOES feel threatened though, it'll pour resources and add all the features to it's OS that it thinks will maintain it's dominance. (think Mac/Windows, Netscape/IE, Java/C#).
But it'll probably ultimately fail this time. I'm a Windows fan, but I'm realistic: Linux will win in the long run.
wrong layer (Score:4, Interesting)
can one "cat perldoc://someuri/perldoc1" ?
if not then it is at the wrong layer to be "transparent"
plan's approach of a unified file system approach is far more transparent
a daemon runs and serves the appropriate files in the namespace as regular filenames
cat
grep bunny
etc.
Re:wrong layer (Score:3, Funny)
Re:wrong layer (Score:2)
Now, as you may or not recall, a couple months ago there was a giant flamewar on the Linux kernel mailing list about Reiser4, files-as-directories, plugins, and all the stuff that would make such things transparent at the filesystem level, and the net result was, "it's not going in right now."
KDE programmers aren't kernel hackers, a
Re:wrong layer (Score:3, Interesting)
if not then it is at the wrong layer to be "transparent"
plan's approach of a unified file system approach is far more transparent
a daemon runs and serves the appropriate files in the namespace as regular filenames
cat
grep bunny
etc.
Sure, no problem. [ground.cz] It's still a work-in-progress, though.
Re:wrong layer (Score:3, Informative)
I don't see why this has to be at the kernel level - why not just make programs that use kioslave functions instead of open() (or whatever)? Not only that, but some protocols are very slow or don't work with directories well, and wouldn't be sutable to be treated like local folders. Putting this in the kernel is asking for a lot more root (and not just user) exploits. And finally, everything that uses tradi
Difference from OSX ... (Score:5, Interesting)
But the downside is that these 'fancy' network filesystems are comparatively sparse relative to KDEs. And we're still waiting for, oh, say, webdav over SSL support (making it actually worthwhile for an intranet filesystem solution).
IF OSX could have retainted the 'filesystem drivers as userspace processes' mantra of the microkernel design philosophy, then we could have the best of both worlds. Especially if we could retain, say, HPFS, FFS, etc. as kernel resident drivers for efficency .
does gnome do this? (Score:2)
I just recently installed "ubuntu" (gnome 2.6).. which I must say is a really nice looking slim UI/theme. All around good distro.
But does gnome have integrated webdav support? I would think they'd be on the ball to mimic any lil kde features that pop-up.
--Zaq
Re:does gnome do this? (Score:2)
apparently in the filebrowser "Nautilus" there is a connect to server option which supports webdav.
for fun, in OSX (Score:2)
x-man-page://some_command
where some_command is the command you want to see. I get a man page in a terminal. In fact for any given URL registered on my box, I get the Right Thing(tm) happening.
I use the Default App pref pane (http://www.rubicode.com/Software/) and thus have pretty fine control over what happens when various URLs are clicked/activated. Well, I can't make new ones, something about the craptacular IE vestiges that control URLs by default, maybe, I'm not s
Wha? (Score:2, Informative)
Like what kind of catching up? Like this?
KDE on Mac OS X [kde.org]
Don't be a hater (Score:5, Interesting)
You don't really appreciate it until you use it and then forced to work without it. I present a real world example: a colleague wants some help with the IE CSS scrollbar colors. I open up KWrite, the "simple" text editor, select "Open" from the "File" and plug in the FTP url, with embedded password and all, into the open file dialog. A half a second later I was browsing their directory structure point-and-click in the open file dialog. I find the ".css" file and open it in the editor. I then make my simple changes and hit CTRL-S. The file was saved and uploaded back onto the web server in one simple keystroke combo. And that was it. Mind you all of this was done in KDE's most trivial of text editors and this feature is part of the desktop architecture meaning all KDE apps can employ this feature.
Try doing something like that with the default install of Windows/MacOSX/Be/whathaveyou. And that was the simplest of examples of the network transparency within KDE.
And that's just the network transparency aspect of it. The KIO architecture allows for some really amazing features on the local side as well. If you don't already know about the audiocd:/ slave then look it up or even use it. It will blow your mind.
Don't just take my word for it. Try it before you bash it. Please.
Re:Don't be a hater (Score:5, Informative)
Yes, the Amiga. Just put the file "ftp.device" in DEVS:, mount FTP: and every single application can now use say ftp://ftp.sunet.se/ as if it was a local disk. ftp.device was written in the early 90s but the backend technology was there in 1986...
Bloat Critics (Score:5, Interesting)
And it works *great* in Amarok, my audio player of choice. I no longer have to keep porting around my mp3 collection: I simply fish to my server and play them from there -- from anywhere. The only downfall, is that I need to force it to go to the next track after it gets to the end of a track, instead of automatically doing so, but it's a minor compared to the above ease-of-use.
But regular people don't think this way (Score:3, Insightful)
Saying Windows and MacOS has to catch up implies that these are feature people want, or would want if given the option. I think treating compressed files like folders like they already do is more intuitive and makes more sense. I think they got a little carried away with this.
Re:But regular people don't think this way (Score:3, Informative)
Microsoft has to catch up? (Score:4, Informative)
mk-its: is used in the HTML help system, and ms-help: is used with the MSDN, and there are probably a few others that most people have never heard of.
But like I said, why is it up to MS? Anyone in the open source community could write APPs for Windows to add this kind of functionality if there were a demand for it, so I suspect there's little or no demand for it.
Put it in the shell? (Score:2, Flamebait)
needs to be standardized and broken out (Score:2)
What is needed is for the Gnome, KDE, and libc developers to get together and talk about how to unify this functionality, break it out c
Wow, you're fast! (Score:4, Insightful)
KDE is pretty damned easy to use and consistent too, it's just that not all applications are written in QT, just as not all Gnome apps are written in GTK. So, you get some apps that don't fall in line with the look and feel of the rest of the OS.
So is the way of the Linux desktop right now, and you can't single out KDE for that.
Re:Wow, you're fast! (Score:4, Insightful)
I don't see how this commentary is "garbage" There is a real problem with consistency and polish on the linux desktop, it's ugly and clunky compared to OS X or even windows.
" it's just that not all applications are written in QT, just as not all Gnome apps are written in GTK. So, you get some apps that don't fall in line with the look and feel of the rest of the OS. "
So you're agreeing with me, but not with where I am placing the blame? Fair enough, maybe blaming KDE isn't fair, but it's still a huge problem.
Re:Wow, you're fast! (Score:3, Insightful)
Maybe compared to OS X, but certainly not in comparison to Windows. Both GNOME and KDE are more consistent than either OS X or Windows, and in terms of usability, GNOME is fairly close to OS X. There is a reason for this --- GNOME emulates the MacOS classic HIG. In terms of usability, GNOME is far superior to Windows.
Re:Wow, you're fast! (Score:2)
Maybe the OS itself, but not the way that applications run on it. OS X has done a really nice job of making sure that applications written in cocoa and carbon behave the same. (it's been worse in the past, and gotten much better.) Maybe it's a testament to the Mac application developers, but linux apps on GNOME and KDE are nothing if not inconsistent with each other and the OS.
Re:Wow, you're fast! (Score:3, Insightful)
Re:Wow, you're fast! (Score:3, Interesting)
Re:Wow, you're fast! (Score:2)
Re:Wow, you're fast! (Score:3, Interesting)
1) Visual consistency. Within KDE, I only use KDE apps, and in GNOME, I only use GNOME apps. As a result, all my apps look the same. They theme the same, use the same color scheme, etc. This is not true in Windows. The major Microsoft apps use different toolkits, so Visual Studio.NET doesn't look like Internet Explorer, and neither look like Office XP.
2) UI simplicity. In GNOME, the UI is very simple and streamlined. This is a direct result of the MacOS-influenced GNOME HIG. For
You missed the point. (Score:3, Insightful)
I admit, you don't sound quite as unresonable as some Zealots, but you did post that just the same. The article nor slashdot post wasn't about usability, it was about resource transparency.
And to proclaim that KDE is "ugly and clunky compared to OS X or even windows" - such an objective thing say that you can't just preach it like it's fact. Personally, I feel too confined in OS X. It's okay I guess, and I
Re:uh huh. (Score:4, Interesting)
Don't start going about MacOS-X usability until you really look into it a lot deeper. They went all out for high 'walk-up-and-use' value, but not so much for actual usability. Many of the OS-X choices detracted significantly from usability that was present in earlier versions, giving apparent usability rather than actual usability.
This isn't to say their choice was wrong, but they were targetting new users and home users, not pro users. In very many ways, KDE is far more usable than OS-X, it mostly just depends on how talented the user is and what they are trying to do.
Re:uh huh. (Score:3, Insightful)
Here they are
most of "Connect to server" server connections don't work, example ftp:// one version asks for password, but latest OSX patch does not. Copying files doesn't work as it should.
Network interface was simple. Chooser and that was it. Now there is trashed all over the place. Network in finder supporting SMB only???
Start menu has gone bad since OSX.
Mail has fatal flaws. (Besides its fatal unusability)
You can't control with keys on dialogs or popdowns. (Buttons I mean)
Theme
Re:What's the difference? (Score:5, Informative)
The KDE feature discussed here is a compatibility layer that allows users to treat a files located elsewhere as if it is on the local disk.
Instead of having to use sftp to download a file from a site, or wget to download a file from the webserver or even evolution to download a file from the mail server, you can just use one common interface for all files reguardless of their storage or access method.
This means a tighter and more consistent user experience.
SO there!
Re:What's the difference? (Score:2)
Re:What's the difference? (Score:2)
Re:What's the difference? (Score:2)
Because I can now use it from all my applications? Like Mozilla, bash, PINE, Java Swing applications, in the save-file dialog box of any video game, my Perl scripts, and everywhere else?
No? Well, then we have a very different idea what "consistent" means.
Re:What's the difference? (Score:3, Informative)
The only way to get this across every single application is to include it at the filesystem level. First, the KDE developers aren't kernel hackers, so they probably don't have the expertise to write such an extension.
Second, even if they did, it would probably incite a giant debate in the Linux kernel mailing list when they presented it (like with Reiser4), and the net result would be that it wouldn't be in anyway. So it'd be a bunch of patches and you'd have to use a special
Re:What's the difference? (Score:3, Informative)
But do they have the expertise to write a user-mode NFS server that uses the protocol in question as the back end? There'd still be some platform-dependent crap to do the NFS mount (probably using a port other than 2049, if the platform's NFS client supports that), and there might be some fil
Re:What's the difference? (Score:2)
This is *not* about file extensions or otherwise (Unix has done this right since day one, which is why you don't need to put
Windows and OSX are a long way from this. They just about understand http, and even then on at the application level.
Re:What's the difference? (Score:3, Insightful)
Correct, although...
...that doesn't mean that suffixes aren't needed at all on UN*X - try calling a C source file "foo.f" and see how eager GCC, for example, is to compile it:
At the desktop GUI level, some UN*X desktops, suc
Re:What's the difference? (Score:2)
I was under the impression that KDE used something similar to Gnome's VFS. Meaning it doesn't launch a webdav client when you open a webdav:// url, it uses a VFS module to do it.
This is very different than what you are talking about. This allows applications to open and save files to webdav, afs://, smb://, ftp:// just like any other file.
For i
Re:What's the difference? (Score:2)
Can you open the save dialog in MS Word and save your document on a remote ssh server via the fish protocol without doing anything special? Who's playing catchup again, huh?
Re:What's the difference? (Score:2)
Re:Robust? (Score:2)
I've looked at a lot of code in my time and I'd rate 1% of it as actually 'good'.
It's particularly tragic when people 'update' perfectly good apps with a piece of unmanageable spagetti.. I tend to just keep my distance when that happens.
Re:Robust? (Score:3, Insightful)
Re:A little frightening. (Score:2)
Re:Crackhead of the year (Score:3, Interesting)
Re:Windows has had since since at least 98SE (Score:3, Insightful)
Re:Oh wow (Score:5, Interesting)
Re:bleh:// (Score:4, Informative)
...and ctrl-x probably works in a lot of them as well.
And, given that Qt switched in Qt 3 to the closest thing to a standard way of handling the PRIMARY and CLIPBOARD selections in X [freedesktop.org], and that a number of other toolkits, including GTK+, have always done that, it would probably work even between applications using different toolkits in most if not all cases.
I.e., bitching about copy-and-paste in X11 is getting a bit old, at least for complaints about it not working at all, even for text. Perhaps for non-text formats there needs to be a bit more work in the toolkits and applications, but, as I remember, the selections mechanism in the ICCCM does have a mechanism to register data types and to have a recipient of data find out the types in which data in a selection is available, so they can choose the "best" type (e.g., it might be available as rich text or plain text, so that a word processor would fetch the rich-text version but a terminal window would fetch the plain-text version).