Author Topic: LibreOffice Manager (lomanager)  (Read 126922 times)

Offline AS

  • Hero Member
  • *****
  • Posts: 4111
  • Have a nice ... night!
Re: LibreOffice Manager (lomanager)
« Reply #585 on: January 19, 2012, 06:07:04 AM »
Quote
The program 'gksu' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadWindow (invalid Window parameter)'.
  (Details: serial 841 error_code 3 request_code 2 minor_code 0)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)


Timeline is critical here, the error is telling that the program gksu tried to access a "window" who's ID is actually unknown,
in turn this could be the result of a delayed mapping of the window, which is something that depend from the window manager.

http://www.rahul.net/kenton/40errs.html#Error3

Because of multiple DE install, I suspect JohnW is using a different window manager or a different window manager set up, that trigger the error, while the error itself probably is in gksu. Not easy to track it down.

JohnW,
Just for confirmation you could try something like that, from a non root user account:
Code: [Select]
gksu -l synapticthis should trigger the same error as shown from lomanager...


Offline Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10620
  • MLUs Forever!
Re: LibreOffice Manager (lomanager)
« Reply #586 on: January 19, 2012, 06:13:30 AM »
I wonder why KDESU is not being used .......  a path problem?

This, run from a terminal should show if KDESU is being found or not .....

Code: [Select]
if [ -r /usr/lib/kde4/libexec/kdesu ]; then echo "KDESU found"; else echo "KDESU does not found"; fi
I get ....

Quote
[user@XPS ~]$ if [ -r /usr/lib/kde4/libexec/kdesu ]; then echo "KDESU found"; else echo "KDESU does not found"; fi
KDESU found
MLUs rule the roost!

Linux XPS 3.2.18-pclos2.pae.bfs  32 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Offline pinoc

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2839
    • other projects...
Re: LibreOffice Manager (lomanager)
« Reply #587 on: January 19, 2012, 07:01:04 AM »
I wonder why KDESU is not being used .......  a path problem?

This, run from a terminal should show if KDESU is being found or not .....

Code: [Select]
if [ -r /usr/lib/kde4/libexec/kdesu ]; then echo "KDESU found"; else echo "KDESU does not found"; fi
I get ....

Quote
[user@XPS ~]$ if [ -r /usr/lib/kde4/libexec/kdesu ]; then echo "KDESU found"; else echo "KDESU does not found"; fi
KDESU found


kdesu is found but then replaced by gksu. You can try to exchange the lines 123 and 125 and then run lomanager, it will then use kdesu instead. Maybe that helps.
-p.

Offline Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10620
  • MLUs Forever!
Re: LibreOffice Manager (lomanager)
« Reply #588 on: January 19, 2012, 08:16:00 AM »
I wonder why KDESU is not being used .......  a path problem?

This, run from a terminal should show if KDESU is being found or not .....

Code: [Select]
if [ -r /usr/lib/kde4/libexec/kdesu ]; then echo "KDESU found"; else echo "KDESU does not found"; fi
I get ....

Quote
[user@XPS ~]$ if [ -r /usr/lib/kde4/libexec/kdesu ]; then echo "KDESU found"; else echo "KDESU does not found"; fi
KDESU found


kdesu is found but then replaced by gksu. You can try to exchange the lines 123 and 125 and then run lomanager, it will then use kdesu instead. Maybe that helps.
-p.

Oops!   Yes see that now ......  even if KDESU is found it will not be used if GKSU is found.

Might be worth considering not checking for GKSU if KDESU is found ......

MLUs rule the roost!

Linux XPS 3.2.18-pclos2.pae.bfs  32 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Offline pinoc

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2839
    • other projects...
Re: LibreOffice Manager (lomanager)
« Reply #589 on: January 19, 2012, 08:19:10 AM »
can you please exchange the two lines as explained and see if lomanager works for you when using kdesu instead?
thanks,
-p.

Offline melodie

  • Hero Member
  • *****
  • Posts: 5942
  • XMMP=Jabber, free instant messaging protocol !
    • PCLinuxOS Fr
Re: LibreOffice Manager (lomanager)
« Reply #590 on: January 19, 2012, 08:40:59 AM »
Hi,
suggesting an idea, maybe for some time in the future ? ktsuss is desktop agnostic, and the latest available stable version (ktsuss-2) has been out for several weeks now... http://code.google.com/p/ktsuss

melodie at swissjabber dot ch - IRC #pclinuxos-fr sur freenode

Offline JohnW_57

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2107
Re: LibreOffice Manager (lomanager)
« Reply #591 on: January 19, 2012, 10:36:41 AM »
Quote
JohnW,
Just for confirmation you could try something like that, from a non root user account:
Code:

gksu -l synaptic

this should trigger the same error as shown from lomanager...

It gives indeed the same error.

JohnW

« Last Edit: January 19, 2012, 10:40:53 AM by JohnW_57 »
PCLinuxOS 2013 KDE4 (64 bit) on: home build system:  Intel Core 2 Quad (q6700) (2.66ghz), Asus P5K motherboard, 4 gig ddr2 memory, Asus Nvidia Geforce GTS 250 1024 mb gddr3, Crucial M4 128 SSD,  2x Samsung 500 gig HDD (sata), TSSTcorp CDDVDW SH-224BB.

Offline JohnW_57

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2107
Re: LibreOffice Manager (lomanager)
« Reply #592 on: January 19, 2012, 12:22:52 PM »
Solved!

The gksu problem happens when the QTCurve GTK2 theme is used!
Did change to an another GTK2 theme (for GTK2 apps) and that solved the issue.

So don't use QTCurve GTK2 theme for your GTK2 apps. (a bit buggy).

Gonna testing other GTK2 themes so get sure.  ;)

[wimwillemsen@localhost ~]$ gksu -l synaptic  launches gksu and synaptic without the X Window System  error and lomamanager does working.


JohnW
PCLinuxOS 2013 KDE4 (64 bit) on: home build system:  Intel Core 2 Quad (q6700) (2.66ghz), Asus P5K motherboard, 4 gig ddr2 memory, Asus Nvidia Geforce GTS 250 1024 mb gddr3, Crucial M4 128 SSD,  2x Samsung 500 gig HDD (sata), TSSTcorp CDDVDW SH-224BB.

Offline pinoc

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2839
    • other projects...
Re: LibreOffice Manager (lomanager)
« Reply #593 on: January 19, 2012, 02:36:03 PM »
and how about kdesu synaptic in your KDE session ?

Offline JohnW_57

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2107
Re: LibreOffice Manager (lomanager)
« Reply #594 on: January 19, 2012, 03:11:59 PM »
Quote
[wimwillemsen@localhost ~]$ kdesu synaptic
kdesu(19283)/kdesu (kdelibs) KDESu::PtyProcess::exec: [ /root/rpmbuild/BUILD/kdelibs-4.6.5/kdesu/process.cpp : 293 ]  Running "/usr/bin/su"
kdesu(19283)/kdesu (kdelibs) KDESu::SuProcess::ConverseSU: [ /root/rpmbuild/BUILD/kdelibs-4.6.5/kdesu/su.cpp : 259 ]  Read line "Password: "


It launches the password manager to use synaptic (had no issue with kdesu).

The gksu issue was caused by the Qtcurve GTK2 theme and crashed lomanager (in the KDE session).
Changing another GTK2 theme solved it.

The kdesu question was from Just18. http://www.pclinuxos.com/forum/index.php/topic,59009.msg866661.html#msg866661

JohnW
« Last Edit: January 19, 2012, 03:28:44 PM by JohnW_57 »
PCLinuxOS 2013 KDE4 (64 bit) on: home build system:  Intel Core 2 Quad (q6700) (2.66ghz), Asus P5K motherboard, 4 gig ddr2 memory, Asus Nvidia Geforce GTS 250 1024 mb gddr3, Crucial M4 128 SSD,  2x Samsung 500 gig HDD (sata), TSSTcorp CDDVDW SH-224BB.

Offline pinoc

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2839
    • other projects...
Re: LibreOffice Manager (lomanager)
« Reply #595 on: January 20, 2012, 02:54:54 AM »
Hi JohnW,

Quote
The gksu problem happens when the QTCurve GTK2 theme is used!
now that we know what caused the problem, what I wanted to understand is this:

when using the QTCurve GTK2 theme in a KDE session:
gksu -l synaptic will crash but will kdesu synaptic work with the QTCurve GTK2 theme enabled? If so, then I can simply default to using kdesu when a KDE-session is detected, so lomanager will work independent of the "QTCurve GTK2 bug".

Offline JohnW_57

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2107
Re: LibreOffice Manager (lomanager)
« Reply #596 on: January 20, 2012, 04:35:24 AM »
kdesu synaptic had no problem with the qtcurve-gtk2 theme:

Quote
[wimwillemsen@localhost ~]$ kdesu synaptic
kdesu(10571)/kdesu (kdelibs) KDESu::PtyProcess::exec: [ /root/rpmbuild/BUILD/kdelibs-4.6.5/kdesu/process.cpp : 293 ]  Running "/usr/bin/su"
kdesu(10571)/kdesu (kdelibs) KDESu::SuProcess::ConverseSU: [ /root/rpmbuild/BUILD/kdelibs-4.6.5/kdesu/su.cpp : 259 ]  Read line "Password: "

(with the qtcurve-gtk2 theme)

JohnW

« Last Edit: January 20, 2012, 04:38:11 AM by JohnW_57 »
PCLinuxOS 2013 KDE4 (64 bit) on: home build system:  Intel Core 2 Quad (q6700) (2.66ghz), Asus P5K motherboard, 4 gig ddr2 memory, Asus Nvidia Geforce GTS 250 1024 mb gddr3, Crucial M4 128 SSD,  2x Samsung 500 gig HDD (sata), TSSTcorp CDDVDW SH-224BB.

Offline pinoc

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2839
    • other projects...
Re: LibreOffice Manager (lomanager)
« Reply #597 on: January 20, 2012, 05:16:05 AM »
kdesu synaptic had no problem with the qtcurve-gtk2 theme:

Quote
[wimwillemsen@localhost ~]$ kdesu synaptic
kdesu(10571)/kdesu (kdelibs) KDESu::PtyProcess::exec: [ /root/rpmbuild/BUILD/kdelibs-4.6.5/kdesu/process.cpp : 293 ]  Running "/usr/bin/su"
kdesu(10571)/kdesu (kdelibs) KDESu::SuProcess::ConverseSU: [ /root/rpmbuild/BUILD/kdelibs-4.6.5/kdesu/su.cpp : 259 ]  Read line "Password: "

(with the qtcurve-gtk2 theme)

JohnW

ok, thanks for testing. That is what I expected and just confirms that KDE is the best DE  ;D
-p.

Offline menotu

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 15283
  • ┌∩┐(◕_◕)┌∩┐
Re: LibreOffice Manager (lomanager)
« Reply #598 on: January 20, 2012, 05:18:27 AM »
Quote
That is what I expected and just confirms that KDE is the best DE

+1   ;D
PCLinuxOS 32bit KDE 4.10.1; kernel-3.4.11-pclos1.bfs & 64bit 3.2.18bfs; NVidia GeForce 8400GS 1GB 310.19 driver

Sony Vaio SVE1513A4ESI Laptop, Intel Core i5, 2.6GHz, 6GB RAM, 750GB, 15.6" Intel HD Graphics 4000

Offline Archie

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8583
  • Aurum nostrum non est aurum vulgi.
Re: LibreOffice Manager (lomanager)
« Reply #599 on: January 20, 2012, 06:05:22 AM »
Quote
That is what I expected and just confirms that KDE is the best DE

+1   ;D

We're opening another heated debate but what the heck ...  +1
Since 2006 | LiCo 401868 | Bare Metal | What is necessary is never unwise. --Sarek, 2258.42