<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>101308</bug_id>
          
          <creation_ts>2005-08-04 02:34 0000</creation_ts>
          <short_desc>mythtv: KDE session managemant attempts to restart mythbackend</short_desc>
          <delta_ts>2006-03-09 23:06:35 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Applications</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>makomk@lycos.co.uk</reporter>
          <assigned_to>media-tv@gentoo.org</assigned_to>
          <cc>kde@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>makomk@lycos.co.uk</who>
            <bug_when>2005-08-04 02:34:09 0000</bug_when>
            <thetext>This is a bizzare one. If I restart mythbackend from a terminal within KDE using
&quot;/etc/init.d/mythbackend restart&quot;, it seems to use KDE session management
somehow. After logging off, the next time I start KDE, I get a prompt for a root
password so that it can restart mythbackend with some sort of &quot;-session&quot;
parameter. The mythbackend that I started earlier is (correctly) still running.

This has happened to me several times (though I would like to repeat it under
more controlled conditions)


Reproducible: Didn&apos;t try
Steps to Reproduce:
1. Start KDE
2. Su to root and run &quot;/etc/init.d/mythbackend restart&quot;
3. Exit KDE using the logout button
4. Restart KDE.

Actual Results:  
KDE su popped up a dialog box asking for a password to run mythbackend with root
priviledges.

Expected Results:  
KDE session management should have ignored mythbackend - it&apos;s a daemon and has
no GUI

Using KDE 3.4 and mythtv 0.18.1-r1. Mythbackend is running as root.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>makomk@lycos.co.uk</who>
            <bug_when>2005-08-04 03:13:01 0000</bug_when>
            <thetext>Okay, it looks like I was wrong. It seems that (if I start mythbackend in the
way I specified) it is terminated when I log out of KDE.

Also, since I initially filed the bug, I&apos;ve succesfully reproduced it using the
steps indicated. (I did add a comment to this effect, but it appears to have got
lost.)

By the way, I&apos;m using QT 3.3.4-r3.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>makomk@lycos.co.uk</who>
            <bug_when>2005-08-12 03:10:09 0000</bug_when>
            <thetext>Created an attachment (id=65743)
Modified /etc/init.d/mythbackend

It turns out there&apos;s a fairly simple workaround/fix for this. The attached
/etc/init.d/mythbackend unsets DISPLAY and SESSION_MANAGEMENT (the former may
be unneccesary, but it does no harm). I should&apos;ve figured this out earlier.

This isn&apos;t a perfect fix; mythbackend shouldn&apos;t be using session management in
teh first place. It seems to work though.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>cardoe@gentoo.org</who>
            <bug_when>2006-03-09 23:06:35 0000</bug_when>
            <thetext>Please use MythTV 0.19</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>65743</attachid>
            <date>2005-08-12 03:10 0000</date>
            <desc>Modified /etc/init.d/mythbackend</desc>
            <filename>mythbackend</filename>
            <type>text/plain</type>
            <data encoding="base64">IyEvc2Jpbi9ydW5zY3JpcHQKIyBDb3B5cmlnaHQgMTk5OS0yMDA0IEdlbnRvbyBGb3VuZGF0aW9u
CiMgRGlzdHJpYnV0ZWQgdW5kZXIgdGhlIHRlcm1zIG9mIHRoZSBHTlUgR2VuZXJhbCBQdWJsaWMg
TGljZW5zZSB2MgojICRIZWFkZXI6IC92YXIvY3Zzcm9vdC9nZW50b28teDg2L21lZGlhLXR2L215
dGh0di9maWxlcy8wLjE4LW15dGhiYWNrZW5kLnJjLHYgMS4zIDIwMDUvMDUvM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