diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | 84da08d7b7fcda12c85caeb5a10b4903770a6f69 (patch) | |
tree | 2a6aea76f2dfffb4cc04bb907c4725af94f70e72 /konq-plugins/mediarealfolder/kio_media_realfolder | |
download | tdeaddons-84da08d7b7fcda12c85caeb5a10b4903770a6f69.tar.gz tdeaddons-84da08d7b7fcda12c85caeb5a10b4903770a6f69.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeaddons@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'konq-plugins/mediarealfolder/kio_media_realfolder')
-rwxr-xr-x | konq-plugins/mediarealfolder/kio_media_realfolder | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/konq-plugins/mediarealfolder/kio_media_realfolder b/konq-plugins/mediarealfolder/kio_media_realfolder new file mode 100755 index 0000000..cbb3d06 --- /dev/null +++ b/konq-plugins/mediarealfolder/kio_media_realfolder @@ -0,0 +1,20 @@ +#! /usr/bin/env perl + +use warnings; +use strict; + +my @parts = split(/\//, $ARGV[0]); + +my $medium = $parts[$#parts]; + +open(IN, "-|") || exec "dcop", "kded", "mediamanager", "properties", $medium; +my @prop = <IN>; +close(IN); + +if ($prop[6] =~ /^\//) +{ + my $mountpoint = $prop[6]; + chomp($mountpoint); + exec "kfmclient", "exec", "file://$mountpoint/"; +} + |