Posts: 7,135
Joined: Oct 2012
un1versal
Out of Memory (1939–2016)
Posts: 7,135
Use systemd config instead. So assuming your user running kodi is kodi and it belongs to correct groups.
Create
kodi.service in
/etc/systemd/system/kodi.service with contents.
Code:
[Unit]
Description = kodi-standalone using xinit
After = systemd-user-sessions.service network.target sound.target network-online.target
[Service]
User = kodi
Group = kodi
Type = simple
PAMName=login
ExecStart = /usr/bin/xinit /usr/bin/dbus-launch --exit-with-session /usr/bin/kodi-standalone -- :0 -nolisten tcp vt7
Restart = on-abort
[Install]
WantedBy = multi-user.target
You will also need to create a
custom-actions.pkla /etc/polkit-1/localauthority/50-local.d/custom-actions.pkla
Code:
[Actions for kodi user]
Identity=unix-user:kodi
Action=org.freedesktop.udisks.*;org.freedesktop.login1.*
ResultAny=yes
ResultInactive=yes
ResultActive=yes
[Untrusted Upgrade]
Identity=unix-user:kodi
Action=org.debian.apt.upgrade-packages;org.debian.apt.update-cache
ResultAny=yes
ResultInactive=yes
ResultActive=yes
Dont forget you need kodi user in correct groups also.
Posts: 7,135
Joined: Oct 2012
un1versal
Out of Memory (1939–2016)
Posts: 7,135
2015-06-30, 20:08
(This post was last modified: 2015-06-30, 20:11 by un1versal.)
Whats the user running kodi called?
also you somehow have
Code:
ExecStart = /usr/bin/xinit /usr/bin/dbus-launch --exit-with-session /usr/bin/kodi-standalone -- [color=#FF4500]:1[/color] -nolisten tcp vt7
Typos everywhere you added code that I did not post like the color stuff and you decided to chnage the screen from :0 to :1. Recheck and ensure you havent made errors on copy and paste.
Posts: 7,135
Joined: Oct 2012
un1versal
Out of Memory (1939–2016)
Posts: 7,135
No idea about dual monitors here.
Posts: 19,982
Joined: May 2009
Reputation:
451
nickr
Retired Team-Kodi Member
Posts: 19,982
Who mentioned multiple monitors?
If I have helped you or increased your knowledge, click the 'thumbs up' button to give thanks :) (People with less than 20 posts won't see the "thumbs up" button.)
Posts: 12
Joined: Jun 2013
Reputation:
0
muhaha
Junior Member
Posts: 12
Exactly, i just want to run separate X11 display with KODI over default X11 display with display manager (xubuntu desktop), all this on the same monitor.
I should be better, because accidentally pop ups and interferences from xubuntu desktop 0: display will stay isolated.
Posts: 3
Joined: Jan 2019
Reputation:
0
Sorry for the "necromancy".
I am interested too. But it seems that Kodi guys do not have this use case in mind. The unique use case Kodi team has in mind is running Kodi and only Kodi on a machine! I don't want to dedicate my PC to running only Kodi, I want, like any other program in the world, to keep "multitasking". For example, if I receive a mail while I am looking at a movie, I don' t mind pausing and changing screen to look at the e-mail.
Apparently this use case is just impossible with Kodi that plays badly with DE like Unity... and freezes. So the idea to launch it on a separate X (I mean as the op says here: DISPLAY :1) should provide enough isolation so that Kodi does not interfere.
Then you can still switch with CTRL-ALT-F7/F8 between your regular DE and Kodi.
... or maybe look at other Mediaplayers that behave like "normal" programs !..