Bug 156442 - Service malformatted error when trying to open files
Summary: Service malformatted error when trying to open files
Status: RESOLVED FIXED
Alias: None
Product: kdelibs
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-23 11:25 UTC by Shinobu Maehara
Modified: 2013-06-01 21:39 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Shinobu Maehara 2008-01-23 11:25:25 UTC
Version:           0.9.5 (using KDE 4.0.0)
Installed from:    MS Windows Binaries
OS:                MS Windows

When I try to open a file, a dialog box shows up asking me with what application I want to open the file. When I choose one, I get error messages like:

Service 'C:/Program Files/KDE/share/applications/kde4/konquerorsu.desktop' is malformatted.

I opened the file to see if it really was malformatted, it looked like this:

[Desktop Entry]
Type=Application
Exec=konqueror --profile filemanagement
X-DocPath=konqueror/index.html
Icon=konqueror
X-KDE-SubstituteUID=true

Name=File Manager - Super User Mode
Name[af]=Lêer Bestuurder - Super Gebruiker Modus
Name[ar]=مدير الملفات - نمط المستخدم الجذري
Name[be]=Кіраўнік файлаў - рэжым адміністратара
Name[bg]=Файлов браузър - администратор
Name[bn]=ফাইল ম্যানেজার - অ্যাডমিনস্ট্রেটর মোড
Name[br]=Merour restroù - Doare gourarveriad
Name[ca]=Gestor de fitxers (mode superusuari)
Name[cs]=Správce souborů - superuživatelský režim
Name[csb]=Menadżer lopków - trib sprôwnika
Name[cy]=Trefnydd Ffeiliau - Modd Defnyddiwr Uwch
Name[da]=Filhåndtering (superbruger-tilstand)
Name[de]=Konqueror (Systemverwaltungsmodus)
Name[el]=Διαχειριστής αρχείων - Λειτουργία ως υπερχρήστης
Name[eo]=Dosieradministrilo (kiel sistemestro)
Name[es]=Gestor de ficheros - modo superusuario
Name[et]=Failihaldur (administraator)
Name[eu]=Fitxategi kudeatzailea (root era)
Name[fa]=مدیر پرونده - حالت ابرکاربر
Name[fi]=Tiedostonhallinta - pääkäyttäjätila
Name[fr]=Konqueror (mode superutilisateur)
Name[fy]=Triembehearder (yn systeembehearmodus)
Name[ga]=Bainisteoir Comhad - Mód Forúsáideora
Name[gl]=Xestor de ficheiros - Modo superusuario
Name[he]=מנהל קבצים - מצב משתמש־על
Name[hi]=फ़ाइल प्रबंधक- सुपर यूजर मोड
Name[hr]=Upravitelj datotekama - za administratora
Name[hu]=Fájlkezelő (rendszergazdai mód)
Name[is]=Skráastjóri (sem kerfisstjóri)
Name[it]=File manager - modalità super utente
Name[ja]=ファイルマネージャ - スーパーユーザモード
Name[ka]=ფაილური მენეჯერი (root-ის პრივილეგიებით)
Name[kk]=Файл менеджері (әкімші құқығымен)
Name[km]=កម្មវិធី​គ្រប់គ្រង​ឯកសារ - របៀប​អ្នក​ប្រើ​ជាន់​ខ្ពស់
Name[ko]=파일 관리자 - 슈퍼유저 모드
Name[lt]=Failų tvarkyklė – super naudotojo veiksena
Name[lv]=Failu pārvaldnieks - superlietotāja režīms
Name[mk]=Менаџер на датотеки - режим root
Name[ms]=Pengurus Fail - Mod Pengguna Super
Name[nb]=Filbehandler – superbrukermodus
Name[nds]=Dateipleger, Systeempleegbedrief
Name[ne]=फाइल प्रबन्धक - सुपर प्रयोगकर्ता मोड
Name[nl]=Bestandsbeheerder (in systeembeheermodus)
Name[nn]=Filhandsamar – Superbrukarmodus
Name[pa]=ਫਾਇਲ ਮੈਨੇਜਰ - ਸੁਪਰ ਯੂਜ਼ਰ ਮੋਡ
Name[pl]=Menedżer plików - tryb administratora
Name[pt]=Gestor de Ficheiros - Modo de Super Utilizador
Name[pt_BR]=Gerenciador de Arquivos - Modo Super-Usuário
Name[ro]=Manager de fişiere - mod superutilizator
Name[ru]=Менеджер файлов (с root-привилегиями)
Name[se]=Fiilagieđahalli – Supergeavaheaddjemodus
Name[sk]=Správca súborov - Super-užívateľský mód
Name[sl]=Upravitelj datotek (skrbniški način)
Name[sr]=Менаџер фајлова (суперкориснички)
Name[sr@latin]=Menadžer fajlova (superkorisnički)
Name[sv]=Filhanterare - Administratörsläge
Name[ta]=கோப்பு மேலாளர் - மீப்பயனர் முறைமை
Name[te]=దస్త్ర అభికర్త - సూపర్ యూజర్ స్థితి
Name[tg]=Мудири файл - ҳолати убури корбар
Name[th]=ตัวจัดการแฟ้ม - โหมดผู้ดูแลระบบ
Name[tr]=Dosya Yöneticisi - Yetkili Kullanıcı
Name[uk]=Менеджер файлів (режим адміністратора)
Name[uz]=Файл бошқарувчиси (root)
Name[vi]=Bộ quản lý Tập tin - Chế độ siêu người dùng
Name[wa]=Manaedjeu di fitchîs - Môde super uzeu (root)
Name[x-test]=xxFile Manager - Super User Modexx
Name[xh]=Umphathi Wefayile - Indlela Ephezulu Yomsebenzisi
Name[zh_CN]=文件管理器 - 超级用户模式
Name[zh_TW]=檔案總管 - 超級使用者模式


Categories=Qt;KDE;System;X-KDE-More;

[EOF] - Note: with this I mean that the file stops here, not that there is an EOF character or tag or anyting.

Anyway, it looks good to me, so the problem is more likely that Dolphin can't find the .desktop file.
Comment 1 skierpage 2008-02-19 12:22:30 UTC
I have the same problem with Dolphin 1.0.99 on KDE 4.00.80 on Windows XP, the MSVC version installed with kdewin-installer-gui-0.9.0-1.exe.

This happens with every file of any well-known file type, there's always an alert that some associated KDE service has a malformatted .desktop file.  For an unknown file type (e.g. CONFIG.SYS), Dolphin displays an "Open with" dialog.

If you right-click on a file, a context menu will briefly flicker but is replaced with this alert.  That seems like a design problem: a file shouldn't become unusable in Dolphin just because some KDE service has a malformed .desktop file.
Comment 2 Ralf Habacker 2008-04-01 22:19:23 UTC
The problem is caused by a missing implementation of 

bool KMacroExpanderBase::expandMacrosShellQuote( QString &str, int &pos ) 

located in kdelibs/kdecore/util/kmacroexpander_win.cpp

Some informations could be found on http://permalink.gmane.org/gmane.comp.kde.devel.core/51256
Comment 3 xSacha 2008-05-18 14:18:13 UTC
Doesn't happen here on KDE4.0.73/1.099. Windows Server 2008.