/srv/irclogs.ubuntu.com/2011/09/28/#ubuntu-mythtv.txt

superm1i don't use xmltv personally..04:01
dekarltgm4883, superm1: well, the storage location is $HOME/.mythtv/$NAMEOFSOURCE.xmltv, there's not much to choose from.05:32
superm1dekarl, ah i just looked over the question.06:37
superm1either approach would solve it short term, but long term it should hopefully be N/A with web based mythtv-setup06:38
dekarlsuperm1: where shall I put this so it doesn't get lost?06:41
superm1well ideally in the form of a patch that can be merged immediately :)06:41
dekarlas the web setup with xmltv... is not going to happen RSN06:41
dekarluhh, I don't even know how to start mythtv-setup with "mythtv" credentials and still being able to access the screen06:42
superm1then a bug against the mythtv source package or the mythbuntu project is fine06:42
dekarlit's just a one line change to the wrapper, but how should that look like?06:42
superm1oh i forgot there's all that other logic in the line to run it single threaded and in a terminal window06:44
superm1it might just be a matter of adding $SU_TYPE to the beginning of that xterm launch06:44
dekarlhmm06:45
dekarlyes, but it has to be a variant of $SU_TYPE that sus to mythtv, not root and gets the environment setup correctly :(06:47
superm1so it might be $SU_TYPE su mythtv -c xterm -title ...06:48
dekarlbut $SU_TYPE (cd ~mythtv/.mythtv; ln -s $HOME/.mythtv/*.xmltv .) should work, too (if it wasn't for spaces in the names of the video sources :(06:50
dekarldoes $SU_TYPE su mythtv -c xterm -title ... change $HOME to ~mythtv ?06:50
superm1well you run into bigger problems if you are symlinking directories around06:50
superm1what if several users have .xmltv directories already06:50
superm1or files in there?06:50
superm1do you keep them, rename them?06:51
superm1so i think the better way to solve it is mythtv-setup as mythtv user for now06:51
superm1and yes that should change $HOME to ~mythtv06:51
dekarlthat's good, I agree it's better to change the wrapper to run setup as mythtv06:51
superm1another way to do it would be to add support to mythtv-setup to drop permissions and change uid/gid and then require it to run as root06:52
superm1similar to what mythbackend supports now06:52
superm1kees, any opinions about above what you think would be the best approach?06:53
dekarlimho dropping permission in backend or setup is an ugly kludge ;)06:54
dekarlI'm looking at the su variant atm06:54
superm1well in backend it's the only way to cleanly do it with upstart06:54
dekarlthen upstart has a bug there06:54
superm1well because using su in an upstart job creates an interactive consolekit session06:54
superm1so suddenly anything that normally would "log out" of a session sees a "user" logged in06:55
dekarlI think upstart needs auxillary tools like daemontools have06:55
dekarlbut that's another topic06:55
superm1i think this cycle it actually gained support for user jobs, i haven't explored that yet06:55
superm1it might be a possibility to just have a job in ~mythtv that gets spawned by upstart directly as the right user06:56
dekarlthis seems to be ok: $SU_TYPE su mythtv -c xterm -title ...07:07
dekarlhmm07:07
dekarlgksu -- sudo -u mythtv -i set | grep HOME07:07
dekarlnotice the "-i" for getting a fresh mythtv login session07:07
* dekarl gotta run07:08
ahhughezI've been going thru all the ubuntu 11.04 bluetooth guides... what I am doing *should* work. But it's not. I can'f ro the life of me work out why mythbuntu didnt have all the bluetooth packages installed by default. I suspect that ubutnu != mythbuntu but others might be able to help me out with this12:44
keessuperm1: I didn't follow what the original need was. something relating to xmltv, but I think it is lost in my backscroll.15:14
superm1kees, basically xmltv config needs to be setup for ~mythtv since mythbackend uses it15:55
superm1but you run mythtv-setup as $USER meaning the xmltv config gets saved in ~$USER15:56
superm1everything else about running mythtv-setup as $USER is fine I think15:56
keesah, well, yeah, I think the stuff you mentioned should be fine (since mythtv-setup is run by root anyway, so switching away to the mythtv user to the piece that needs it is okay afaict)18:21
superm1ok, i'll double check that thing dekarl posted works and merge that in then18:27

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!