搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

Learn More

How to create newly installed firefox 54 desktop launch/shortcut instead of starting from file using Linux OS?

  • 1 回覆
  • 1 有這個問題
  • 9 次檢視
  • 最近回覆由 bygabyga

more options

Managed to update firefox from 34 to 54 via ~/firefox/firefox at Linux terminal. but have to go into firefox file and double click firefox program file for it to launch. I had to delete the launch shortcuts for 34 but can figure out how to get a desktop launch/shortcut for firefox 54. Any help would be great. This is on an old NEC versa pro VY10A with a Centrino Duo. Thanks!

所有回覆 (1)

more options

Hello

You updated or downloaded Firefox from firefox.com and you removed a symlink to ~/firefox/firefox from ~/Desktop, yes?

You can make Firefox your default browser from Preferences which would create ~/.local/share/applications/userapp-Firefox-*.desktop

Then in your terminal emulator do:

cd ~/Desktop/
ln -s ~/.local/share/applications/userapp-Firefox-*.desktop .

The dot at the end is important.

About ~/.local/share/applications/userapp-Firefox-*.desktop

You may have to comment out NoDisplay=true or set it to false

You can also add Icon=firefox

You can use this script for the icons to work:

#!/bin/sh
## assuming firefox/ is extracted in ~/Downloads/
## chmod +x this-script
## ./this-script to run
## Icons
  for i in 16x16 32x32 48x48; do
    mkdir -pv ~/.icons/hicolor/$i/apps/
    cp -v ~/Downloads/firefox/browser/chrome/icons/default/default${i/x*}.png \
             ~/.icons/hicolor/$i/apps/firefox.png
  done
## 128x128
  mkdir -pv ~/.icons/hicolor/128x128/apps/
  cp -v ~/Downloads/firefox/browser/icons/mozicon128.png \
        ~/.icons/hicolor/128x128/apps/firefox.png

Let us know if this helped.