diff --git a/docs/user/midori.css b/data/faq.css similarity index 100% rename from docs/user/midori.css rename to data/faq.css diff --git a/data/faq.html b/data/faq.html new file mode 100644 index 00000000..419ec605 --- /dev/null +++ b/data/faq.html @@ -0,0 +1,847 @@ + + + + + midori:faq + + + + + + + + + + + + + + + + + +
+ +
+
Table of Contents
+ +
+ + +

Midori - Frequently asked questions

+
+ +

+ +This document is licensed under the LGPL 2.1. +

+ +

+This is a list of frequently asked questions about the Midori Web Browser. Anyone feel free to improve and/ or extend this page, but keep it clean and easy to read for other Xfce users. +

+ +
+ +

Getting started

+
+ +
+ +

About Midori

+
+ +
+ +

What is "Midori" and why should I use it?

+
+ +

+Midori is a Web Browser, that aims to be lightweight and fast. It aligns well with the Xfce philosophy of making the most out of available resources. +

+ +
+ +

How to pronounce Midori and what does the name mean?

+
+ +

+Pronounce it “midoɺi”, with a Spanish/ Japanese “r” or “Mee-Doh-Ree” in English or read it Italian. The name comes from the Japanese word 緑 (みどり) for the colour “green”. +

+ +
+ +

What does the logo mean?

+
+ +

+The paw of a green cat. Obviously. Also it resembles the letter “M” in “Midori”. The curving is supposed to emphasize speed. +

+ +
+ +

On which platforms does Midori run currently?

+
+ +

+Midori is basically very portable and should run on all platforms that its dependencies support. +

+ +
+ +

Under which license is Midori distributed?

+
+ +

+Midori and all delivered artwork are licensed under the LGPL2. + +

+ +
+ +

Common problems

+
+ +
+ +

Why does Google Mail/ Calendar/ Maps, Facebook not work or show mobile version?

+
+ +

+ +Because they discriminate against your browser. Go to Preferences > Network > Identify As, and choose Safari. +Many other websites use similar means of detecting the browser. +

+ +

+Ideally Google would follow their own recommendation at some point. +

+ +
+ +

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 Tango or Gnome, or one that is compatible with these. +

+ +
+ +

Tweaking Midori on the Gtk level

+
+ +

+If you don't have a desktop application that takes care of Gtk settings or if your interface doesn't support a particular feature, you can modify any settings easily manually by specifying them in a text file called ~/.gtkrc-2.0 or /etc/gtk-2.0/gtkrc: +

+ +

+Use Tango as a fallback for your icon theme: + +

+
gtk-icon-theme-name = "MySuperFancyTheme"
+gtk-fallback-icon-theme = "Tango"
+ +

+Use a smaller toolbar: + +

+
gtk-toolbar-icon-size = GTK_ICON_SIZE_SMALL_TOOLBAR
+ +

+Enable changing hotkeys while hovering menu items: + +

+
gtk-can-change-accels = 1
+ +
+ +

Midori crashes shortly before pages are loaded

+
+ +

+There appears to be an issue with Glib 2.16. The recommended solution is to upgrade your Glib package to 2.18. +

+ +
+ +

Flash/ Netscape plugins don't work

+
+ +

+You need to set MOZ_PLUGIN_PATH, for example like this: +

+
export MOZ_PLUGIN_PATH="/usr/lib/mozilla/plugins"
+ +

+The official Flash plugin is called libflashplayer.so . +

+ +

+You can either run that above line and run Midori in the same terminal afterwards or, for the long term, put it in ~/.bash_profile or /etc/profile.d or your respective distribution's place for this. +

+ +
+ +

Flash is crashing all the time

+
+ +

+ +Try searching for a package named nspluginwrapper or similar in your distribution repositories. It implements plugins in their own process so they can't drag down the whole browser. +

+ +
+ +

HTTPS URLS won't load

+
+ +

+ +That's a problem with WebKit. You can work around it to some extent if you start Midori like so: +

+
export WEBKIT_IGNORE_SSL_ERRORS="1" midori
+ +
+ +

Javascript Popup windows

+
+ +

+ +By default, Midori blocks all popup windows that openen on their own. With WebKitGTK+ 1.1.11 or higher, you can use a hidden setting to enable these windows. + +

+
    +
  1. Quit Midori
    +
  2. +
  3. Open the file ~/.config/midori/config
    +
  4. +
  5. Add a line “javascript-can-open-windows-automatically=true”
    +
  6. +
+ +

+ +There is also a preference in the git version as of 2010-03-23. +

+ +
+ +

Scroll with middle mouse button

+
+ +

+ +http://ubuntuforums.org/showthread.php?t=478418 +

+ +
+ +

HTML5 Video doesn't play

+
+ +

+ +You need to have GStreamer plugins installed which implement the codecs. + +

+
    +
  1. You need gstreamer0.10-pulse if you're using PulseAudio.
    +
  2. +
  3. You may need gstreamer0.10-alsa for ALSA, depending on your distribution.
    +
  4. +
  5. With Arch Linux, you may need to install liboil explicitly if it is not installed already (see this bug report).
    +
  6. +
  7. You need plugins for Theora, gstreamer0.10-base and MPEG-4 incluing aac (e.g. gst-plugins-faad), gstreamer0.10-bad. For WebM, you'll need plugins for vorbis (-base), matroska (-good), and vp8 (-bad). Have a look at http://www.gstreamer.net/documentation/plugins.html for details.
    +
  8. +
  9. For Youtube or Vimeo, you need WebKitGTK+ 1.1.20 or newer.
    +
  10. +
+ +
+ +

Java doesn't work, applets don't show up

+
+ +

+ +Java is supported in WebKitGTK+ since 1.1.22. If you need Java, you need to upgrade to at least that version. Sun/ Oracle Java as well as IcedTea are known to work. Distribution specific setup might be required, such as setting LD_LIBRARY_PATH to include the location of libxul.so and making a symbolic link for libnpjp2.so to /usr/lib/mozilla. +

+ +

+icedtea6 version 1.8 and above has been known to crash midori. If this is the case for you, try sun-jre. +

+ +
+ +

Are SOCKS proxy servers supported?

+
+ +

+ +Currently only HTTP proxy servers are supported directly. A way to use SOCKS on Unix is to use tsocks with SSH as follows: + +

+
    +
  1. Install 'tsocks'
    +
  2. +
  3. Open /etc/tsocks.conf in an editor
    +
  4. +
  5. Type something like this, you can choose the port freely:
    server = 127.0.0.1
    +server_type = 5
    +server_port = 5555
    +
    +
  6. +
  7. Open an SSH connection with the same port:
     ssh -D localhost:5555 myhost.com 
    +
    +
  8. +
  9. Run Midori with “tsocks” in front of it:
     tsocks midori 
    +
    +
  10. +
  11. Now you can use for example http://www.whatsmyip.org/ to verify that you are using a SOCKS connection. The IP address should match the one of your SSH host. Remember to keep the SSH login running, and don't suspend it, otherwise it won't work.
    +
  12. +
  13. If the connection fails for some reason, you should see a connection error.
    +
  14. +
+ +
+ +

How do I get rid of the menubar?

+
+ +

+ +In the menubar, go to View → Toolbars → Menubar, voilà the menubar is gone and a new icon appears at the right end of the toolbar. Click the icon to access functionality that otherwise sits in the menubar. +Midori 0.3.2 disables the menubar by default. +

+ +
+ +

Why can't I use periods when searching from the location bar?

+
+ +

+ +Midori tries to make a smart guess on whether you are searching for something or typing a valid address by hand. Yet there are ambiguous cases so it fails. +

+ +

+Try using 'g' in front of the search terms, like 'g Ms.Marple'. The 'g' is a token that tells the browser you want to use Google. See Tools > Manage Search Engines or right-click the location bar and select the menu item, to look at search engines and tokens. +

+ +
+ +

How can I reload and bypass the cache?

+
+ +

+ +Hold the Shift key while clicking Refresh in the toolbar (this works in Chromium, Mozilla, Opera and Safari, too). +Since Midori 0.3.2 you can use Ctrl+Shift+R. +

+ +
+ +

How do I make tabs pinned/ sticky/ minimized?

+
+ +

+ +Right-click the tab label, and click 'Minimize'. +

+ +
+ +

Why doesn't Google "live search" work?

+
+ +

+ +You need to set Preferences > Network > Identify As to Firefox. +

+ +
+ +

Opening html email with Mutt

+
+ +

+ +Place the following in ~/.mutt/mailcap or ~/.mailcap: +

+
text/html; midori -a '%s'; test=test -n "$DISPLAY"; nametemplate=%s.html
+ +
+ +

Scrolling on website xyz is very slow

+
+
    +
  1. Go to Tools > Extensions
    +
  2. +
  3. Enable 'User Addons' if it's not yet enabled
    +
  4. +
  5. Create a text file .local/share/midori/styles/scrollfix.user.css
    +
  6. +
  7. Put this into the file: * {-webkit-box-shadow: none !important;}
    +
  8. +
+ +
+ +

File opening doesn't work/ PDFs are opened with GIMP

+
+ +

+ +Midori opens files with GIO, and falls back to xdg-open, exo-open or gnome-open if these are available. All of this relies on freedesktop.org MIME configuration. To tweak this there are multiple options: + +

+
    +
  1. Use 'Open With' with a graphical file manager
    +
  2. +
  3. Edit ~/.local/share/applications/defaults.list with a text editor
    +
  4. +
  5. Run something like ‘xdg-mime default evince.desktop application/pdf’
    +
  6. +
+ +

+ +xdg-open knows how to handle GNOME, KDE and Xfce. +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

+
+ +

+ +As of git 2011-03-05 02:40:00 UTC and Midori 0.3.3 you can +

+ +

+Add a line to ~/.local/share/applications/mimeapps.list: + +

+
  x-scheme-handler/magnet=transmission-gtk.desktop
+ +

+ +Or install an application which advertises the scheme like so: + +

+
  MimeType=x-scheme-handler/magnet;
+ +

+ +Note that incomplete .desktop files will silently fail and it will look as if it doesn't exist. +

+ +
+ +

Features

+
+ +
+ +

Web Applications/ Private Browsing

+
+ +

+ +There are two closely related features to open websites as dedicated windows of their own. You can do the following to use them: + +

+
    +
  1. File (or Globe button) → Private Browsing
    +
  2. +
  3. Right-click a hyperlink → Open as Web Application
    +
  4. +
  5. Add or Edit a bookmark → [x] Run as web application
    +
  6. +
  7. Type ‘midori -a http://foo.bar’ on a command line
    +
  8. +
+ +

+ You can also add options such as ‘-e Fullscreen’, ‘-e Navigationbar’ or ‘-e Statusbar’ (as of Midori 0.2.9 ‘midori –help-execute will list all available commands’) +

+ +

+A window like this is always a separate process, so crashes don't affect the normal browser session. No sensitive data such as cookies, history or bookmarks are stored. No extensions are loaded. Panels are not available. +

+ +

+As of Midori 0.2.9 Private Browsing uses preferences, cookies, keyboard shortcuts and search engines from the normal session, but it won't save any changes. This behaviour can be emulated from the command line with ”-a” and ”-c”. +

+ +
+ +

Download Managers

+
+ +

+ +Midori can start downloads with an external download manager. To use that feature, open up the “Preferences” dialog, click the “Applications” tab, insert the name of a program executable or shell script in the “Download Manager” input box, right-click a link, and click “Download with Download Manager”. There is a list of download managers on Wikipedia. +

+ +
+ +

Admiral

+
+ +

+Admiral is a shell script that utilizes aria2, Zenity, and libnotify-bin. Admiral allows you to choose the directory to which you wish download a file with a GUI dialog, sends a desktop notification if the download fails and when starting and finishing the download, and logs failures. +

+ +
+ +

Aria2

+
+ +

+ +aria2 is a lightweight multi-protocol & multi-source, cross platform download utility operated in command-line. It supports HTTP/HTTPS, FTP, BitTorrent and Metalink. aria2 has built-in XML-RPC interface. You can manipulate aria2 via XML-RPC interface. +

+ +
+ +

Uget (former Urlgfe)

+
+ +

+ +UGet is a cross platform download manager. It can watch the clipboard to offer download dialogues automatically and it can be configured to pass through files, such as torrents, to the appropriate handler. +

+ +
+ +

GGet

+
+ +

+ +GGet is a download manager primarily for the GNOME desktop, but it also works in other unix/ GTk+ environments. +

+ +
+ +

Proxy servers

+
+ +

+ +By running a local proxy you can modify web content even before it has reached Midori. That allows you to do things similar to what user scripts and user styles provide and even others that neither is suitable for. +

+ +

+To use Midori with a proxy server, there are two options: + +

+
    +
  1. WebKit is built with libcurl. Define an environment variable http_proxy and set it to your proxy server like so:
    +
  2. +
+
export http_proxy = 234.22.154.11:8000
+
    +
  1. 2. WebKit is built with libsoup. Midori >= 0.1.2, is built with libsoup. Try to open some web page. Now open the preferences, and you should see a Network tab with a 'Proxy server' field.
    +
  2. +
+ +
+ +

Privoxy

+
+ +

+ +Privoxy is a non-caching web proxy with filter capabilites and particular support for blocking advertisements before even loading them. +

+ +

+http://www.privoxy.org/faq/ +

+ +
+ +

Mousehole

+
+ +

+ +Mousehole is a scriptable proxy server written in Ruby. +

+ +

+http://code.whytheluckystiff.net/mouseHole/ +

+ +
+ +

Polipo

+
+ +

+ + Polipo is a caching web proxy (a web cache) designed to be used by one + person or a small group of people. It is similar in spirit to WWWOFFLE, but + the implementation techniques are more like the ones used by Squid. +

+ +

+http://www.pps.jussieu.fr/~jch/software/polipo/ +

+ +
+ +

Using the Keyboard

+
+ +
+ +

Following Links

+
+ +

+ +To enable Hints in Midori [similar to those vimperator provides in Firefox], press . +

+ +

+With hints enabled, type the link number, and press Enter to open the link in the current tab, or Ctrl-Enter to open the link in a new tab. To clear a typed link number before pressing Enter or Ctrl-Enter, use Escape. +

+ +
+ +

Toggling between pages

+
+ +

+ +Enable the History List extension Tools → Extensions. Now you can conveniently toggle between any two pages with Ctrl-Tab. +

+ +
+ +

Customizing keyboard shortcuts

+
+ +

+ +Enable the Shortcuts extension Tools → Extensions. To edit a keybinding Tools → Customize Shortcuts… + +

+ +
+ +

Mouse Gestures

+
+ +

+ +Midori has a Mouse Gestures extension (since git 2009-01-21). +

+ +

+As of 0.2.5 the right button initiates gestures. +

+ +

+You can change the button using a hidden option: + +

+
    +
  1. Create a text file ~/.config/midori/extensions/libmouse-gestures.so/config .
    +
  2. +
  3. Type the following in there:
    +
  4. +
+
  [settings]
+  button=2
+ +

+ +For a quick and dirty overview of the gestures in the current release take a look at the preliminary manual. +Further information is available at the MGX website. +

+ +

+Additionally, there are programs allowing mouse gestures system-wide, for example EasyStroke. +

+ +
+ +

Spell check

+
+ +

+ +First enable spell checking: +Edit→Preferences→Behavior and Check off “Enable Spell Checking”. +

+ +

+Now while typing any errors should get underlined in red. To get suggestions, highlight the word and right-click. Should see a list of suggestions on the top of the menu. +

+ +
+ +

User scripts

+
+ +
+ +

Overview

+
+ +

+ +UserScripts are scripts applied on some, or on all web pages. They can modify pages locally to add or alter functionality. That includes fixing bugs in web pages. User scripts are also available in other browsers, in the form of Mozilla's Greasemonkey or Opera's User JavaScript. +

+ +
+ +

How to install a UserScript

+
+ +

+ +First, you need to find some scripts (or write your own). You can find some at userscripts.org. As explained previously, a lot of scripts work, while others do not work. +

+ +

+To install a userscript, you have to download the script as a file, and put it in the following directory ~/.local/share/midori/scripts (you may need to create that directory if it does not exist). Midori will automatically see and use it, which you can also see in the user scripts panel. +

+ +

+Note, if the script is only shown as source code on the page, you first have to create a new text file in a text editor, copy the source code into the new file, and save it as my-user-script.js where ”.js” is the extension. +

+ +
+ +

Flash blocking via a User script

+
+ +

+ +You can use BlockFlash2 as a user script which replaces all Flash elements with a button that says “Play Flash”. +

+ +
+ +

Flash blocking via a User style

+
+ +

+ +You can also use FlashBlock WannaBe as a user script in order to replace Flash elements with placeholders and load them on click. The script is pretty advanced compared to most Flash blockers found on the web. +

+ +
+ +

User styles

+
+ +
+ +

Overview

+
+ +

+ +User styles are CSS Cascading Style sheets that are loaded locally and applied on top of web pages, similar to User scripts, in order to add or alter functionality and also fix bugs. +

+ +
+ +

How to install a user style

+
+ +

+ +First, you need to find some styles (or write your own). You can find some at userstyles.org. Many styles may or may not work, depending on whether the author decided to use browser specific features. +

+ +

+To install a user style, you have to download the style as a file, and put it in the following directory ~/.local/share/midori/styles (you may need to create that directory if it does not exist). Midori will automatically see and use it, which you can also see in the user styles panel. +

+ +

+Note, if the style is only shown as source code on the page, you first have to create a new text file in a text editor, copy the source code into the new file, and save it as my-user-style.css where ”.css” is the extension. +

+ +
+ +

How to install a user style before Midori 0.0.20

+
+ +

+ +Open up the Preferences and use the file chooser button beside User Stylesheet to choose a style sheet file. The style sheet will from now on be applied to all sites automatically. +

+ +
+ +

A user css to display the url when a link is hovered

+
+ +

+ +This user css is used to display the corresponding url when a link is hovered. This is similar to what chromium/chrome provides when hovering over a link, shown on the bottom left of the page. Add the following to ~/.local/share/midori/styles, then restart Midori and make sure that it is enabled Tools → Userstyles. +

+ +

+Customize as needed: +

+
a[href]:hover {
+            text-decoration: none !important;
+        }
+        a[href]:hover:after {
+            content: attr(href);
+            position: fixed; left: 4px; bottom: 4px;
+            padding: 0 6px !important;
+            max-width: 95%; overflow: hidden;
+            white-space: nowrap; text-overflow: ellipsis;
+            font:10pt sans-serif !important; text-shadow: 0 0 12px white;
+            background-color: ButtonFace !important; color: ButtonText !important;
+            opacity: 0.8; outline: ButtonFace solid thick;
+            z-index: 9999;
+        }
+ +
+
+ + diff --git a/docs/user/midori.txt b/docs/user/midori.txt deleted file mode 100644 index 3e30f092..00000000 --- a/docs/user/midori.txt +++ /dev/null @@ -1,255 +0,0 @@ -.. |(version)| replace:: 0.2.2 - -''''''' - Midori -''''''' - ------------------------------------------ - A lightweight, portable GTK+ web browser ------------------------------------------ - -:Authors: Christian Dywan -:Date: $Date: 2009-11-18 18:20:11 +0100 (Wed, 18 Nov 2009) $ -:Version: |(version)| - -Copyright © 2008-2009 - -This documentation is distributed under the terms of the -`GNU Lesser General Public License`_; you can redistribute it and/or -modify it under the terms of the GNU Lesser General Public -License as published by the Free Software Foundation; either -version 2.1 of the License, or (at your option) any later version. - - -.. contents:: - - - -Introduction -'''''''''''' - - -What is Midori --------------- - -Midori is a lightweight and portable web browser based on Gtk+. The -interface is designed to be intuitive yet powerful. - -* Full integration with GTK+2. -* Fast rendering with WebKit. -* Tabs, windows and session management. -* Flexibly configurable Web Search. -* User scripts and user styles support. -* Straightforward bookmark management. -* Customizable and extensible interface. -* Extensions written in C. - - -Running Midori --------------- - - -* If you are using a graphical desktop environment you will usually find - Midori in the menu under Network. - -* You can also run Midori from a console or a Run dialog. - See also `Command line usage`. - - $ midori - -A browser window appears where you can start navigating the web right away. - - -The main interface --------------------------- - - -The main browser window consists of a few basic elements: - - -* The menubar. It's pretty much standardized and gives you access to - allmost all features, many of the items have a keyboard shortcut by default. - See also `Keyboard shortcuts`_. - -* The navigationbar. It lets you open tabs, go back and forward, enter - addresses, search the web and reopen closed tabs. - See also `The navigationbar`. - -* The sidepanel. It takes a pretty central role in the functionality it provides, - yet it can be hidden and resized to not distract you. - See also `The sidepanel`. - -* The statusbar. It displays informational text when hovering something - with a pointer. That's it. - - -Taking a closer look -'''''''''''''''''''' - - -Command line usage ------------------- - - -Running Midori normally works as follows: - - -* $ midori - - Just run a new instance of Midori. If an instance of Midori is already - running a new window in that instance will be opened. - -* $ midori [URIs] - - You can supply any number of URIs to open as arguments. If you have a - saved session or a running instance they will be added to the last - active window. - -* $ midori [URI1]|[URI2]|... - - You can separate URIS by a pipe (|) as well. They are handled as if you - provided all URIs as separate arguments. - -* $ midori --run [JAVASCRIPT] - - If you pass the filename of a javascript Midori will attempt to run - the contents of the file as javascript code. - - -Note that support for opening tabs in an existing instance depends on -your build and may not be available on some platforms. - - -The following arguments are supported if you call Midori from a command line. - - -+-------+--------------------+------------------------------------------------+ -| Short | Long option | Function | -+=======+====================+================================================+ -| -a | --app | Run ADDRESS as a web application | -+-------+--------------------+------------------------------------------------+ -| -c | --config | Use FOLDER as configuration folder | -+-------+--------------------+------------------------------------------------+ -| -r | --run | Run the specified filename as javascript | -+-------+--------------------+------------------------------------------------+ -| -s | --snapshot + Take a snapshot of the specified URI | -+-------+--------------------+------------------------------------------------+ -| -V | --version | Show version information and exit. | -+-------+--------------------+------------------------------------------------+ - - -Configuration files -------------------- - - -The configuration files in Midori that save related states are by default -stored in the folder ~/.config/midori in the home directory. It is possible -to use a different folder by specifying '--config' on the command line. - -The files stored in the primary configuration folder are the following: - -+----------------+------------------------------------------------------------+ -| Filename | Contents | -+================+============================================================+ -| accels | Keyboard shortcuts, GtkAccelMap resource | -+----------------+------------------------------------------------------------+ -| bookmarks.xbel | Bookmarks, XBEL | -+----------------+------------------------------------------------------------+ -| config | Preferences, text key file | -+----------------+------------------------------------------------------------+ -| cookies.txt | Cookies, Mozilla text cookies | -+----------------+------------------------------------------------------------+ -| history.db | History, sqlite3 | -+----------------+------------------------------------------------------------+ -| logins | Usernames and passwords, plain text | -+----------------+------------------------------------------------------------+ -| running | A file created to track whether Midori quit cleanly | -+----------------+------------------------------------------------------------+ -| search | Search engines, text key file | -+----------------+------------------------------------------------------------+ -| session.xbel | The current or last session, ie. open tabs, | -+----------------+------------------------------------------------------------+ -| tabtrash.xbel | The 10 last closed tabs | -+----------------+------------------------------------------------------------+ - -Note that generally manual modifications to these files aren't recommended. As -an exception, while Midori is *not* running, it is possible to edit or -replace the 'bookmarks.xbel' as long as it is valid XBEL/ XML. - -Currently while Midori is running it will happily overwrite files as needed and -never read back any changes. - - -Keyboard shortcuts ------------------- - - -... - - -The navigationbar ------------------ - - -The navigationbar is the primary toolbar containing notably back and forward -buttons, the location entry and a search entry. The "Toolbar Editor" extension -can be used to add or remove items. - - -The sidepanel -------------- - - -... - - -Extensions ----------- - - -... - - -Frequently asked questions -'''''''''''''''''''''''''' - - -How do you pronounce Midori and what does it mean anyway? ---------------------------------------------------------- - -Pronounce it "midoɺi", with a Bavarian/ Japanese "r" or "Mee-Doh-Ree" -in English or read it Italian. The name comes from the Japanese word -緑 (みどり) for the colour "green". - - -What does the logo mean? ------------------------- - -The paw of a green cat. Obviously. Also it resembles the letter "M" -in "Midori". The curving is supposed to emphasize speed. - - -On which platforms does Midori run currently? ---------------------------------------------- - -Midori is basically very portable and should run on all platforms that -its dependencies support. - - - -Under which license is Midori distributed? ------------------------------------------- - -Midori, documentation and all delivered artwork are licensed under the LGPL2. - - -GNU Lesser General Public License -''''''''''''''''''''''''''''''''' - -:: - - GNU LESSER GENERAL PUBLIC LICENSE - Version 2.1, February 1999 - - FIXME: Provide full license text - diff --git a/midori/midori-browser.c b/midori/midori-browser.c index 44b9cdb4..c5cdded8 100644 --- a/midori/midori-browser.c +++ b/midori/midori-browser.c @@ -3032,7 +3032,7 @@ midori_preferences_response_help_cb (GtkWidget* preferences, MidoriBrowser* browser) { if (response == GTK_RESPONSE_HELP) - gtk_action_activate (_action_by_name (browser, "HelpContents")); + gtk_action_activate (_action_by_name (browser, "HelpFAQ")); } static void @@ -4589,20 +4589,20 @@ _action_help_link_activate (GtkAction* action, #endif action_name = gtk_action_get_name (action); - if (!strncmp ("HelpContents", action_name, 12)) + if (!strncmp ("HelpFAQ", action_name, 7)) { #ifdef G_OS_WIN32 { #ifdef DOCDIR - gchar* path = sokoke_find_data_filename ("doc/midori/user/midori.html"); + gchar* path = sokoke_find_data_filename ("doc/midori/faq.html"); uri = free_uri = g_filename_to_uri (path, NULL, NULL); if (g_access (path, F_OK) != 0) { - if (g_access (DOCDIR "/user/midori.html", F_OK) == 0) - uri = "file://" DOCDIR "/user/midori.html"; + if (g_access (DOCDIR "/faq.html", F_OK) == 0) + uri = "file://" DOCDIR "/faq.html"; else #endif - uri = "error:nodocs share/doc/midori/user/midori.html"; + uri = "error:nodocs share/doc/midori/faq.html"; #ifdef DOCDIR } g_free (path); @@ -4610,14 +4610,12 @@ _action_help_link_activate (GtkAction* action, } #else #ifdef DOCDIR - uri = "file://" DOCDIR "/user/midori.html"; - if (g_access (DOCDIR "/user/midori.html", F_OK) != 0) + uri = "file://" DOCDIR "/faq.html"; + if (g_access (DOCDIR "/faq.html", F_OK) != 0) #endif - uri = "error:nodocs " DOCDIR "/user/midori.html"; + uri = "error:nodocs " DOCDIR "/faq.html"; #endif } - else if (!strncmp ("HelpFAQ", action_name, 7)) - uri = "http://wiki.xfce.org/midori/faq"; else if (!strncmp ("HelpBugs", action_name, 8)) uri = PACKAGE_BUGREPORT; else @@ -5126,11 +5124,8 @@ static const GtkActionEntry entries[] = N_("Open the tabs saved in the last session"), NULL }, { "Help", NULL, N_("_Help") }, - { "HelpContents", GTK_STOCK_HELP, - N_("_Contents"), "F1", - N_("Show the documentation"), G_CALLBACK (_action_help_link_activate) }, - { "HelpFAQ", NULL, - N_("_Frequent Questions"), NULL, + { "HelpFAQ", GTK_STOCK_HELP, + N_("_Frequent Questions"), "F1", N_("Show the Frequently Asked Questions"), G_CALLBACK (_action_help_link_activate) }, { "HelpBugs", NULL, N_("_Report a Bug"), NULL, @@ -5381,7 +5376,6 @@ static const gchar* ui_markup = "" "" "" - "" "" "" "" diff --git a/wscript b/wscript index 32775265..80a1fa7f 100644 --- a/wscript +++ b/wscript @@ -98,19 +98,6 @@ def configure (conf): sys.exit (1) conf.check_tool ('glib2') - if option_enabled ('userdocs'): - conf.find_program ('rst2html.py', var='RST2HTML') - # debian renames the executable, check that as well :( - if not conf.env['RST2HTML']: - conf.find_program ('rst2html', var='RST2HTML') - if conf.env['RST2HTML']: - user_docs = 'yes' - else: - option_checkfatal ('userdocs', 'user documentation') - user_docs = 'N/A' - else: - user_docs = 'no ' - if option_enabled ('nls'): conf.check_tool ('intltool') if conf.env['INTLTOOL'] and conf.env['POCOM']: @@ -329,7 +316,6 @@ def configure (conf): Notifications: %(libnotify)s (libnotify) IDN support: %(idn)s (libidn or libsoup 2.27.90) - User documentation: %(user_docs)s (docutils) API documentation: %(api_docs)s (gtk-doc) ''' % locals ()) if unique == 'yes' and conf.check_cfg (modversion='unique-1.0') == '1.0.4': @@ -368,7 +354,6 @@ def set_options (opt): group.add_option ('--update-po', action='store_true', default=False, help='Update localization files', dest='update_po') add_enable_option ('docs', 'informational text files', group) - add_enable_option ('userdocs', 'user documentation', group) add_enable_option ('apidocs', 'API documentation', group, disable=True) group = opt.add_option_group ('Optional features', '') @@ -419,24 +404,11 @@ def build (bld): if bld.env['docs']: bld.install_files ('${DOCDIR}/', \ - 'AUTHORS COPYING ChangeLog EXPAT README') + 'AUTHORS COPYING ChangeLog EXPAT README data/faq.html data/faq.css') # Install default configuration bld.install_files ('${SYSCONFDIR}/xdg/' + APPNAME + '/', 'data/search') - if bld.env['RST2HTML']: - # FIXME: Build only if needed - Utils.check_dir (blddir) - Utils.check_dir (blddir + '/docs') - Utils.check_dir (blddir + '/docs/user') - os.chdir (blddir + '/docs/user') - command = bld.env['RST2HTML'] + ' -stg ' + \ - '--stylesheet=../../../docs/user/midori.css ' + \ - '../../../docs/user/midori.txt ' + 'midori.html' - Utils.exec_command (command) - os.chdir ('../../..') - bld.install_files ('${DOCDIR}/user/', blddir + '/docs/user/midori.html') - if bld.env['INTLTOOL']: obj = bld.new_task_gen ('intltool_po') obj.podir = 'po'