Bug 242570

Summary: KSensors only autostarts if automatic session restoring is enabled
Product: [Fedora] Fedora Reporter: Kevin Kofler <kevin>
Component: ksensorsAssignee: Hans de Goede <hdegoede>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 7   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 0.7.3-11.fc7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-08-06 17:57:12 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Kevin Kofler 2007-06-04 20:42:35 UTC
Description of problem:
Even when checking "Autostart KSensors on KDE startup", KSensors only actually 
comes up on the next login if KDE's automatic session restoring is enabled. 
This isn't the case by default in F7 (see bug #242564), and autostarting 
shouldn't rely on session management anyway.

Version-Release number of selected component (if applicable):
ksensors-0.7.3-7.fc6
(Yes, this is the version in the F7 repos.)

How reproducible:
Always.

Steps to Reproduce:
1. Disable KDE session management under KControl -> KDE Components -> Session 
Manager (On Login section). (Or just install the default F7 kde-settings, 
which has this disabled.)
2. Start KSensors, make sure the option to "Autostart KSensors on KDE startup" 
is checked.
3. Log out.
4. Log in.

Actual results:
KSensors is no longer running.

Expected results:
KSensors should be automatically restarted.

Comment 1 Ville Skyttä 2007-06-26 19:45:28 UTC
Should be fixed in 0.7.3-8, currently building for Rawhide.  The key was to add
these lines to the .desktop file and in addition to /usr/share/applications,
copy/symlink it to /usr/share/autostart too (akin to eg. kgpg does it):

X-KDE-autostart-after=panel
X-KDE-autostart-condition=ksensorsrc:General:AutoStart:true

("true" to match the default "checked" state of the autostart checkbox in an
unconfigured ksensors installation.)

Note to self for future reference: http://docs.kde.org/userguide/ksmserver.html

Comment 2 Hans de Goede 2007-07-27 21:57:33 UTC
Taking over as I'm the new maintainer for ksensors (on request of Ville).


Comment 3 Fedora Update System 2007-07-30 16:59:32 UTC
ksensors-0.7.3-11.fc7 has been pushed to the Fedora 7 testing repository.  If problems still persist, please make note of it in this bug report.

Comment 4 Fedora Update System 2007-08-06 17:57:08 UTC
ksensors-0.7.3-11.fc7 has been pushed to the Fedora 7 stable repository.  If problems still persist, please make note of it in this bug report.