Error 'Invalid desktop entry file:' when using web browser in LXDE

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite
1












My system is Linux Lubuntu 17.10 and Firefox is installed as a browser. It can be accessed through the application panel, but clicking on the Web Browser Icon on the Task Bar leads to the following error:




Invalid desktop entry file:
'/usr/share/applications/lxde-x-www-browser.desktop'




I have tried



desktop-file-validate lxde-x-www-browser.desktop


but this did not change anything.



Here are the contents of the file:



[Desktop Entry] 
Name=Web Browser
Name[pt_BR]=Navegador web
Name[zh_TW]=瀏覽器
GenericName=X Web Browser
GenericName[pt_BR]=Navegador web gráfico
GenericName[zh_TW]=網頁瀏覽器
Exec=/usr/bin/x-www-browser %u
Terminal=false
Type=Application
Categories=GTK;WebBrowser;Network
Icon=web-browser
NoDisplay=true






share|improve this question






















  • Can you show update-alternatives --display www-browser
    – user192526
    Nov 11 '17 at 9:43














up vote
0
down vote

favorite
1












My system is Linux Lubuntu 17.10 and Firefox is installed as a browser. It can be accessed through the application panel, but clicking on the Web Browser Icon on the Task Bar leads to the following error:




Invalid desktop entry file:
'/usr/share/applications/lxde-x-www-browser.desktop'




I have tried



desktop-file-validate lxde-x-www-browser.desktop


but this did not change anything.



Here are the contents of the file:



[Desktop Entry] 
Name=Web Browser
Name[pt_BR]=Navegador web
Name[zh_TW]=瀏覽器
GenericName=X Web Browser
GenericName[pt_BR]=Navegador web gráfico
GenericName[zh_TW]=網頁瀏覽器
Exec=/usr/bin/x-www-browser %u
Terminal=false
Type=Application
Categories=GTK;WebBrowser;Network
Icon=web-browser
NoDisplay=true






share|improve this question






















  • Can you show update-alternatives --display www-browser
    – user192526
    Nov 11 '17 at 9:43












up vote
0
down vote

favorite
1









up vote
0
down vote

favorite
1






1





My system is Linux Lubuntu 17.10 and Firefox is installed as a browser. It can be accessed through the application panel, but clicking on the Web Browser Icon on the Task Bar leads to the following error:




Invalid desktop entry file:
'/usr/share/applications/lxde-x-www-browser.desktop'




I have tried



desktop-file-validate lxde-x-www-browser.desktop


but this did not change anything.



Here are the contents of the file:



[Desktop Entry] 
Name=Web Browser
Name[pt_BR]=Navegador web
Name[zh_TW]=瀏覽器
GenericName=X Web Browser
GenericName[pt_BR]=Navegador web gráfico
GenericName[zh_TW]=網頁瀏覽器
Exec=/usr/bin/x-www-browser %u
Terminal=false
Type=Application
Categories=GTK;WebBrowser;Network
Icon=web-browser
NoDisplay=true






share|improve this question














My system is Linux Lubuntu 17.10 and Firefox is installed as a browser. It can be accessed through the application panel, but clicking on the Web Browser Icon on the Task Bar leads to the following error:




Invalid desktop entry file:
'/usr/share/applications/lxde-x-www-browser.desktop'




I have tried



desktop-file-validate lxde-x-www-browser.desktop


but this did not change anything.



Here are the contents of the file:



[Desktop Entry] 
Name=Web Browser
Name[pt_BR]=Navegador web
Name[zh_TW]=瀏覽器
GenericName=X Web Browser
GenericName[pt_BR]=Navegador web gráfico
GenericName[zh_TW]=網頁瀏覽器
Exec=/usr/bin/x-www-browser %u
Terminal=false
Type=Application
Categories=GTK;WebBrowser;Network
Icon=web-browser
NoDisplay=true








share|improve this question













share|improve this question




share|improve this question








edited Nov 10 '17 at 23:51









jasonwryan

47k14127176




47k14127176










asked Nov 10 '17 at 23:24









Jonathan Mitchell

34




34











  • Can you show update-alternatives --display www-browser
    – user192526
    Nov 11 '17 at 9:43
















  • Can you show update-alternatives --display www-browser
    – user192526
    Nov 11 '17 at 9:43















Can you show update-alternatives --display www-browser
– user192526
Nov 11 '17 at 9:43




Can you show update-alternatives --display www-browser
– user192526
Nov 11 '17 at 9:43










1 Answer
1






active

oldest

votes

















up vote
0
down vote



accepted










Possible Solutions



  • Goto the equivalent of Settings → Preferred Applications and ensure a “default browser” has been selected

  • Examine / execute /usr/bin/x-www-browser directly and see what happens

  • Visit firefox's about:preferences and ensure it is checking whether is is the default browser, and see if there is a button active to “make default browser“ or some such thing

  • run desktop-file-validate --warn-kde lxde-x-www-browser.desktop to check kde-specific fields

  • Point Exec=… ⇒ Exec=/usr/bin/firefox (directly at the firefox executable, wherever that is…)—see which firefox or whereis firefox at a terminal if you're having trouble knowing





share|improve this answer




















  • P.S. There are a couple extra spaces on each line in your example code—perhaps check for extraneous spaces/nonprinting characters or strange line endings. dos2unix would be an easy fix for CRLF → LF but I don't know if this would be causing anything if it is even the case.
    – Andrew Siplas
    Nov 11 '17 at 10:00










  • Tried all of your suggestions, no luck until the last one, which did the trick. Thanks.
    – Jonathan Mitchell
    Nov 11 '17 at 18:20










  • I see now I neglected the %u which I suppose means that dragging a URL onto the icon won't work—that is I don't think it'll work for file association as there's no place to substitute a filename, although maybe the filename or URL will be appended anyway… haven't read any standard or source and dont't recall what the ‘%u’ exactly indicates.
    – Andrew Siplas
    Nov 11 '17 at 20:04










Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f403836%2ferror-invalid-desktop-entry-file-when-using-web-browser-in-lxde%23new-answer', 'question_page');

);

Post as a guest






























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
0
down vote



accepted










Possible Solutions



  • Goto the equivalent of Settings → Preferred Applications and ensure a “default browser” has been selected

  • Examine / execute /usr/bin/x-www-browser directly and see what happens

  • Visit firefox's about:preferences and ensure it is checking whether is is the default browser, and see if there is a button active to “make default browser“ or some such thing

  • run desktop-file-validate --warn-kde lxde-x-www-browser.desktop to check kde-specific fields

  • Point Exec=… ⇒ Exec=/usr/bin/firefox (directly at the firefox executable, wherever that is…)—see which firefox or whereis firefox at a terminal if you're having trouble knowing





share|improve this answer




















  • P.S. There are a couple extra spaces on each line in your example code—perhaps check for extraneous spaces/nonprinting characters or strange line endings. dos2unix would be an easy fix for CRLF → LF but I don't know if this would be causing anything if it is even the case.
    – Andrew Siplas
    Nov 11 '17 at 10:00










  • Tried all of your suggestions, no luck until the last one, which did the trick. Thanks.
    – Jonathan Mitchell
    Nov 11 '17 at 18:20










  • I see now I neglected the %u which I suppose means that dragging a URL onto the icon won't work—that is I don't think it'll work for file association as there's no place to substitute a filename, although maybe the filename or URL will be appended anyway… haven't read any standard or source and dont't recall what the ‘%u’ exactly indicates.
    – Andrew Siplas
    Nov 11 '17 at 20:04














up vote
0
down vote



accepted










Possible Solutions



  • Goto the equivalent of Settings → Preferred Applications and ensure a “default browser” has been selected

  • Examine / execute /usr/bin/x-www-browser directly and see what happens

  • Visit firefox's about:preferences and ensure it is checking whether is is the default browser, and see if there is a button active to “make default browser“ or some such thing

  • run desktop-file-validate --warn-kde lxde-x-www-browser.desktop to check kde-specific fields

  • Point Exec=… ⇒ Exec=/usr/bin/firefox (directly at the firefox executable, wherever that is…)—see which firefox or whereis firefox at a terminal if you're having trouble knowing





share|improve this answer




















  • P.S. There are a couple extra spaces on each line in your example code—perhaps check for extraneous spaces/nonprinting characters or strange line endings. dos2unix would be an easy fix for CRLF → LF but I don't know if this would be causing anything if it is even the case.
    – Andrew Siplas
    Nov 11 '17 at 10:00










  • Tried all of your suggestions, no luck until the last one, which did the trick. Thanks.
    – Jonathan Mitchell
    Nov 11 '17 at 18:20










  • I see now I neglected the %u which I suppose means that dragging a URL onto the icon won't work—that is I don't think it'll work for file association as there's no place to substitute a filename, although maybe the filename or URL will be appended anyway… haven't read any standard or source and dont't recall what the ‘%u’ exactly indicates.
    – Andrew Siplas
    Nov 11 '17 at 20:04












up vote
0
down vote



accepted







up vote
0
down vote



accepted






Possible Solutions



  • Goto the equivalent of Settings → Preferred Applications and ensure a “default browser” has been selected

  • Examine / execute /usr/bin/x-www-browser directly and see what happens

  • Visit firefox's about:preferences and ensure it is checking whether is is the default browser, and see if there is a button active to “make default browser“ or some such thing

  • run desktop-file-validate --warn-kde lxde-x-www-browser.desktop to check kde-specific fields

  • Point Exec=… ⇒ Exec=/usr/bin/firefox (directly at the firefox executable, wherever that is…)—see which firefox or whereis firefox at a terminal if you're having trouble knowing





share|improve this answer












Possible Solutions



  • Goto the equivalent of Settings → Preferred Applications and ensure a “default browser” has been selected

  • Examine / execute /usr/bin/x-www-browser directly and see what happens

  • Visit firefox's about:preferences and ensure it is checking whether is is the default browser, and see if there is a button active to “make default browser“ or some such thing

  • run desktop-file-validate --warn-kde lxde-x-www-browser.desktop to check kde-specific fields

  • Point Exec=… ⇒ Exec=/usr/bin/firefox (directly at the firefox executable, wherever that is…)—see which firefox or whereis firefox at a terminal if you're having trouble knowing






share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 11 '17 at 9:55









Andrew Siplas

1815




1815











  • P.S. There are a couple extra spaces on each line in your example code—perhaps check for extraneous spaces/nonprinting characters or strange line endings. dos2unix would be an easy fix for CRLF → LF but I don't know if this would be causing anything if it is even the case.
    – Andrew Siplas
    Nov 11 '17 at 10:00










  • Tried all of your suggestions, no luck until the last one, which did the trick. Thanks.
    – Jonathan Mitchell
    Nov 11 '17 at 18:20










  • I see now I neglected the %u which I suppose means that dragging a URL onto the icon won't work—that is I don't think it'll work for file association as there's no place to substitute a filename, although maybe the filename or URL will be appended anyway… haven't read any standard or source and dont't recall what the ‘%u’ exactly indicates.
    – Andrew Siplas
    Nov 11 '17 at 20:04
















  • P.S. There are a couple extra spaces on each line in your example code—perhaps check for extraneous spaces/nonprinting characters or strange line endings. dos2unix would be an easy fix for CRLF → LF but I don't know if this would be causing anything if it is even the case.
    – Andrew Siplas
    Nov 11 '17 at 10:00










  • Tried all of your suggestions, no luck until the last one, which did the trick. Thanks.
    – Jonathan Mitchell
    Nov 11 '17 at 18:20










  • I see now I neglected the %u which I suppose means that dragging a URL onto the icon won't work—that is I don't think it'll work for file association as there's no place to substitute a filename, although maybe the filename or URL will be appended anyway… haven't read any standard or source and dont't recall what the ‘%u’ exactly indicates.
    – Andrew Siplas
    Nov 11 '17 at 20:04















P.S. There are a couple extra spaces on each line in your example code—perhaps check for extraneous spaces/nonprinting characters or strange line endings. dos2unix would be an easy fix for CRLF → LF but I don't know if this would be causing anything if it is even the case.
– Andrew Siplas
Nov 11 '17 at 10:00




P.S. There are a couple extra spaces on each line in your example code—perhaps check for extraneous spaces/nonprinting characters or strange line endings. dos2unix would be an easy fix for CRLF → LF but I don't know if this would be causing anything if it is even the case.
– Andrew Siplas
Nov 11 '17 at 10:00












Tried all of your suggestions, no luck until the last one, which did the trick. Thanks.
– Jonathan Mitchell
Nov 11 '17 at 18:20




Tried all of your suggestions, no luck until the last one, which did the trick. Thanks.
– Jonathan Mitchell
Nov 11 '17 at 18:20












I see now I neglected the %u which I suppose means that dragging a URL onto the icon won't work—that is I don't think it'll work for file association as there's no place to substitute a filename, although maybe the filename or URL will be appended anyway… haven't read any standard or source and dont't recall what the ‘%u’ exactly indicates.
– Andrew Siplas
Nov 11 '17 at 20:04




I see now I neglected the %u which I suppose means that dragging a URL onto the icon won't work—that is I don't think it'll work for file association as there's no place to substitute a filename, although maybe the filename or URL will be appended anyway… haven't read any standard or source and dont't recall what the ‘%u’ exactly indicates.
– Andrew Siplas
Nov 11 '17 at 20:04

















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f403836%2ferror-invalid-desktop-entry-file-when-using-web-browser-in-lxde%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

How to check contact read email or not when send email to Individual?

Bahrain

Postfix configuration issue with fips on centos 7; mailgun relay