Bug 8401

Summary: As at Dec 16 2012, mcc won't start under Xfce.
Product: Mageia Reporter: Doug Laidlaw <laidlaws>
Component: RPM PackagesAssignee: Mageia Bug Squad <bugsquad>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: Normal CC: bittwister2, jani.valimaa
Version: Cauldron   
Target Milestone: ---   
Hardware: i586   
OS: Linux   
Whiteboard:
Source RPM: CVE:
Status comment:

Description Doug Laidlaw 2012-12-16 04:23:50 CET
I can start MCC normally from the panel icon in KDE, but in Xfce4 I am prompted for the root password, then it simply exits.  Attempting to start it from a terminal with "su -" first, I see the usual messages that some executables don't exist, then it exits, with no clues.  On hitting <RETURN> I am back at the prompt.  dmesg shows nothing, and I don't know how to search the systemd journal.
Comment 1 Bit Twister 2012-12-16 06:22:18 CET
(In reply to comment #0)

> dmesg shows nothing, and I don't know how to search the systemd journal.

Upon login I have two scripts, xtail, xcon. Both determine if in a sysvinit or systemd logging environment. xtail gives a 24 line xterm. xcon gives a 5 line xterm pinned to the desktop.

You might run my xtail script in one terminal and execute your application under test in another terminal.


$ cat xtail
#! /bin/bash
#************************************************
#* xtail - scrip to watch messages log
#*
#*  Assumes /var/log/messages is world readable (644).
#*
#*  Mandriva/Mageia users may need to create
#*  /etc/security/msec/perm.local   with
#*  /var/log/messages       current 644
#*  Then do a chmod 644 /var/log/messages
#*  That will prevent msec changing permissions
#*  back to 600 on the hourly cron job.
#*
#* For "journalctl -f" access, user has to be in
#* adm group.
#*
#************************************************

    _app=$(basename $0)

    if [ ! -e /var/log/messages ] ; then
      _cmd="journalctl -f"
    else
      _cmd="tail -f /var/log/messages"
    fi

    _title="$_app $_cmd"


    pgrep -U $USER -f "$_title" > /dev/null
    if [ $? -eq 1 ] ; then
      kstart --desktop 1 --window "$_title" \
        /usr/bin/xterm -title "$_title"\
        -fn 7x13 \
        -fg white -bg seagreen \
        -geom 170x24+10+130 \
        -e $_cmd \
      &
    else
      qdbus org.kde.kwin /KWin org.kde.KWin.setCurrentDesktop 1 \
       > /dev/null
    fi

#*************** end xtail **********************

$ cat xcon
#! /bin/bash
#************************************************
#* xcon - scrip to watch message log
#*
#*  Assumes /var/log/messages is world readable
#*  or user is in the adm group..
#*
#************************************************

    _app=$(basename $0)

    if [ ! -e /var/log/messages ] ; then
      _cmd="journalctl -f"
    else
      _cmd="tail -f /var/log/messages"
    fi

    _title="$_app $_cmd"

    pgrep -U $USER -f "$_title" > /dev/null
    if [ $? -eq 1 ] ; then
        kstart --alldesktops --window "$_title" \
          /usr/bin/xterm -title "$_title"\
          -fn 7x13 \
          -fg white -bg seagreen \
          -geom 1022x5+50+935 \
          -e $_cmd \
        &
    fi

#*************** end xcon **********************
Comment 2 Doug Laidlaw 2012-12-16 07:02:00 CET
Thanks BT.  I am amazed at the number of scripts you have!

/var/log/messages doesn't exist on my system.  I have /var/log/journal only.  It can be browsed and filtered with appropriate commands.

My Xfce installation in Cauldron appears to be VERY corrupt.  I minimised the browser window, and it disappeared.  I had to start again.  I tried to drag the window and it enlarged to the full width of the monitor.  It has done that before.  There is no tab or icon on the panel for the terminal. I will stick with KDE.

This bug will be part of the larger problem.

In Mga2, the reverse search function (Shift+F3) in mousepad searches forwards.  I am wondering how many other things can be attributed to Xfce.
Comment 3 Bit Twister 2012-12-16 09:05:42 CET
(In reply to comment #2)

> /var/log/messages doesn't exist on my system.

For systemd init in Mageia 3, that is correct. That is what I used it to decide which command to use.

>  I have /var/log/journal only. 

Yes, and no, run
   systemctl kill --signal=SIGUSR1 systemd-journald.service
   systemctl kill --signal=SIGUSR2 systemd-journald.service
and then run
   ls -al  /var/log/journal/$(cat /etc/machine-id)

> It can be browsed and filtered with appropriate commands.

If you mean journalctl, then I'll agree. If not, then I suggest
http://0pointer.de/blog/projects/journalctl.html

CC: (none) => junk_no_spam

Comment 4 Jani Välimaa 2012-12-16 10:01:23 CET
(In reply to comment #0)
> I can start MCC normally from the panel icon in KDE, but in Xfce4 I am prompted
> for the root password, then it simply exits.  Attempting to start it from a
> terminal with "su -" first, I see the usual messages that some executables
> don't exist, then it exits, with no clues.  On hitting <RETURN> I am back at
> the prompt.  dmesg shows nothing, and I don't know how to search the systemd
> journal.

Only thing I can reproduce is asking root password. Don't know if mcc should start without asking it, though. MCC is working fine with old user and with a fresh one.

Could you also try with a fresh user?

CC: (none) => jani.valimaa

Comment 5 Jani Välimaa 2012-12-16 10:14:29 CET
(In reply to comment #2)
> Thanks BT.  I am amazed at the number of scripts you have!
> 
> /var/log/messages doesn't exist on my system.  I have /var/log/journal only. 
> It can be browsed and filtered with appropriate commands.
> 
> My Xfce installation in Cauldron appears to be VERY corrupt.  I minimised the
> browser window, and it disappeared.  I had to start again.  I tried to drag the
> window and it enlarged to the full width of the monitor.  It has done that
> before.  There is no tab or icon on the panel for the terminal. I will stick
> with KDE.

Sounds like a corrupted session file/files. Try to remove ~/.cache/sessions directory.

> This bug will be part of the larger problem.
> 
> In Mga2, the reverse search function (Shift+F3) in mousepad searches forwards. 
> I am wondering how many other things can be attributed to Xfce.

This has nothing to do with xfce (in cauldron). Mousepad is dropped from cauldron [1] as it's abandoned upstream since a long time. Xfce in cauldron uses leafpad instead.

You can file a bug about your issues in mousepad in mga2 if you want, but I can't promise it'll be fixed as the project is pretty dead.

[1] http://svnweb.mageia.org/packages/obsolete/mousepad/
Comment 6 Doug Laidlaw 2012-12-16 10:26:14 CET
(In reply to comment #5)
> (In reply to comment #2)
> > Thanks BT.  I am amazed at the number of scripts you have!
> > 
> > /var/log/messages doesn't exist on my system.  I have /var/log/journal only. 
> > It can be browsed and filtered with appropriate commands.
> > 
> > My Xfce installation in Cauldron appears to be VERY corrupt.  I minimised the
> > browser window, and it disappeared.  I had to start again.  I tried to drag the
> > window and it enlarged to the full width of the monitor.  It has done that
> > before.  There is no tab or icon on the panel for the terminal. I will stick
> > with KDE.
> 
> Sounds like a corrupted session file/files. Try to remove ~/.cache/sessions
> directory.
> 
> > This bug will be part of the larger problem.

I have uninstalled all of Xfce and deleted all config and contents of .cache/sessions.  A clean reinstall of Alpha3 fixed a lot of my problems.  I had tried to copy my config across from Mga2, but it didn't work.
> > 
> > In Mga2, the reverse search function (Shift+F3) in mousepad searches forwards. 
> > I am wondering how many other things can be attributed to Xfce.
> 
> This has nothing to do with xfce (in cauldron). Mousepad is dropped from
> cauldron [1] as it's abandoned upstream since a long time. Xfce in cauldron
> uses leafpad instead.
> 
> You can file a bug about your issues in mousepad in mga2 if you want, but I
> can't promise it'll be fixed as the project is pretty dead.
> 
> [1] http://svnweb.mageia.org/packages/obsolete/mousepad/

There doesn't seem to be any point.
Comment 7 Doug Laidlaw 2012-12-16 10:27:59 CET
(In reply to comment #4)
> (In reply to comment #0)
> > I can start MCC normally from the panel icon in KDE, but in Xfce4 I am prompted
> > for the root password, then it simply exits.  Attempting to start it from a
> > terminal with "su -" first, I see the usual messages that some executables
> > don't exist, then it exits, with no clues.  On hitting <RETURN> I am back at
> > the prompt.  dmesg shows nothing, and I don't know how to search the systemd
> > journal.
> 
> Only thing I can reproduce is asking root password. Don't know if mcc should
> start without asking it, though. MCC is working fine with old user and with a
> fresh one.
> 
> Could you also try with a fresh user?

I will have a clean reinstall of xfce by tomorrow and will report back.
Comment 8 Doug Laidlaw 2012-12-16 10:33:04 CET
(In reply to comment #6)
> (In reply to comment #5)
> > (In reply to comment #2)
> > > Thanks BT.  I am amazed at the number of scripts you have!
> > > 
> > > /var/log/messages doesn't exist on my system.  I have /var/log/journal only. 
> > > It can be browsed and filtered with appropriate commands.
> > > 
> > > My Xfce installation in Cauldron appears to be VERY corrupt.  I minimised the
> > > browser window, and it disappeared.  I had to start again.  I tried to drag the
> > > window and it enlarged to the full width of the monitor.  It has done that
> > > before.  There is no tab or icon on the panel for the terminal. I will stick
> > > with KDE.
> > 
> > Sounds like a corrupted session file/files. Try to remove ~/.cache/sessions
> > directory.
> > 
> > > This bug will be part of the larger problem.
> 
> I have uninstalled all of Xfce and deleted all config and contents of
> .cache/sessions.  

Incidentally, the directory contained about 4 xfwm4 files.  That seemed unusual.
Comment 9 Doug Laidlaw 2012-12-16 10:48:04 CET
On the reinstall, with no customization of xfce4, there is no problem with MCC.  Firefox goes full width only if I drag the mouse to the top edge of the screen, and beyond.  Leafpad behaves similarly.
Comment 10 Jani Välimaa 2013-02-03 16:50:51 CET
Closing this as WORKSFORME. Please file a new bug if you have other issues.

Status: NEW => RESOLVED
Resolution: (none) => WORKSFORME