Bug 20312

Summary: icewm default shutdown and reboot menu entries don't work
Product: Mageia Reporter: Andrew Keens <usednolonger>
Component: RPM PackagesAssignee: Shlomi Fish <shlomif>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Normal CC: jani.valimaa, marja11
Version: Cauldron   
Target Milestone: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Source RPM: icewm 1.3.8 Release 5.mga6 CVE:
Status comment:

Description Andrew Keens 2017-02-19 09:59:42 CET
Description of problem:
menu-Logout-Reboot and menu-Logout-Shutdown fail to reboot and shutdown pc. 

Version-Release number of selected component (if applicable):
icewm 1.3.8 Release 5.mga6

How reproducible:
always

Steps to Reproduce:
1. minimal x
2. login to icewm
3. Follow the procedure of clicking between: menu-Logout-Reboot or menu-Logout-Shutdown
4. nothing happens

Additional comments:
PC reboots and shuts down normally with just issuing reboot or poweroff in terminal as regular user;
Installing full-featured icewm on top of icewm-light does not change anything.
uncommenting entries for "Command to reboot the system" and "Command to shutdown the system" in /usr/share/X11/icewm/preferences doesn't seem to have any effect.
Seems not to record any error in journalctl:

[root@localhost user4]# journalctl | tail -n 5
Feb 19 18:48:42 localhost.localdomain audit[6099]: CRED_ACQ pid=6099 uid=1000 auid=4294967295 ses=4294967295 msg='op=PAM:setcred grantors=pam_unix acct="root" exe="/usr/bin/su" hostname=localhost.localdomain addr=? terminal=pts/0 res=success'
Feb 19 18:48:42 localhost.localdomain audit[6099]: USER_START pid=6099 uid=1000 auid=4294967295 ses=4294967295 msg='op=PAM:session_open grantors=pam_keyinit,pam_limits,pam_systemd,pam_unix,pam_xauth acct="root" exe="/usr/bin/su" hostname=localhost.localdomain addr=? terminal=pts/0 res=success'
Feb 19 18:48:42 localhost.localdomain su[6099]: (to root) user4 on pts/0
Feb 19 18:48:42 localhost.localdomain su[6099]: pam_systemd(su:session): Cannot create session: Already running in a session
Feb 19 18:48:42 localhost.localdomain su[6099]: pam_unix(su:session): session opened for user root by (uid=1000)

cheers,
Marja Van Waes 2017-02-19 11:32:23 CET

CC: (none) => marja11
Assignee: bugsquad => shlomif

Comment 1 Shlomi Fish 2017-02-19 18:24:59 CET
Hi! I can reproduce the problem in an mga v6 x86-64 vbox VM. However, my attempts at debugging it using strace or gdb were futile. icewm seems relatively undermaintained upstream and the mageia package is heavily patched which makes it harder to maintain. So this bug will be stalled for now.

Status: NEW => ASSIGNED

Comment 2 Andrew Keens 2017-02-20 01:15:10 CET
Hey! Thanks for the quickest answer! Not a big deal for sure! Wonder how many people would login to icewm as a primary session anyway... But it  also turns out it might be a known bug upstream with some patches offered. Mainly i'm talking about this link: https://sourceforge.net/p/icewm/bugs/911/
Though i guess you saying that mageia package is being heavily patched to begin with could very well apply to this being not so valid in this case. But i thought i'd let you know, sorry for not coming up with this earlier.
Thanks again!
Comment 3 Jani Välimaa 2017-03-06 12:42:31 CET
Is this still valid for icewm >= 1.3.12-10.mga6?

CC: (none) => jani.valimaa

Comment 4 Andrew Keens 2017-03-07 03:21:59 CET
Tried today on Mageia 6 Sta 2, 32 bit, classic iso, fresh minimal install with x. sorry to say i cant login to icewm now, it freezes after i enter my credentials to xdm.
Comment 5 Andrew Keens 2017-06-20 03:44:12 CEST
works great on Mageia 6 rc i586. Thanks a lot!
Comment 6 Andrew Keens 2017-08-06 11:07:47 CEST
WFM. I guess i'm just finally  marking this as solved. Thanks!

Status: ASSIGNED => RESOLVED
Resolution: (none) => FIXED