Error invalid desktop entry file:
FedoraForum.org - Fedora Support Forums and Community
Results 1 to 7 of 7
  1. #1
    Join Date
    Apr 2005
    Location
    NH, USA
    Posts
    43
    Linux (Fedora) Firefox 63.0

    Error invalid desktop entry file:

    Hi,
    My Desktop Environment is LXDE on a Fedora 28 laptop.
    I am just getting an error when I try open the kate editor from the menu. I have been using it fine for years. It just happened now. I can run and open kate editor fine from command line fine. Below is the error:

    Code:
    Error invalid desktop entry file: '/home/milhan/.local/share/applications/org.kde.kate.desktop'
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	Screenshot from 2018-12-01 15-23-58.png 
Views:	8 
Size:	8.6 KB 
ID:	29942  
    Linux is better than Windows.

  2. #2
    Join Date
    Oct 2010
    Location
    Canberra
    Posts
    3,016
    Linux Firefox 60.0

    Re: Error invalid desktop entry file:

    I have been messing around with desktop files quite a bit lately.
    You might try running the desktop-file-validate program on the file, it might give a hint to the problem.
    Otherwise let us have a look at its contents.

    User error. Please replace user and try again

  3. #3
    Join Date
    Apr 2005
    Location
    NH, USA
    Posts
    43
    Linux (Fedora) Firefox 63.0

    Re: Error invalid desktop entry file:

    Thank you for the reply. See below for the error:
    Code:
    ~/.local/share/applications desktop-file-validate org.kde.kate.desktop
    org.kde.kate.desktop: error: first group is not "Desktop Entry"
    org.kde.kate.desktop: error: file contains group "Desktop Action Session edd987816f87dd92e79273e57ddadbd8", which has an invalid action identifier, only alphanumeric characters and '-' are allowed
    org.kde.kate.desktop: error: value "kate -s 'Problem solving with c++'" for key "Exec" in group "Desktop Action Session edd987816f87dd92e79273e57ddadbd8" contains a reserved character ''' outside of a quote
    org.kde.kate.desktop: error: value "kate -s 'Problem solving with c++'" for key "Exec" in group "Desktop Action Session edd987816f87dd92e79273e57ddadbd8" contains a reserved character ''' outside of a quote
    org.kde.kate.desktop: error: value "Session edd987816f87dd92e79273e57ddadbd8;" for key "Actions" in group "Desktop Entry" contains invalid action identifier "Session edd987816f87dd92e79273e57ddadbd8", only alphanumeric characters and '-' are allowed
    org.kde.kate.desktop: warning: value "Speci?lis sz?vegszerkeszt?" for key "Comment[hu]" in group "Desktop Entry" looks redundant with value "Speci?lis sz?vegszerkeszt?" of key "GenericName[hu]"
    And below is the contents of the org.kde.kate.desktop file
    Code:
    [Desktop Action Session edd987816f87dd92e79273e57ddadbd8]
    Exec=kate -s 'Problem solving with c++'
    Name=Problem solving with c++
    
    [Desktop Entry]
    Actions=Session edd987816f87dd92e79273e57ddadbd8;
    Categories=Qt;KDE;Utility;TextEditor;
    Comment=KDE Advanced Text Editor
    Comment[ar]=كيت محرّر النّصوص المتقدّم
    Comment[ca@valencia]=Editor avançat de text pel KDE
    Comment[ca]=Editor avançat de text pel KDE
    Comment[cs]=Pokročilý textový editor pro KDE
    Comment[da]=KDE Avanceret Tekst Editor
    Comment[de]=Erweiterter Texteditor für KDE
    Comment[el]=Προχωρημένος επεξεργαστής κειμένου για το KDE
    Comment[en_GB]=KDE Advanced Text Editor
    Comment[es]=Editor de texto avanzado de KDE
    Comment[et]=KDE täiustatud tekstiredaktor
    Comment[fi]=KDE:n kehittynyt tekstimuokkain
    Comment[fr]=Éditeur de texte avancé de KDE
    Comment[gl]=Editor avanzado de textos de KDE
    Comment[he]=עורך טקסט מתקדם של KDE
    Comment[hu]=Speciális szövegszerkesztő
    Comment[ia]=KDE Advanced Text Editor, i.e. Editor avantiate de texto de KDE
    Comment[id]=Penyunting Teks Lanjutan KDE
    Comment[it]=Editor di testi avanzato di KDE
    Comment[ko]=KDE 고급 텍스트 편집기
    Comment[lt]=Sudėtingesnė KDE rašyklė
    Comment[nb]=Avansert skriveprogram for KDE
    Comment[nl]=KDE geavanceerde tekstbewerker
    Comment[nn]=Avansert skriveprogram for KDE
    Comment[pa]=KDE ਤਕਨੀਕੀ ਟੈਕਸਟ ਐਡੀਟਰ
    Comment[pl]=Zaawansowany edytor tekstu KDE
    Comment[pt]=Editor de Texto Avançado do KDE
    Comment[pt_BR]=Editor de texto avançado do KDE
    Comment[ru]=Улучшенный текстовый редактор от KDE
    Comment[sk]=KDE pokročilý textový editor
    Comment[sl]=Napreden urejevalnik besedil za KDE
    Comment[sr@ijekavian]=КДЕ‑ов напредни уређивач текста
    Comment[sr@ijekavianlatin]=KDE‑ov napredni uređivač teksta
    Comment[sr@latin]=KDE‑ov napredni uređivač teksta
    Comment[sr]=КДЕ‑ов напредни уређивач текста
    Comment[sv]=KDE avancerad texteditor
    Comment[tr]=KDE Gelişmiş Metin Düzenleyici
    Comment[uk]=Потужний текстовий редактор KDE
    Comment[x-test]=xxKDE Advanced Text Editorxx
    Comment[zh_CN]=KDE 高级文本编辑器
    Comment[zh_TW]=KDE 進階文字編輯器
    Exec=kate -b %U
    GenericName=Advanced Text Editor
    GenericName[ar]=محرّر نصوص متقدّم
    GenericName[bg]=Усъвършенстван текстов редактор
    GenericName[bs]=Napredni uređivač teksta
    GenericName[ca@valencia]=Editor de text avançat
    GenericName[ca]=Editor de text avançat
    GenericName[cs]=Pokročilý textový editor
    GenericName[da]=Avanceret teksteditor
    GenericName[de]=Erweiterter Texteditor
    GenericName[el]=Προχωρημένος επεξεργαστής κειμένου
    GenericName[en_GB]=Advanced Text Editor
    GenericName[es]=Editor de texto avanzado
    GenericName[et]=Täiustatud tekstiredaktor
    GenericName[eu]=Testu-editore aurreratua
    GenericName[fi]=Kehittynyt tekstimuokkain
    GenericName[fr]=Éditeur de texte avancé
    GenericName[ga]=Ardeagarthóir Téacs
    GenericName[gl]=Editor avanzado de textos
    GenericName[he]=עורך טקסט מתקדם
    GenericName[hr]=Napredni uređivač teksta
    GenericName[hu]=Speciális szövegszerkesztő
    GenericName[ia]=Editor avantiate de texto
    GenericName[id]=Penyunting Teks Maju
    GenericName[is]=Þróaður textaritill
    GenericName[it]=Editor di testi avanzato
    GenericName[ja]=高度なテキストエディタ
    GenericName[kk]=Үздік мәтін редакторы
    GenericName[km]=កម្មវិធី​និពន្ធ​អត្ថបទ​កម្រិត​ខ្ពស់
    GenericName[ko]=고급 텍스트 편집기
    GenericName[lt]=Sudėtingesnis teksto redaktorius
    GenericName[lv]=Jaudīgs teksta redaktors
    GenericName[mr]=प्रगत पाठ्य संपादक
    GenericName[nb]=Avansert skriveprogram
    GenericName[nds]=Verwiedert Texteditor
    GenericName[ne]=उन्नत पाठ सम्पादक
    GenericName[nl]=Geavanceerde teksteditor
    GenericName[nn]=Avansert skriveprogram
    GenericName[pa]=ਤਕਨੀਕੀ ਟੈਕਸਟ ਐਡੀਟਰ
    GenericName[pl]=Zaawansowany edytor tekstu
    GenericName[pt]=Editor de Texto Avançado
    GenericName[pt_BR]=Editor de textos avançado
    GenericName[ro]=Redactor de text avansat
    GenericName[ru]=Улучшенный текстовый редактор
    GenericName[si]=උසස් පෙළ සකසනය
    GenericName[sk]=Pokročilý textový editor
    GenericName[sl]=Napreden urejevalnik besedil
    GenericName[sr@ijekavian]=Напредни уређивач текста
    GenericName[sr@ijekavianlatin]=Napredni uređivač teksta
    GenericName[sr@latin]=Napredni uređivač teksta
    GenericName[sr]=Напредни уређивач текста
    GenericName[sv]=Avancerad texteditor
    GenericName[tg]=Таҳриргари матнии беҳтаршуда
    GenericName[tr]=Gelişmiş Metin Düzenleyici
    GenericName[ug]=ئالىي تېكىست تەھرىرلىگۈچ
    GenericName[uk]=Потужний текстовий редактор
    GenericName[vi]=Trình biên tập văn bản nâng cao
    GenericName[x-test]=xxAdvanced Text Editorxx
    GenericName[zh_CN]=高级文本编辑器
    GenericName[zh_TW]=進階文字編輯器
    Icon=kate
    InitialPreference=9
    MimeType=text/plain;
    Name[en_US]=Kate C/C++ Java Editor
    Name=Kate
    Name[ar]=كيت
    Name[be]=Kate
    Name[bg]=Kate
    Name[bs]=Kate
    Name[ca@valencia]=Kate
    Name[ca]=Kate
    Name[cs]=Kate
    Name[da]=Kate
    Name[de]=Kate
    Name[el]=Kate
    Name[en_GB]=Kate
    Name[eo]=Kate
    Name[es]=Kate
    Name[et]=Kate
    Name[eu]=Kate
    Name[fi]=Kate
    Name[fr]=Kate
    Name[ga]=Kate
    Name[gl]=Kate
    Name[he]=Kate
    Name[hu]=Kate
    Name[ia]=Kate
    Name[id]=Kate
    Name[it]=Kate
    Name[ja]=Kate
    Name[kk]=Kate
    Name[km]=Kate
    Name[ko]=Kate
    Name[lt]=Kate
    Name[lv]=Kate
    Name[mr]=केट
    Name[ms]=Kate
    Name[nb]=Kate
    Name[nds]=Kate
    Name[ne]=केट
    Name[nl]=Kate
    Name[nn]=Kate
    Name[pa]=ਕੇਟ
    Name[pl]=Kate
    Name[pt]=Kate
    Name[pt_BR]=Kate
    Name[ro]=Kate
    Name[ru]=Kate
    Name[si]=Kate
    Name[sk]=Kate
    Name[sl]=Kate
    Name[sr@ijekavian]=Кејт
    Name[sr@ijekavianlatin]=Kate
    Name[sr@latin]=Kate
    Name[sr]=Кејт
    Name[sv]=Kate
    Name[tg]=Кейт
    Name[tr]=Kate
    Name[ug]=Kate
    Name[uk]=Kate
    Name[vi]=Kate
    Name[wa]=Kate
    Name[x-test]=xxKatexx
    Name[zh_CN]=Kate
    Name[zh_TW]=Kate
    StartupNotify=true
    Terminal=false
    Type=Application
    X-DBUS-ServiceName=org.kde.kate
    X-DBUS-StartupType=Multi
    X-DocPath=kate/index.html
    X-KDE-HasTempFileOption=true
    Linux is better than Windows.

  4. #4
    Join Date
    Oct 2010
    Location
    Canberra
    Posts
    3,016
    Linux Firefox 60.0

    Re: Error invalid desktop entry file:

    It would appear that your desktop file is not in compliance with the specification:
    The basic format of the desktop entry file requires that there be a group header named Desktop Entry. There may be other groups present in the file, but this is the most important group which explicitly needs to be supported. This group should also be used as the "magic key" for automatic MIME type detection. There should be nothing preceding this group in the desktop entry file but possibly one or more comments.
    https://specifications.freedesktop.o...t/ar01s03.html

    To fix it, move the [Desktop Action Session ... ] group (i.e. the first four lines) to the end of the file.

    If this happens again it would appear that kate (or something else) is modifying its own desktop file, and doing it wrong. This will require a bug report.

    User error. Please replace user and try again

  5. #5
    Join Date
    Apr 2005
    Location
    NH, USA
    Posts
    43
    Linux (Fedora) Firefox 63.0

    Re: Error invalid desktop entry file:

    Thank you so very much for the help ocratato.

    In fact, I just recalled I had a backup of my whole home directory and restored the file org.kde.kate.desktop from the backup media and it fixed the problem. The original org.kde.kate.desktop file in the backup was based according to the specs you posted. Looks like the file got messed up just recently. As I said earlier, I have been using the kate editor with the same Fedora LXDE spin for nearly 2 years and never had any issue opening it from the menu..
    Linux is better than Windows.

  6. #6
    Join Date
    Oct 2010
    Location
    Canberra
    Posts
    3,016
    Linux Firefox 60.0

    Re: Error invalid desktop entry file:

    Good to hear you got it working, but something made that change and might do so again.

    (My guess is that kate does it when it has a file open when you log out. It (or something) is trying to record session data.)

    User error. Please replace user and try again

  7. #7
    Join Date
    Apr 2005
    Location
    NH, USA
    Posts
    43
    Linux (Fedora) Firefox 63.0

    Re: Error invalid desktop entry file:

    Quote Originally Posted by ocratato
    Good to hear you got it working, but something made that change and might do so again.

    (My guess is that kate does it when it has a file open when you log out. It (or something) is trying to record session data.)
    Good morning ocratato

    It is happening again, in fact, now every time regardless whether I have a file open when logging out or not. This is strange!
    Linux is better than Windows.

Similar Threads

  1. gnome-terminal Desktop Entry
    By hlewis in forum Using Fedora
    Replies: 1
    Last Post: 20th March 2014, 08:06 AM
  2. [SOLVED]
    Grub2 Warning: device.map entry `hd1,1' is invalid
    By mikeym in forum Using Fedora
    Replies: 0
    Last Post: 5th August 2012, 12:10 PM
  3. desktop file entry
    By Davarish in forum Using Fedora
    Replies: 2
    Last Post: 22nd January 2012, 05:16 PM
  4. Invalid GART PTE entry during table walk
    By MichaelS-R in forum Hardware & Laptops
    Replies: 2
    Last Post: 10th September 2010, 10:19 PM
  5. A desktop entry for automating yum update
    By smfinley in forum Guides & Solutions (Not For Questions)
    Replies: 18
    Last Post: 25th June 2006, 12:10 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •