xfce4-session fallback path is broken

Bug #1723119 reported by apport hater
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Xfce4 Session
Fix Released
Medium
xfce4-session (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

The XFSM_SHUTDOWN_SHUTDOWN case is broken in the fallback path.

Revision history for this message
In , Mikhefr (mikhefr) wrote :

Created attachment 6101
Fix 'shutdown' action in the fallback mode

The bug can be easily fixed in this way:
- if (type == XFSM_SHUTDOWN_RESTART)
+ else if (type == XFSM_SHUTDOWN_RESTART)

but I think it would be better to use switch instead of multiple if..else.

Revision history for this message
In , Eric Koegel (eric-koegel) wrote :

Awesome, thanks! Pushed to master in:
commit 83fd4fee8697fc5da8411c99b18900d211b72d68
Author: Mikhail Efremov <email address hidden>
Date: Fri Mar 20 20:54:38 2015 +0300

    Fix 'shutdown' action in the fallback mode

    Use switch instead of multiple if..else.

    Signed-off-by: Eric Koegel <email address hidden>
http://git.xfce.org/xfce/xfce4-session/commit/?id=83fd4fee8697fc5da8411c99b18900d211b72d68

Revision history for this message
apport hater (g112) wrote :
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "xfce-4.12_1_fix-fallback-shutdown.patch" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

Revision history for this message
Theo Linkspfeifer (lastonestanding) wrote :

Please forward this patch to the Xfce bug tracker. Thanks.

https://bugzilla.xfce.org/

Revision history for this message
Theo Linkspfeifer (lastonestanding) wrote :
Changed in xfce4-session:
importance: Unknown → Medium
status: Unknown → Fix Released
Revision history for this message
Sean Davis (bluesabre) wrote :

Fixed in 4.14 and newer.

Changed in xfce4-session (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.