Patchwork [3/3] builder: register directories with pcmanfm

login
register
mail settings
Submitter Cristian Iorga
Date Aug. 20, 2013, 6:05 p.m.
Message ID <4ebf834a2a35217d96f4d7e4a43efd141ddad752.1377021737.git.cristian.iorga@intel.com>
Download mbox | patch
Permalink /patch/56073/
State Accepted
Commit 06d1e6db91497ad86803f9a5ed2346cd23cfa744
Headers show

Comments

Cristian Iorga - Aug. 20, 2013, 6:05 p.m.
Register directories to be opened with PCManFM
filemanager using xdg-open in Build Appliance.

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
---
 meta/recipes-graphics/builder/files/builder_hob_start.sh | 9 +++++++++
 1 file changed, 9 insertions(+)

Patch

diff --git a/meta/recipes-graphics/builder/files/builder_hob_start.sh b/meta/recipes-graphics/builder/files/builder_hob_start.sh
index 40616f5..b3a0540 100644
--- a/meta/recipes-graphics/builder/files/builder_hob_start.sh
+++ b/meta/recipes-graphics/builder/files/builder_hob_start.sh
@@ -9,6 +9,15 @@  export PSEUDO_LOCALSTATEDIR=/home/builder/pseudo
 export PSEUDO_LIBDIR=/usr/lib/pseudo/lib64
 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
+if [ ! -d /home/ubik/tmp/.local/share/applications ]; then
+    mkdir -p /home/builder/.local/share/applications/
+    xdg-mime default pcmanfm.desktop inode/directory
+fi
+
 cd /home/builder/poky
 . ./oe-init-build-env