Bug 1234059

Summary: shutdown scripts are not executed
Product: [Fedora] Fedora Reporter: Roland Pallai <dap78>
Component: plasma-workspaceAssignee: Rex Dieter <rdieter>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 22CC: dvratil, jgrulich, kde-sig, kevin, ltinkl, rdieter, than
Target Milestone: ---Keywords: Patch
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: plasma-workspace-5.3.1-5.fc22 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-06-27 22:33:15 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
trivial fix none

Description Roland Pallai 2015-06-20 17:05:36 UTC
Created attachment 1041246 [details]
trivial fix

Description of problem: Scripts in ~/.config/plasma-workspace/shutdown/ and /etc/kde/shutdown/ are not executed on logout.

Version-Release number of selected component (if applicable):
plasma-workspace-5.3.1-2.fc22.x86_64

How reproducible:
100%

Steps to Reproduce:
1. $ printf "#/bin/bash\ntouch /tmp/oops\n" > ~/.config/plasma-workspace/shutdown/oops.sh
2. $ chmod +x ~/.config/plasma-workspace/shutdown/oops.sh
3. logout from the kde session

Actual results:
There is no /tmp/oops file, because the script was not executed.

Expected results:
Existing /tmp/oops file.

Additional info:
Patch attached.

Comment 1 Rex Dieter 2015-06-20 18:45:16 UTC
/etc/kde/shutdown isn't used anymore regardless.

Use
/etc/xdg/plasma-workspace/shutdown
instead

but otherwise, the patch looks like the right approach, I'll take a closer look today.

Comment 4 Fedora Update System 2015-06-20 22:53:58 UTC
plasma-workspace-5.3.1-5.fc22 has been submitted as an update for Fedora 22.
https://admin.fedoraproject.org/updates/FEDORA-2015-10382/plasma-workspace-5.3.1-5.fc22

Comment 5 Fedora Update System 2015-06-21 00:08:01 UTC
Package plasma-workspace-5.3.1-5.fc22:
* should fix your issue,
* was pushed to the Fedora 22 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing plasma-workspace-5.3.1-5.fc22'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-10382/plasma-workspace-5.3.1-4.fc22
then log in and leave karma (feedback).

Comment 6 Fedora Update System 2015-06-27 22:33:15 UTC
plasma-workspace-5.3.1-5.fc22 has been pushed to the Fedora 22 stable repository.  If problems still persist, please make note of it in this bug report.