The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Hot answers tagged

36

On modern-ish X.org installations, there is an XF86Ungrab keysym, which causes the server to release all active pointer or keyboard grabs. You can make the server break all grabs by enabling break action XKB option, then generating the keysym either with a command or with the keyboard. With xdotool: setxkbmap -option grab:break_actions xdotool key ...


33

You can use data URIs, like this: echo '<h1>hello, world</h1>' |firefox "data:text/html;base64,$(base64 -w 0 <&0)" &0 is the file descriptor for stdin, so it encodes stdin to base64, then interpolates that into the data URI. The same trick works for other browsers, too: echo '<h1>hello, world</h1>' |chromium "data:...


31

One of the biggest issues when launching some X-client remotely is the X-protocol, not so much the ssh overhead! The X-protocol requires a lot of ping-pong'ing between the client and the server which absolutely kills performance in the case of remote applications. Try something like "x2go" (which also goes over ssh with default setups) in you will notice ...


29

From http://kb.mozillazine.org/Profile_in_use - Check for: 1) A file called .parentlock -AND- 2) A symlink called lock ...in ~/.mozilla/firefox/random string of alphanumeric characters.default/ The former is present while Firefox is running to prevent more than one different instance from trying to simultaneously write to the same set of profile files, and ...


28

I've had this issue for ages, maybe it's time to do something about it! It comes done to ClearType, Microsoft and patents from what I read. Most *nix distro's disable any patent protected font rendering by default. Read about Debian and fonts here, you want Subpixel-hinting and Font-smoothing section. There's a config file on that page but I will add here ...


27

It's the same thing. See wikipedia. Basically, you are not allowed to re-compile the source code and still call it Firefox for trademark reasons.


27

I ran into this too, and found the answer in mozilla's bugzilla. In short, it happened because the plugin was updated while Firefox was running, and the pluginreg.dat got corrupted. So: exit firefox rm ~/.mozilla/firefox/*/pluginreg.dat start firefox again and you'll be all set. (The file will be regenerated.) Of course, you'll need to make sure that the ....


26

When debugging curl issues, the -v option is often helpful. In this particular instance, you’re running afoul of the If-None-Match header, which tells the server that you already have the file matching “6931c3b4d0e94743bb93a36ed8e8c3f5add12f9a” and that you’re not interested in retrieving it again if it hasn’t changed. -v shows you this by indicating that ...


25

The default ssh settings make for a pretty slow connection. Try the following instead: ssh -YC4c arcfour,blowfish-cbc user@hostname firefox -no-remote The options used are: -Y Enables trusted X11 forwarding. Trusted X11 forwardings are not subjected to the X11 SECURITY extension controls. -C Requests compression of all data (including ...


24

When Firefox starts, it looks for a Firefox window running on the same display, and if it finds one, it focuses this window (and if you pass a URL on the command line, it opens a new tab to load the URL in the existing window). You must have run SSH with X11 display forwarding. Since X11 forwarding is active, all GUI programs that you start in the SSH ...


23

The short answer is, you're better off writing a temporary file and opening that. Getting pipes to work properly is more complicated and probably won't give you any extra advantages. That said, here's what I've found. If your firefox command is actually starting Firefox instead of talking with an already-running Firefox instance, you can do this: echo '&...


19

You can do this by creating or editing a file called user-dirs.dirs in ~/.config. Mine has the following: XDG_DESKTOP_DIR="$HOME/" XDG_DOCUMENTS_DIR="/srv/documents/" XDG_DOWNLOAD_DIR="$HOME/downloads/" XDG_MUSIC_DIR="/srv/music/" XDG_PICTURES_DIR="/srv/pictures/" XDG_VIDEOS_DIR="$HOME" Firefox follows whatever you have for XDG_DESKTOP_DIR.


19

Here is a community version of the answer by Yokai that incorporates examples offered by Rudolf Olah. You can use the tool called xdotool to control window size and location. Not only that, any script you write in bash, using xdotool, can be setup to work with a fully maximized window and it can be scripted to set the window size and x:y coordinates by ...


18

As far as I know, this is not possible as Firefox does not accept commands to control the window. That's also (mostly) the responsibility of the window manager, so I doubt that there ever will be parameters to do that. However, you can control the window with wmctrl, but that's going to be a little bit difficult: #!/bin/sh firefox -new-instance -new-window ...


18

I was able to unpack the jsonlz4 by using lz4json: apt-get install liblz4-dev git clone https://github.com/andikleen/lz4json.git cd lz4json make ./lz4jsoncat ~/.mozilla/firefox/*/bookmarkbackups/*.jsonlz4


18

You have firefox-esr pinned to the currently-installed version with a very high priority: *** 52.9.0esr-1~deb9u1 30000 That prevents any other version with a lower pin priority from being installed, including the security update which only has priority 500: 60.2.0esr-1~deb9u2 500 The pin comes from apt-listbugs: it decided (or was told — I think it ...


17

First find the process id of firefox using the following command in any directory: pidof firefox Kill firefox process using the following command in any directory: kill [firefox pid] Then start firefox again. Or you can do the same thing in just one command.As don_crissti said: kill $(pidof firefox)


17

I have much better experience in using an ssh tunnel to route traffic through another machine. It's very easy to set up since you have ssh access anyway. In a terminal on your computer, type ssh -vv -ND 8080 user@yourserver Keep this window open and watch it delivering some verbose messages about the data flowing through the tunnel. In firefox, go to ...


17

Save this script in a file, e.g., mozlz4: #!/usr/bin/env python from sys import stdin, stdout, argv, stderr import os try: import lz4.block as lz4 except ImportError: import lz4 stdin = os.fdopen(stdin.fileno(), 'rb') stdout = os.fdopen(stdout.fileno(), 'wb') if argv[1:] == ['-c']: stdout.write(b'mozLz40\0' + lz4.compress(stdin.read())) elif ...


15

Firefox stores cookies in sqlite database ~/.mozilla/firefox/<profile path>/cookies.sqlite. You can have full access to it. For example, to watch all cookies from stackoverflow.com you can do: cd ~/.mozilla/firefox/<profile path>/ sqlite3 cookies.sqlite select * from moz_cookies where baseDomain glob '*stackoverflow*' (replace here <...


15

You want firefox --no-remote (or firefox --new-instance). Otherwise, it will "reuse" your existing firefox process.


14

A link to a “similar question” (xdg-open default applications behavior – not obviously related, but some experimentation showed that the behaviour is indeed equivalent to the one of xdg-open) led me deeper down the rabbit hole. While Firefox does not rely on, or inherit rules from, xdg-open, it uses the MIME specification files just as xdg-open does. On a ...


13

Something to play with It uses xdotool, which lets you script windows/desktop actions. If you supply the name of the browser as an argument, it'll find and reload the current page. You can set a default browser, so you don't need to supply one each time, and you can change whether you send a CTRL-R to reload, or SHIFT-CTRL-R to reload without cache. It ...


13

How to Use Mozilla Firefox, Portable with flash plugin Make your firefox portable for Linux (all versions): Download the latest release of Firefox and unpack it on your usb device: http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/ Go to unpack_directory/firefox/browser/plugins (firefox 22+). Add a short link to your installed flash-plugin binary (...


13

There's a possibility of forgeting enabling Liberator Statusline Toolbar. Right-click on places like Menu bar, Address bar, Toolbar, etc. A menu shows up in which you will find a line named "Liberator Statusline Toolbar". Click on it to enable. The Vimperator status bar magically appears again.


12

this is a common problem causing nothing but the battery wasted energy decreasing unplugged operation time significantly. the cause of the problem appears to be very simple: you may have too many tabs opened each having bulky and useless endless loops running java-scripts. those java-scripts are usually not origin of the web site you are working with but ...


11

It should be enough to install the great noto fonts bundles: sudo pacman -S noto-fonts-cjk noto-fonts-emoji noto-fonts The restart firefox and you should be abe to see them. Personally, I also installed the following from AUR: yaourt -S ttf-freefont ttf-ms-fonts ttf-linux-libertine ttf-dejavu ttf-inconsolata ttf-ubuntu-font-family I doubt those will help ...


11

Simply do: sudo apt-mark hold firefox This will add firefox package to the list of packages who should not recieve updates. To reverse it: sudo apt-mark unhold firefox You can list the packages on hold via: sudo apt-mark showhold For further information see man apt-mark.8


10

There are two options I can recommend here: First, if you want to literally launch a full graphical browser and have it load a page with on a machine with no graphical capabilities, there is a tool called xvfb that will let you run a complete X server with no physical display associated with it. You then just need to run firefox with that X server set as ...


10

The terminal locks when you are running an application from it as long as the application is running. With the ampersand (&) you can start the application in the background and still use the terminal. Type: user@host:~# firefox & To start firefox in the background. Output of the application will still be in the terminal. Or, if firefox is already ...


Only top voted, non community-wiki answers of a minimum length are eligible