2015-01-03, 22:52
(2014-12-30, 21:34)Angelscry Wrote:(2014-12-30, 20:45)graysky Wrote: Thanks for the code; I have it running on Kodi. I am using it to simply launch /usr/bin/chromium which it does, but the resulting browser runs in a smaller window which I am unable to modifyx. What am I doing wrong?If you use Kodi into standalone mode, so it means that you do not have any windows manager actually running. So you system is not able to correctly display and manage application windows (like the chromium one). If you want to start correctly external application you mainly have 2 solutions:
I am launching kodi via a systemd service that does this:
Code:/usr/bin/xinit /usr/bin/dbus-launch --exit-with-session /usr/bin/kodi-standalone2 -- :0 -nolisten tcp vt7
- start XBMC into a light desktop/windows manager (so not into standalone-mode) and then start your applications simply directly from XBMC.
- continue to use XBMC into standalone mode, but then start form XBMC scripts that will launch a desktop/windows manager prior to start your applications.
I created ~/bin/firefox-launch which contains:
Code:
#!/bin/bash
openbox &
/usr/bin/firefox
killall -9 openbox
I linked that to a launcher but when I invoke it through Advanced Launcher, nothing happens... I do see openbox and firefox running but not on my screen, see PIDs 6926 2927 below:
Code:
% pg kodi
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
kodi 6678 0.0 0.0 15920 964 ? Ss 15:47 0:00 /usr/bin/xinit /usr/bin/dbus-launch --exit-with-session /usr/bin/kodi-standalone -- :0 -nolisten tcp vt7
kodi 6680 0.0 0.1 35636 4176 ? Ss 15:47 0:00 /usr/lib/systemd/systemd --user
kodi 6682 0.0 0.0 82008 1664 ? S 15:47 0:00 (sd-pam)
kodi 6687 0.0 0.0 88188 1688 ? S 15:47 0:00 (sd-pam
kodi 6688 0.5 0.7 269264 29756 tty7 S<sl+ 15:47 0:01 /usr/bin/Xorg.bin :0 -nolisten tcp vt7
kodi 6692 0.0 0.0 11848 2704 ? S 15:47 0:00 /bin/sh /usr/bin/kodi-standalone
kodi 6695 0.0 0.0 15928 148 ? S 15:47 0:00 /usr/bin/dbus-launch --exit-with-session /usr/bin/kodi-standalone
kodi 6696 0.0 0.0 31004 2120 ? Ss 15:47 0:00 /usr/bin/dbus-daemon --fork --print-pid 4 --print-address 6 --session
kodi 6700 0.0 0.0 11848 2736 ? S 15:47 0:00 /bin/sh /usr/bin/kodi --standalone
kodi 6709 4.0 3.0 1801444 124028 ? Sl 15:47 0:09 /usr/lib/kodi/kodi.bin --standalone
kodi 6925 0.0 0.0 11848 2556 ? S 15:50 0:00 /bin/bash /var/lib/kodi/bin/firefox-launch
kodi 6926 0.0 0.3 175192 15676 ? S 15:50 0:00 openbox
kodi 6927 5.5 3.9 784460 158048 ? Sl 15:50 0:03 /usr/bin/firefox
kodi 6932 0.0 0.1 41624 4236 ? S 15:50 0:00 /usr/lib/GConf/gconfd-2
kodi 6946 0.0 0.1 261664 7172 ? Sl 15:50 0:00 /usr/lib/at-spi2-core/at-spi-bus-launcher
kodi 6952 0.0 0.1 212800 5980 ? Sl 15:50 0:00 /usr/lib/gvfs/gvfsd
kodi 6956 0.0 0.1 296220 6588 ? Sl 15:50 0:00 /usr/lib/gvfs/gvfsd-fuse /run/user/420/gvfs -f -o big_writes
Note pg is an alias:
Code:
% which pg
pg: aliased to echo "USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND" && ps aux | grep --color=auto