]> code.ossystems Code Review - openembedded-core.git/commitdiff
builder: register html links and files with Midori
authorMihai Prica <mihai.prica@intel.com>
Fri, 30 Aug 2013 13:47:36 +0000 (16:47 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 30 Aug 2013 15:07:33 +0000 (16:07 +0100)
HTML files and links will open in a tab in Midori.

[YOCTO #3506]

Signed-off-by: Mihai Prica <mihai.prica@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-graphics/builder/files/builder_hob_start.sh

index bef6878ec2efd1444957d461501f8a88f6d72cf3..be3f91108ab91ce57e71d842cc2630f047f4f2e7 100644 (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