Bug 1245732 - KGpg Fails to Autostart on Fedora 22 with KDE, Despite Being Enabled
Summary: KGpg Fails to Autostart on Fedora 22 with KDE, Despite Being Enabled
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: kgpg
Version: 22
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Than Ngo
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-07-22 15:41 UTC by clockskew
Modified: 2015-11-22 02:24 UTC (History)
6 users (show)

Fixed In Version: kgpg-15.08.3-2.fc22 kgpg-15.08.3-2.fc23
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-11-21 16:53:36 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description clockskew 2015-07-22 15:41:58 UTC
Description of problem:

KGpg Fails to Autostart on Fedora 22 with KDE, Despite Being Enabled

Version-Release number of selected component (if applicable):

KGpg - 2.15.0

gpg2 --version ==> gpg (GnuPG) 2.1.5 + libgcrypt 1.6.3

gpg --version ==> gpg (GnuPG) 1.4.19

How reproducible:

Boot from Fed 22 with KGpg Autostart enabled.  Login, observe that KGpg fails to AutoStart (no PID assigned, and no KGpg icon in Status & Notifications on the System Tray.  KGpg must be manually launched each session.

Steps to Reproduce:

1. Configure to KGpg AutoStart:  Enable: Start KGpg automatically at login.
This option is located at: Configure KGpg, Misc, under the Global Settings tab. 

2. Optionally, verify, as a result of #1 above, that:
[User Interface]
AutoStart=true
is set in:  ~/.kde/share/config/kgpgrc

3. Reboot

Actual results:

KGpg fails to AutoStart

Expected results:

KGpg AutoStarts correctly.  In fact, KGpg AutoStarts correctly on every other operating system I run, except for Fedora 22.

Additional info:

I have already made the GnuPG devs aware of this issue, but they:

1. Do not run Fedora
2. Are not (obviously) responsible for upstream Fed/KDE issues.

I have already done quite a few things in the Fedora Forum to see if the root cause of this KGpg Autostart failure can be found.  However, nothing I've done to date has shed any light on this failure.

The steps I've already performed, along with additional background, can be found here:

http://forums.fedoraforum.org/showthread.php?t=305604

Comment 1 clockskew 2015-07-23 09:32:08 UTC
Update:  A workaround to brute forcing KGpg to AutoStart has been identified in the Fedora Forum within the same thread I originally linked.

I hope the workaround helps you find the actual root cause of this failure.

Quoting in relevant part:

As a workaround to KGpg's failure to AutoStart, this brute force method works on my Fed 22/KDE system:

1. Manually start kgpg from Konsole:

$ kgpg

2. Ensure ~/.config/autostart is empty. My autostart directory contained one file , so I did:

mv /home/<username>/.config/autostart/kgpg.desktop /home/<username>

3. Copy the default startfile to the local user's autostart folder to override defaults:

cp /usr/share/autostart/kgpg.desktop /home/<username>/.config/autostart/

4. Edit the ".config/autostart/kgpg.desktop" file by setting autostart to "true" (from it's default value of 'false")

X-KDE-autostart-condition=kgpgrc:User Interface:AutoStart:true

5. Save, Close, Logout

6. Following Login, note that KGpg is 'autostarted'. This means the KGpg icon is available in the System Tray, under Status & Notifications, and KGpg has been assigned a PID, and is running. Clicking on the KGpg icon shows that all KGpg functions work correctly.

This brute force method is also known to survive subsequent logouts - logins, and reboots.

Comment 2 clockskew 2015-07-27 03:24:16 UTC
Additionally, note re:  the failure of KGpg to AutoStart: 

All of the testing I've described in this bug report, and on the Fedora Forum link, was performed using a native Fed 22 system installed on a HDD.  On this HDD-based system, I had previously run Fed 21, and used fedup to arrive at Fed 22.  

However, I also run Fed 22 as a Guest OS in both VBox and KVM.  Installation of both of these virtual Guests was accomplished using the Fed 22 KDE Spin *.iso.

IIRC, when Fed 22 is first cleanly installed from the *.iso, the gpg2 version installed is:  2.1.14.  After the first:  dnf upgrade is performed, gpg2 version 2.1.15 gets pulled in.

Despite these differences, in all three of my Fed 22 installations, KGpg fails to AutoStart, despite being enabled.

Comment 3 clockskew 2015-08-20 02:53:07 UTC
The following set of facts is also included within the above referenced Fedora forum thread discussing this bug, which is linked above.

However, to make it abundantly clear why I believe this KGpg Autostart failure is unique to Fedora 22, please keep these facts in mind when thinking about the root cause of this failure:

1. In all other operating systems I use, I have the full blown KDE environment installed, just as I do with Fed 22.

2. In all other operating systems I use, I have KGpg set to autostart, just as I do with Fed 22.

3. In all other operating systems I use, I have KDE set to 'Start with an empty session,' just as I do with Fed 22.

4. In all other operating systems I use, KGpg autostarts correctly.

5. Fed 22 is the sole exception, and the only OS I use where KGpg fails to autostart, despite being enabled in the KGpg configuration GUI, and, of course, the underlying configuration file:

/home/<username>/.kde/share/config/kgpgrc

has these values, correctly, set:

[User Interface]
AutoStart=true

Those reasons are why I continue to believe this bug is solely related to code changes made in Fedora 22's version of KDE and/or Plasma 5.

Comment 4 Rex Dieter 2015-11-06 17:09:57 UTC
Simple reason is that plasma5 doesn't support kde4 apps' use of 
X-KDE-Autostart-condition

I've got a hack to make it work though, coming soon

Comment 5 Fedora Update System 2015-11-06 17:11:10 UTC
kgpg-15.08.2-1.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2015-e8d90a10ae

Comment 6 Fedora Update System 2015-11-06 17:11:10 UTC
kgpg-15.08.2-1.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2015-e8d90a10ae

Comment 7 clockskew 2015-11-08 03:20:17 UTC
Rex,

A few thoughts:

1.  Thank you for addressing this issue.

2.  Your explanation that plasma5 doesn't support kde4 apps' use of 
X-KDE-Autostart-condition makes perfect sense.

3.  As a result of learning about the lack of plasma5 support, now I understand why my Fed 22 system was the only OS I used where KGpg failed to autostart.

4.  I wish I had understood this concept back in July, but better late than never.

5.  I'm glad you developed the patch.

6.  I'm sure it is easy enough for you to test on your end.  However, given your patch submission on 6 Nov, it is 3 days too late for testing on my end.

7.  All of my Fed 22 systems, both native and virtual, were upgraded to Fed 23 on 3 Nov.

8.  The brute force method I discussed above still works in Fed 23.  As you might expect, if you change:

X-KDE-autostart-condition=kgpgrc:User Interface:AutoStart:true

from true to false; the KGpg failure to autostart returns after the the next login, reboot, etc.

9.  kgpg-15.08.1-1.fc23.x86_64 is the version of KGpg which is currently installed on a fully updated Fed 23 KDE system.

10.  Thanks again for your effort, Rex.

Comment 8 Rex Dieter 2015-11-08 06:50:18 UTC
6 and 7: this affects f23 too (or any system using plasma5)

Since this bug was filed against f23, I didn't reference any f23 updates here, but I will do so now.

Comment 9 Rex Dieter 2015-11-08 06:50:54 UTC
kgpg-15.08.2-1.fc23 : 
https://bodhi.fedoraproject.org/updates/FEDORA-2015-7e26cafdf3

Comment 10 Fedora Update System 2015-11-08 12:27:47 UTC
kgpg-15.08.2-1.fc22 has been pushed to the Fedora 22 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
$ su -c 'dnf --enablerepo=updates-testing update kgpg'
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-e8d90a10ae

Comment 11 Fedora Update System 2015-11-09 20:23:48 UTC
kgpg-15.08.3-1.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2015-7e26cafdf3

Comment 12 Fedora Update System 2015-11-09 20:24:15 UTC
kgpg-15.08.3-1.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2015-e8d90a10ae

Comment 13 Fedora Update System 2015-11-11 00:51:05 UTC
kgpg-15.08.3-1.fc22 has been pushed to the Fedora 22 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
$ su -c 'dnf --enablerepo=updates-testing update kgpg'
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-e8d90a10ae

Comment 14 Fedora Update System 2015-11-11 02:23:58 UTC
kgpg-15.08.3-1.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
$ su -c 'dnf --enablerepo=updates-testing update kgpg'
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-7e26cafdf3

Comment 15 Fedora Update System 2015-11-11 19:55:20 UTC
kgpg-15.08.3-2.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2015-7e26cafdf3

Comment 16 Fedora Update System 2015-11-11 19:55:40 UTC
kgpg-15.08.3-2.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2015-e8d90a10ae

Comment 17 Fedora Update System 2015-11-12 02:25:33 UTC
kgpg-15.08.3-2.fc22 has been pushed to the Fedora 22 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
$ su -c 'dnf --enablerepo=updates-testing update kgpg'
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-e8d90a10ae

Comment 18 Fedora Update System 2015-11-12 03:59:22 UTC
kgpg-15.08.3-2.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
$ su -c 'dnf --enablerepo=updates-testing update kgpg'
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-7e26cafdf3

Comment 19 Fedora Update System 2015-11-21 16:53:33 UTC
kgpg-15.08.3-2.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.

Comment 20 Fedora Update System 2015-11-22 02:24:38 UTC
kgpg-15.08.3-2.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.