Xfce Wiki

Sub domains
 

Site Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

midori:faq [2012/11/18 20:55]
kalikiana [Flash doesn't work]
midori:faq [2014/04/18 21:30] (current)
axlrose [Midori and mediaHerald]
Line 40: Line 40:
 === There are missing icons/ warnings === === There are missing icons/ warnings ===
 The set of themed icons Midori can use is very limited. For instance icons for a new tab or the throbber are not guaranteed to be available. To fix this, install a Freedesktop.org spec compliant icon theme, such as Elementary, Faenza, Buuf or GNOME. The set of themed icons Midori can use is very limited. For instance icons for a new tab or the throbber are not guaranteed to be available. To fix this, install a Freedesktop.org spec compliant icon theme, such as Elementary, Faenza, Buuf or GNOME.
 +
 +if you need to set a custom path for these to be "​searched in" (Kiosks and embedded devices for example):
 +
 +XDG_DATA_HOME=/​path/​to/​location  ​
 +
 +will add an extra path for the icons/.. directory
  
 === Tweaking Midori on the Gtk level === === Tweaking Midori on the Gtk level ===
Line 56: Line 62:
 Enable changing hotkeys while hovering menu items: Enable changing hotkeys while hovering menu items:
 <​code>​gtk-can-change-accels = 1</​code>​ <​code>​gtk-can-change-accels = 1</​code>​
 +
 +=== Disable middle click pasting ===
 +As of GTK+ >= 3.4 one can disable it globally in ~/​.gtkrc-2.0
 +<​code>​gtk-enable-primary-paste = 0</​code>​
 +
 +Otherwise by adding a line to ~/​.config/​midori/​config
 +<​code>​middle-click-opens-selection=false</​code>​
  
 === Midori crashes shortly before pages are loaded === === Midori crashes shortly before pages are loaded ===
Line 65: Line 78:
  
 export XDG_CACHE_HOME=/​dev/​shm export XDG_CACHE_HOME=/​dev/​shm
- 
 ===== Security features ===== ===== Security features =====
  
Line 74: Line 86:
 === Certificate Handling === === Certificate Handling ===
  
-Midori >= 0.4.7 supports [[gcr|http://​git.gnome.org/​browse/​gcr/​tree/​gcr]] for certificate display and management, you can click the lock in the urlbar to see detailed information. Earlier versions, or one without gcr will not handle certificates beyond the lock icon in the urlbar.+Midori uses the system'​s ca-certificates,​ the exact locations depend on the distribution. 
 + 
 +Midori >= 0.4.7 supports [[http://​git.gnome.org/​browse/​gcr/​tree/​gcr|gcr]] for certificate display and management, you can click the lock in the urlbar to see detailed information. Earlier versions, or one without gcr will not handle certificates beyond the lock icon in the urlbar.
  
 == Error granting trust: Couldn'​t find a place to store the imported certificate == == Error granting trust: Couldn'​t find a place to store the imported certificate ==
  
-No key store is available or it's incorrectly setup. By default GNOME keyring can do this. Under Xfce it is recommended to enable "GNOME services"​ under "​Session and Startup settings"​. ​Otherwise this can occur if a script doesn'​t correctly send the output of "​gnome-keyring --startup"​ to the environment.+No key store is available or it's incorrectly setup. By default GNOME keyring can do this. Under Xfce it is recommended to enable "GNOME services"​ under "​Session and Startup settings"​. ​To make sure, that the output of "​gnome-keyring --startup" ​is correctly sent to the environment, you can add "​export `gnome-keyring-daemon --start`"​ to .xinitrc.
  
 == A testcase for self-signed certificates == == A testcase for self-signed certificates ==
  
 https://​selfsigned.notyours.dk:​444/​menu.gif https://​selfsigned.notyours.dk:​444/​menu.gif
- 
 ===== Flash doesn'​t work ===== ===== Flash doesn'​t work =====
  
Line 102: Line 115:
 === Flash is crashing/ No Flash with GTK+3 === === Flash is crashing/ No Flash with GTK+3 ===
  
-nspluginwrapper is a program that runs Flash and other Netscape plugins in a separate process. So a crash can'​t ​cresh the whole browser and Flash, which is GTK+2 can run in GTK+3.+nspluginwrapper is a program that runs Flash and other Netscape plugins in a separate process. So a crash can'​t ​crash the whole browser and Flash, which is GTK+2 can run in GTK+3.
  
 <code bash> <code bash>
 sudo apt-get install nspluginwrapper sudo apt-get install nspluginwrapper
-sudo nspluginwrapper ​-/usr/lib/​flashplugin-installer/​libflashplayer.so +# On Debian/ Ubuntu ​on other systems http://get.adobe.com/de/​flashplayer/​ 
-nspluginwrapper -v -a -n -i+sudo apt-get install ​flashplugin-installer 
 +# cd into the folder where the plugin was installed 
 +nspluginwrapper -v -a -n -i libflashplayer.so
 </​code>​ </​code>​
 +
 +~/.mozilla can also be used with Adobe'​s tarball if system-wide install is not an option. The approach is confirmed to work with x86-64 as well.
 +
 +Another remedy is using WebKit2 - starting with Midori 0.4.9 experimental support is available, [[https://​trac.webkit.org/​wiki/​WebKitGTK/​WebKit2Roadmap|progress on WebKit2GTK+ can be seen in the WebKit wiki]].
  
 === HTTPS URLS won't load === === HTTPS URLS won't load ===
Line 167: Line 186:
  
 You need to set Preferences > Network > Identify As to Firefox. You need to set Preferences > Network > Identify As to Firefox.
 +
 +=== Google Docs says "Clear your caches"​ ===
 +
 +If you use the Adblock extension, EasyPrivacy may conflict with Google Docs. Disable the subscription if you use it. Otherwise try disabling Adblock entirely.
  
 === Opening html email with Mutt === === Opening html email with Mutt ===
Line 192: Line 215:
 LXDE is unfortunately not supported yet, see https://​bugs.freedesktop.org/​show_bug.cgi?​id=26058 LXDE is unfortunately not supported yet, see https://​bugs.freedesktop.org/​show_bug.cgi?​id=26058
  
-=== Open magnet:, irc:, apt: and friends ​with an application ===+=== Open magnet:, irc:, apt:, bitcoin: ​with an application ===
  
 As of git 2011-03-05 02:40:00 UTC and Midori 0.3.3 you can As of git 2011-03-05 02:40:00 UTC and Midori 0.3.3 you can
Line 205: Line 228:
  
 Note that incomplete .desktop files will silently fail and it will look as if it doesn'​t exist. Note that incomplete .desktop files will silently fail and it will look as if it doesn'​t exist.
 +
 +For [[http://​electrum.org/​bitcoin_URIs.html|bitcoin:​]],​ try [[http://​electrum.org/​index.html|Electrum]] or [[http://​multibit.org/​|Multibit]].
  
 === Spell check === === Spell check ===
Line 307: Line 332:
  
 Any links outside end up in an error page. All images and other files won't be loaded. Any links outside end up in an error page. All images and other files won't be loaded.
 +
 +===== Always open Midori in Fullscreen =====
 +
 +Using the WM to get Midori into fullscreen mode, or calling "​midori -e Fullscreen"​ is the typical way. On the next startup Midori will remember the last window size and state.
 +
 +If for whatever reason this isn't enough, [[https://​live.gnome.org/​DevilsPie|DevilsPie]] can force Midori to the desired state:
 +
 +~/​.devilspie/​midori.ds
 +
 +(begin
 +    (if
 +        (and
 +            (is (application_name) "​Midori"​)
 +        )
 +            (begin
 +                (maximize)
 +            )
 +    )
 +)
 +
 +===== Overriding settings and loading extensions =====
 +
 +As of Midori 0.5.0 the --execute command line switch got more powerful:
 +
 +''​midori -e libcolorful-tabs.so=true''​
 +
 +''​midori -e enable-javascript=false''​
  
 ====== Proxy servers ====== ====== Proxy servers ======
Line 334: Line 386:
 === Are SOCKS proxy servers supported? === === Are SOCKS proxy servers supported? ===
  
-The coming ​libSoup 2.40 will support ​SOCKS proxies, ​[[https://​bugzilla.gnome.org/​show_bug.cgi?​id=553269|see ​the relevant bug report]].+As of Midori 0.5.0 and libSoup 2.40 SOCKS proxies ​can be used, the Preferences dialog lists detected types and accepts curl syntax.
  
 libSoup < 2.40 only supports HTTP proxy servers directly. A way to use SOCKS on Unix is to use tsocks with SSH as follows: libSoup < 2.40 only supports HTTP proxy servers directly. A way to use SOCKS on Unix is to use tsocks with SSH as follows:
Line 393: Line 445:
 By default the right mouse button initiates gestures. By default the right mouse button initiates gestures.
  
-You can change the button using a hidden option:+You can change the button ​(for example, to the middle mouse button) ​using a hidden option:
  
-  - Create a text file ~/​.config/​midori/​extensions/​libmouse-gestures.so/​config .+  - Create a text file ~/​.config/​midori/​extensions/​libmouse-gestures.so/​**config** .
   - Type the following in there:   - Type the following in there:
  
Line 401: Line 453:
     button=2     button=2
  
-For a quick and dirty overview ​of the gestures in the current release take a look at the [[http://www.matthiaskruk.de/midori/mouse-gestures.pdf|preliminary manual]]+As of Midori 0.5.0 individual ​gestures ​can be configured freely ​in the file ~/.config/midori/extensions/​libmouse-gestures.so/​**gestures** ​
-Further information is available ​at the [[http://​www.matthiaskruk.de/​midori|MGX website]].+Consult "​midori --help-execute"​ for a list of available ​actions, which are placed on the left of the equals signOn the right goes a sequence of directions, (W)est, (E)east, (N)orth, (S)outh, (S)outh(W)est,​ etc., with a semicolon (;) after each, as shown below:
  
-Additionally,​ there are programs allowing mouse gestures ​system-wide,​ for example [[http://​easystroke.wiki.sourceforge.net/​|EasyStroke]].+    [gestures] 
 +    Quit=W;E; 
 +    TabPrevious=SW;​ 
 +    TabNext=SE;
  
 +Additionally,​ there are programs allowing mouse gestures system-wide,​ for example [[http://​easystroke.wiki.sourceforge.net/​|EasyStroke]].
 ====== User scripts and styles ====== ====== User scripts and styles ======
  
Line 456: Line 512:
 Customize as needed: Customize as needed:
  
-<​code>​a[href]:​hover {+<​code ​css>​a[href]:​hover {
             text-decoration:​ none !important;             text-decoration:​ none !important;
         }         }
Line 470: Line 526:
             z-index: 9999;             z-index: 9999;
         }</​code>​         }</​code>​
 +
 +=== Tweaking fonts via CSS ===
 +
 +If changing system-wide font settings isn't bringing the desired results or rendering should be tweaked only for websites CSS can be an alternative. Add the following to **~/​.local/​share/​midori/​styles**,​ then restart Midori and make sure that it is enabled Tools → Userstyles.
 +
 +Customize as needed:
 +
 +<code css>* {
 +    font-smooth:​always;​
 +    -webkit-font-smoothing:​ antialiased;​
 +    text-rendering:​ optimizeLegibility
 +}</​code>​
 +
 +
 +===== Understanding WebKit Version Numbers =====
 +
 +WebKit is the core of the Midori browser and often shows up in bug reports. Because WebKit is a complex piece of software and compatible with various libraries, its version numbers and naming schemes are not always clear to end-users. Read on and be enlightened:​
 +
 +WebKit itself is a library which works in many environments,​ such as Windows, OS X, and various Linux DE. There are different "​ports",​ one of which corresponds to each of these environments,​ and each of which is slightly different in bugs and features at any given time. The WebKit port used by Midori (because Midori is built with GTK+) is WebKitGTK+.
 +
 +WebKitGTK+ can be compiled against either GTK+2 or GTK+3. This will result in library filenames like libwebkitgtk-1.0.so or libwebkitgtk-3.0.so,​ respectively. This has nothing to do with the version of WebKit itself.
 +
 +WebKit has a "new API layer ... designed from the ground up to support a split process model"​--so pages can crash without the entire browser crashing. This layer is called WebKit2, and for WebKitGTK+ it requires building against GTK+3, producing a library file called libwebkit2gtk-3.0.so.
 +
 +The version of WebKitGTK+ is only interesting from the standpoint of which API features were available and which bugs were present in that particular release; it's best checked by visiting about:​version.
 +
 +=== Version Number Interactions ===
 +
 +WebKit2 can be built even with quite old WebKit versions, though Midori'​s WebKit2 support requires version 2.0.0 or newer of WebKit. Current versions of WebKitGTK+ continues to support GTK+2 and GTK+3 (the latter since 1.4.x or so). As stated above, the WebKit2 API layer is only available with GTK+3.
 +
 +Midori'​s support for WebKit2 is still provisional,​ and likely unsuitable for real-world daily usage; much work is being done in this area so that Midori can use WebKit2 by default at some point in the future.
 +
 +====== Midori and mediaHerald ======
 +
 +
 +mediaHerald is a dbus service (/​org/​midori/​mediaHeraldallow) users to connect to dbus and check the titme and url of the video that midori plays in **YOUTUBE**,​ **VIMEO** or **DAILYMOTION**,​ the extension which does the work is called webmedia-now-playing.
 +
 +If you want to get the video title and the uri is easy more than easy :-) .
 +<code bash>
 +#!/bin/sh
 +
 +eval $(dbus-send --session --print-reply --dest=org.midori.mediaHerald /​org/​midori/​mediaHerald org.freedesktop.DBus.Properties.GetAll string:"​org.midori.mediaHerald"​ | awk '
 +    /​string ​ *"​VideoTitle/​{
 +        while (1) {
 +            getline line
 +            if (line ~ /string "/)
 +                sub(/​.*string /, "​TITLE=",​ line)
 +                print line
 +                break
 +            }
 +        }
 +        /​string ​ *"​VideoUri/​{
 +        while (1) {
 +            getline line
 +            if (line ~ /string "/)
 +                sub(/​.*string /, "​URI=",​ line)
 +                print line
 +                break
 +            }
 +        }
 +    ')
 +echo "​Midori is now playing: $TITLE ,the uri is: $URI"
 +</​code>​
midori/faq.txt · Last modified: 2014/04/18 21:30 by axlrose