builder: register html links and files with Midori

HTML files and links will open in a tab in Midori.

[YOCTO #3506]

(From OE-Core rev: 1177aee9a6761a6a46a6213f7c4d35827ea54022)

Signed-off-by: Mihai Prica <mihai.prica@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Mihai Prica 2013-08-30 16:47:36 +03:00 committed by Richard Purdie
parent 4f6358f444
commit 5c0e6cfdd9
1 changed files with 7 additions and 1 deletions

View File

@ -12,10 +12,16 @@ export GIT_PROXY_COMMAND=/home/builder/poky/scripts/oe-git-proxy
#start pcmanfm in daemon mode to allow asynchronous launch
pcmanfm -d&
#register folders to open with PCManFM filemanager
#register handlers for some file types
if [ ! -d /home/builder/.local/share/applications ]; then
mkdir -p /home/builder/.local/share/applications/
#register folders to open with PCManFM filemanager
xdg-mime default pcmanfm.desktop inode/directory
#register html links and files with Midori
xdg-mime default midori.desktop x-scheme-handler/http
xdg-mime default midori.desktop x-scheme-handler/https
xdg-mime default midori.desktop text/html
fi
cd /home/builder/poky