diff options
Diffstat (limited to 'meta/recipes-graphics/builder/files/builder_session.sh')
-rw-r--r-- | meta/recipes-graphics/builder/files/builder_session.sh | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/meta/recipes-graphics/builder/files/builder_session.sh b/meta/recipes-graphics/builder/files/builder_session.sh new file mode 100644 index 0000000000..001a03357d --- /dev/null +++ b/meta/recipes-graphics/builder/files/builder_session.sh | |||
@@ -0,0 +1,33 @@ | |||
1 | #!/bin/sh | ||
2 | #This script will be called via mini X session on behalf of file owner, after | ||
3 | #installed in /etc/mini_x/session.d/. Any auto start jobs including X apps can | ||
4 | #be put here | ||
5 | |||
6 | # start hob here | ||
7 | export PSEUDO_PREFIX=/usr | ||
8 | export PSEUDO_LOCALSTATEDIR=/home/builder/pseudo | ||
9 | export PSEUDO_LIBDIR=/usr/lib/pseudo/lib64 | ||
10 | export GIT_PROXY_COMMAND=/home/builder/poky/scripts/oe-git-proxy | ||
11 | |||
12 | #start pcmanfm in daemon mode to allow asynchronous launch | ||
13 | pcmanfm -d& | ||
14 | |||
15 | #register handlers for some file types | ||
16 | if [ ! -d /home/builder/.local/share/applications ]; then | ||
17 | mkdir -p /home/builder/.local/share/applications/ | ||
18 | #register folders to open with PCManFM filemanager | ||
19 | xdg-mime default pcmanfm.desktop inode/directory | ||
20 | |||
21 | #register html links and files with epiphany | ||
22 | xdg-mime default epiphany.desktop x-scheme-handler/http | ||
23 | xdg-mime default epiphany.desktop x-scheme-handler/https | ||
24 | xdg-mime default epiphany.desktop text/html | ||
25 | |||
26 | #register text files with leafpad text editor | ||
27 | xdg-mime default leafpad.desktop text/plain | ||
28 | fi | ||
29 | |||
30 | cd /home/builder/poky | ||
31 | . ./oe-init-build-env | ||
32 | |||
33 | matchbox-terminal& | ||