Fungování této stránky je z důvodu údržby dočasně omezeno. Pokud žádný článek nápovědy nevyřeší váš problém a potřebujete se zeptat na další řešení, napište nám na Twitter @FirefoxSupport nebo Reddit /r/firefox.

Prohledat stránky podpory

Vyhněte se podvodům. Za účelem poskytnutí podpory vás nikdy nežádáme, abyste zavolali nebo poslali SMS na nějaké telefonní číslo nebo abyste sdělili své osobní údaje. Jakékoliv podezřelé chování nám prosím nahlaste pomocí odkazu „Nahlásit zneužití“.

Zjistit více

Firefox on Linux wants to use notepad.exe to display a C source

  • 5 odpovědí
  • 2 mají tento problém
  • 1 zobrazení
  • Poslední odpověď od monoped

more options

I'm using Firefox 20.0 on two mostly identical i686 Linux systems (Crux 2.8). On system A, Firefox displays a local C source normally. On system B, it asks which external program it should use, and suggests notepad.exe (!!) as the default. What on earth could make Firefox running on Linux think it is on a Windows system?? Neither re-installing Firefox nor moving my .mozilla directory changed this behaviour.

I'm using Firefox 20.0 on two mostly identical i686 Linux systems (Crux 2.8). On system A, Firefox displays a local C source normally. On system B, it asks which external program it should use, and suggests notepad.exe (!!) as the default. What on earth could make Firefox running on Linux think it is on a Windows system?? Neither re-installing Firefox nor moving my .mozilla directory changed this behaviour.

Všechny odpovědi (5)

more options

Hi there,

This sounds like a configuration error, but it's hard for me to tell where that error might have been made. Vanilla Firefox definitely doesn't suggest "notepad.exe" as the source viewer on Linux builds, so either this is an issue with Crux's build of Firefox, or maybe you copied your prefs.js file at some point from a Windows machine?

Either way, if you're familiar with about:config, you can restore this by searching for the "view_source" settings. Just filter for that and you should find view_source.editor.path. I'm guessing it now says "notepad.exe", but you can change this to anything you prefer, e.g. gedit, or whichever your favorite editor is.

Hope this helps.

Cheers, David

more options
more options

David, thanks for the extremely quick answer! I have of course looked into about:config, but "notepad" definitly doesn't appear there. I made a recursive grep in my (freshly generated) .mozilla directory as well as in usr/share/mime - no results. This is weird. The point is, I don't want to edit the file, I just want to see it. From another discussion I just learned that I can prefix the URL with "view-source:". That works indeed. I'm still curious why two otherwise completely equal Firefox installations behave so differently. Regards, Bernd

more options

See also this extension:

more options

Ah yes, that's a useful extension. Thanks! Bernd