diff options
Diffstat (limited to 'konq-plugins/mediarealfolder')
-rw-r--r-- | konq-plugins/mediarealfolder/Makefile.am | 5 | ||||
-rwxr-xr-x | konq-plugins/mediarealfolder/kio_media_realfolder | 20 | ||||
-rw-r--r-- | konq-plugins/mediarealfolder/media_realfolder.desktop | 55 |
3 files changed, 80 insertions, 0 deletions
diff --git a/konq-plugins/mediarealfolder/Makefile.am b/konq-plugins/mediarealfolder/Makefile.am new file mode 100644 index 0000000..76b7287 --- /dev/null +++ b/konq-plugins/mediarealfolder/Makefile.am @@ -0,0 +1,5 @@ +servicesdir = $(kde_datadir)/konqueror/servicemenus +services_DATA = media_realfolder.desktop + +bin_SCRIPTS = kio_media_realfolder + 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/"; +} + diff --git a/konq-plugins/mediarealfolder/media_realfolder.desktop b/konq-plugins/mediarealfolder/media_realfolder.desktop new file mode 100644 index 0000000..9cee0c6 --- /dev/null +++ b/konq-plugins/mediarealfolder/media_realfolder.desktop @@ -0,0 +1,55 @@ +[Desktop Entry] +ServiceTypes=media/cdrom_mounted,media/cdwriter_mounted,media/dvd_mounted,media/floppy5_mounted,media/floppy_mounted,media/hdd_mounted,media/nfs_mounted,media/smb_mounted,media/removable_mounted,media/zip_mounted +Actions=MediaRealFolder +X-KDE-Priority=TopLevel +X-KDE-MediaNotifierHide=true + +[Desktop Action MediaRealFolder] +Name=Open Medium System Folder +Name[bg]=Отваряне на системната директория на носителя +Name[ca]=Obre la carpeta de mitjans del sistema +Name[cs]=Otevřít systémovou složku média +Name[da]=Åbn medium-system-mappen +Name[de]=Systemordner des Mediums öffnen +Name[el]=Άνοιγμα του φακέλου συστήματος του μέσου +Name[eo]=Malfermu mediosisteman dosierujon +Name[es]=Abrir la carpeta del administrador de medios +Name[et]=Ava andmekandja süsteemi kataloog +Name[eu]=Ireki euskarriaren kudeatzailea +Name[fa]=باز کردن پوشۀ سیستم رسانه +Name[fi]=Avaa mediajärjestelmän kansio +Name[fr]=Dossier système d'ouverture de média +Name[fy]=Systeemmap medium iepenje +Name[gl]=Cartafol de Sistema de Médio Aberto +Name[he]=פתח את תיקיית מדיית המערכת +Name[hr]=Otvaranje srednjih mapa sustava +Name[hu]=A médiaanyagok rendszerkönyvtárának megnyitása +Name[is]=Opin miðils kerfismappa +Name[it]=Cartella di sistema per l'apertura di supporti +Name[ja]=メディアシステムフォルダを開く +Name[ka]=მედიუმის სისტემური საქაღალდის გახსნა +Name[kk]=Жүйелік қалтаны ашу +Name[km]=បើកថតប្រព័ន្ធឧបករណ៍ផ្ទុក +Name[mk]=Отвори ја системската папка на медиумот +Name[nb]=Åpne systemmappe for medie +Name[nds]=Systeemorner vun't Medium opmaken +Name[ne]=मध्यम प्रणाली फोल्डर खोल्नुहोस् +Name[nl]=Systeemmap medium openen +Name[nn]=Opna mediesystemmappe +Name[pa]=ਮੀਡੀਅਮ ਸਿਸਟਮ ਫੋਲਡਰ ਖੋਲੋ +Name[pl]=Otwórz folder systemowy mediów +Name[pt]=Abrir a Pasta de Sistema do Dispositivo +Name[pt_BR]=Abrir a Pasta de Mídias do Sistema +Name[ru]=Открыть системную папку +Name[sk]=Otvoriť systémový priečinok médií +Name[sl]=Odpri sistemsko mapo z nosilci +Name[sr]=Отвори системску фасциклу медијума +Name[sr@Latn]=Otvori sistemsku fasciklu medijuma +Name[sv]=Öppna mediumsystemkatalog +Name[tr]=Aygıtın Sistem Dizinini Aç +Name[uk]=Відкрити системну теку носія +Name[vi]=Mở thư mục hệ thống vừa +Name[zh_CN]=打开介质系统文件夹 +Name[zh_TW]=開啟媒體系統資料夾 +Exec=kio_media_realfolder %u + |