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

Offline pinoc

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2849
    • other projects...
Re: LibreOffice Manager (lomanager)
« Reply #570 on: December 25, 2011, 01:44:17 AM »
Strange:

This time I manually reloaded the pkgs-list in Synaptic, ran LO and... .... .... .... it works! Without any problems! It seems the script had got some problems at reloading... ah, I don't care. It works, and that is the only important thing!

well, good to hear it worked. But the script does not use the Synaptic repos at all, seems that you were not properly updated before, right?  ;)
anyway, working now, and that's all you need.

Offline JohnW_57

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2144
Re: LibreOffice Manager (lomanager)
« Reply #571 on: January 18, 2012, 04:02:05 PM »
Some problems with Lomanager 3.4.5.
What's  happening  here?

As user:

Code: [Select]
wimwillemsen@localhost ~]$ 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.)


As root:

Code: [Select]
[root@localhost wimwillemsen]# lomanager

[root@localhost wimwillemsen]# stdin: is not a tty

Internet connection working

--2012-01-18 23:54:31--  [url=http://distro.ibiblio.org/pclinuxos/pclinuxos/apt/pclinuxos/2010/RPMS.updates/lomanager-3.4.5-1pclos2011.noarch.rpm]http://distro.ibiblio.org/pclinuxos/pclinuxos/apt/pclinuxos/2010/RPMS.updates/lomanager-3.4.5-1pclos2011.noarch.rpm[/url]
Herleiden van distro.ibiblio.org (distro.ibiblio.org)... 152.19.134.43
Verbinding maken met distro.ibiblio.org (distro.ibiblio.org)|152.19.134.43|:80... verbonden.
HTTP-verzoek is verzonden; wachten op antwoord... 200 OK
Lengte: 49305 (48K) [application/x-rpm]
Wordt opgeslagen als: ‘lomanager-3.4.5-1pclos2011.noarch.rpm’

100%[======================================>] 49.305      78,6K/s   in 0,6s    

2012-01-18 23:54:41 (78,6 KB/s) - '‘lomanager-3.4.5-1pclos2011.noarch.rpm’' opgeslagen [49305/49305]

Preparing...                ########################################### [100%]
Download completed
--2012-01-18 23:56:40--  [url=http://download.documentfoundation.org/libreoffice/stable/3.4.5/rpm/x86/LibO_3.4.5_Linux_x86_install-rpm_en-US.tar.gz.mirrorlist]http://download.documentfoundation.org/libreoffice/stable/3.4.5/rpm/x86/LibO_3.4.5_Linux_x86_install-rpm_en-US.tar.gz.mirrorlist[/url]
Herleiden van download.documentfoundation.org (download.documentfoundation.org)... 178.63.91.70
Verbinding maken met download.documentfoundation.org (download.documentfoundation.org)|178.63.91.70|:80... verbonden.
HTTP-verzoek is verzonden; wachten op antwoord... 200 OK
Lengte: niet-opgegeven [text/html]
Wordt opgeslagen als: ‘LibO_3.4.5_Linux_x86_install-rpm_en-US.tar.gz.mirrorlist’

    [ <=>                                   ] 26.843       153K/s   in 0,2s    

2012-01-18 23:56:50 (153 KB/s) - '‘LibO_3.4.5_Linux_x86_install-rpm_en-US.tar.gz.mirrorlist’' opgeslagen [26843]



kioclient(6028): Session bus not found


So the install is aborted.

JohnW

« Last Edit: January 18, 2012, 04:10:14 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 melodie

  • Hero Member
  • *****
  • Posts: 5942
  • XMMP=Jabber, free instant messaging protocol !
    • PCLinuxOS Fr
Re: LibreOffice Manager (lomanager)
« Reply #572 on: January 18, 2012, 04:28:29 PM »
Hi,
I saw your post, then tried to invoke lomanager as user (just "lomanager"), then it started, and now it is updated (in French). It has not prompted me for the root password, but I think I may have already provided it a little while ago for something else... not so sure now. Maybe would you want to check again, by starting it as simple user in your console ?



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

Offline JohnW_57

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2144
Re: LibreOffice Manager (lomanager)
« Reply #573 on: January 18, 2012, 04:36:45 PM »
As user I get only:

Quote
[wimwillemsen@localhost ~]$ lomanager

[wimwillemsen@localhost ~]$ 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.)


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 AS

  • Hero Member
  • *****
  • Posts: 4111
  • Have a nice ... night!
Re: LibreOffice Manager (lomanager)
« Reply #574 on: January 18, 2012, 04:37:42 PM »
Some problems with Lomanager 3.4.5.
What's  happening  here?

As user:

Code: [Select]
wimwillemsen@localhost ~]$ 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.)


The above error look like related to gksu, not to lomanager, ... lomanager is using gksu when kdesu is not available ...

Quote
As root:

Code: [Select]
[root@localhost wimwillemsen]# lomanager

[root@localhost wimwillemsen]# stdin: is not a tty

Internet connection working

--2012-01-18 23:54:31--  [url=http://distro.ibiblio.org/pclinuxos/pclinuxos/apt/pclinuxos/2010/RPMS.updates/lomanager-3.4.5-1pclos2011.noarch.rpm]http://distro.ibiblio.org/pclinuxos/pclinuxos/apt/pclinuxos/2010/RPMS.updates/lomanager-3.4.5-1pclos2011.noarch.rpm[/url]
Herleiden van distro.ibiblio.org (distro.ibiblio.org)... 152.19.134.43
Verbinding maken met distro.ibiblio.org (distro.ibiblio.org)|152.19.134.43|:80... verbonden.
HTTP-verzoek is verzonden; wachten op antwoord... 200 OK
Lengte: 49305 (48K) [application/x-rpm]
Wordt opgeslagen als: ‘lomanager-3.4.5-1pclos2011.noarch.rpm’

100%[======================================>] 49.305      78,6K/s   in 0,6s    

2012-01-18 23:54:41 (78,6 KB/s) - '‘lomanager-3.4.5-1pclos2011.noarch.rpm’' opgeslagen [49305/49305]

Preparing...                ########################################### [100%]
Download completed
--2012-01-18 23:56:40--  [url=http://download.documentfoundation.org/libreoffice/stable/3.4.5/rpm/x86/LibO_3.4.5_Linux_x86_install-rpm_en-US.tar.gz.mirrorlist]http://download.documentfoundation.org/libreoffice/stable/3.4.5/rpm/x86/LibO_3.4.5_Linux_x86_install-rpm_en-US.tar.gz.mirrorlist[/url]
Herleiden van download.documentfoundation.org (download.documentfoundation.org)... 178.63.91.70
Verbinding maken met download.documentfoundation.org (download.documentfoundation.org)|178.63.91.70|:80... verbonden.
HTTP-verzoek is verzonden; wachten op antwoord... 200 OK
Lengte: niet-opgegeven [text/html]
Wordt opgeslagen als: ‘LibO_3.4.5_Linux_x86_install-rpm_en-US.tar.gz.mirrorlist’

    [ <=>                                   ] 26.843       153K/s   in 0,2s    

2012-01-18 23:56:50 (153 KB/s) - '‘LibO_3.4.5_Linux_x86_install-rpm_en-US.tar.gz.mirrorlist’' opgeslagen [26843]



kioclient(6028): Session bus not found


So the install is aborted.

JohnW




I have installed the update on my KDE system, as root, without issues ... what DE are you running ?



Offline JohnW_57

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2144
Re: LibreOffice Manager (lomanager)
« Reply #575 on: January 18, 2012, 04:39:08 PM »
Fully updated KDE4 install :)

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 AS

  • Hero Member
  • *****
  • Posts: 4111
  • Have a nice ... night!
Re: LibreOffice Manager (lomanager)
« Reply #576 on: January 18, 2012, 04:42:41 PM »
Fully updated KDE4 install :)

JohnW

can you check permissions of kdesu ?
Quote
   ls -l /usr/lib/kde4/libexec/kdesu
mine are:
-rwxr-xr-x 1 root root 45820 Jul  1  2011 /usr/lib/kde4/libexec/kdesu*

Offline JohnW_57

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2144
Re: LibreOffice Manager (lomanager)
« Reply #577 on: January 18, 2012, 04:45:59 PM »
[wimwillemsen@localhost ~]$    ls -l /usr/lib/kde4/libexec/kdesu
-rwxr-xr-x 1 root root 45820 jul  1  2011 /usr/lib/kde4/libexec/kdesu*

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 AS

  • Hero Member
  • *****
  • Posts: 4111
  • Have a nice ... night!
Re: LibreOffice Manager (lomanager)
« Reply #578 on: January 18, 2012, 04:55:14 PM »
I checked again the script in a virtualbox KDE guest, and it is calling gksu, this is probably a problem in lomanager ...
however gksu is working on my guest machine ... currently downloading files ...

Offline JohnW_57

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2144
Re: LibreOffice Manager (lomanager)
« Reply #579 on: January 18, 2012, 05:10:51 PM »
Guess I found the issue:
Have installed  a multiple  Desktop install: KDE4, Gnome2 and Razor-QT

Did the lomanager update in a Gnome2 session and is now it's fully updated

Guess peeps have multiple desktops on their install can meet this issue.

JohnW

« Last Edit: January 18, 2012, 05:59:54 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 AS

  • Hero Member
  • *****
  • Posts: 4111
  • Have a nice ... night!
Re: LibreOffice Manager (lomanager)
« Reply #580 on: January 18, 2012, 05:18:25 PM »
Guess I found the issue:
Have installed  a multiple  Desktop install: KDE4, Gnome2 an Razor-QT

Did the lomanager update in a Gnome2 session and is now it's fully updated

Guess peeps have multiple desktops on their install can meet this issue.

JohnW



I think pinoc will be interested to know about, ... may be not very happy  :D

Offline JohnW_57

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2144
Re: LibreOffice Manager (lomanager)
« Reply #581 on: January 18, 2012, 05:22:44 PM »
Code is: LibreOffice 3.4.5
OOO340m1 (Build:502)
on my system

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: 2849
    • other projects...
Re: LibreOffice Manager (lomanager)
« Reply #582 on: January 19, 2012, 12:51:26 AM »
Hi JohnW,

interesting. As you can see in the script, gksu is preferred over kdesu, regardless of the current DE. In fact it is /usr/bin/gksu -l

In the KDE session you got an X Window System error, which should not have happened, and I suspect there was something strange going on in that KDE session. Can you reboot the PC, go into KDE and start lomanager again from the cmd-line to test if you can replicate the error?
-p.

Offline pinoc

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2849
    • other projects...
Re: LibreOffice Manager (lomanager)
« Reply #583 on: January 19, 2012, 03:02:14 AM »
lomanager 3.4.5 is out, updated to work for that LO-version. I will not update the offline installer to that version because I have no time right now.
lomanager 3.5.0 and the corresponding Offline installer will be out in ~ 2 weeks, when LO 3.5.0 is final.
-p.

Offline JohnW_57

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2144
Re: LibreOffice Manager (lomanager)
« Reply #584 on: January 19, 2012, 05:32:49 AM »
Hi JohnW,

interesting. As you can see in the script, gksu is preferred over kdesu, regardless of the current DE. In fact it is /usr/bin/gksu -l

In the KDE session you got an X Window System error, which should not have happened, and I suspect there was something strange going on in that KDE session. Can you reboot the PC, go into KDE and start lomanager again from the cmd-line to test if you can replicate the error?
-p.


Did a system reboot and did rerun lomanager in konsole and did get the same error message.

Code: [Select]
[wimwillemsen@localhost ~]$ lomanager --debug


# i18n - Internationalization
#====================================================
export TEXTDOMAIN=lomanager
+ export TEXTDOMAIN=lomanager
+ TEXTDOMAIN=lomanager
export TEXTDOMAINDIR="/usr/share/locale"
+ export TEXTDOMAINDIR=/usr/share/locale
+ TEXTDOMAINDIR=/usr/share/locale

# define some variables
#=================================================
lomil="/tmp/lomanager-install.log"
+ lomil=/tmp/lomanager-install.log
LOCURRENT="340m1(Build:502)" # Pinoc: update and insert losort
+ LOCURRENT='340m1(Build:502)'
glov="3.4.5" && WICON='/usr/share/icons/office_section.png' && TITLE="LibreOffice Manager "$glov
+ glov=3.4.5
+ WICON=/usr/share/icons/office_section.png
+ TITLE='LibreOffice Manager 3.4.5'
ZEN2="zenity --window-icon="$WICON && XUGOO=/tmp/xsulomanager
+ ZEN2='zenity --window-icon=/usr/share/icons/office_section.png'
+ XUGOO=/tmp/xsulomanager

sysarch=`getconf LONG_BIT`
getconf LONG_BIT
++ getconf LONG_BIT
+ sysarch=32
if [ $sysarch -eq 32 ]; then
  sysarchdir="x86" && sysarchext="_x86"
  else
  sysarchdir="x86_64" && sysarchext="_x86-64"
fi
+ '[' 32 -eq 32 ']'
+ sysarchdir=x86
+ sysarchext=_x86
tmpdir=/root/LOtmp && keepdir=/tmp/LO-rpms
+ tmpdir=/root/LOtmp
+ keepdir=/tmp/LO-rpms
basepackdir="LibO_3.4.5_Linux"$sysarchext"_install-rpm_en-US"
+ basepackdir=LibO_3.4.5_Linux_x86_install-rpm_en-US
basepack=$basepackdir".tar.gz"   # base package to be downloaded
+ basepack=LibO_3.4.5_Linux_x86_install-rpm_en-US.tar.gz
langpackbase="LibO_3.4.5_Linux"$sysarchext"_langpack-rpm_" # language package for non en-US
+ langpackbase=LibO_3.4.5_Linux_x86_langpack-rpm_
helppackbase="LibO_3.4.5_Linux"$sysarchext"_helppack-rpm_" # help package
+ helppackbase=LibO_3.4.5_Linux_x86_helppack-rpm_
httpsource="http://download.documentfoundation.org/libreoffice/stable/3.4.5/rpm/"$sysarchdir"/"  # http-source
+ httpsource=http://download.documentfoundation.org/libreoffice/stable/3.4.5/rpm/x86/

# check that package managers are closed
#=================================================
for idx in synaptic smart ksmarttray kpackage apt-get
do
 if [ -n "`pidof $idx`" ];then
  MSG=$"Please close your package manager '$idx' \nand then run LibreOffice Manager again.\n\nExiting..."
  $ZEN2 --title="$TITLE" --error --text "$MSG"
  /bin/rm -f $XUGOO && cd && /bin/rm -fr $tmpdir
  exit 0
 fi
done
+ for idx in synaptic smart ksmarttray kpackage apt-get
pidof $idx
++ pidof synaptic
+ '[' -n '' ']'
+ for idx in synaptic smart ksmarttray kpackage apt-get
pidof $idx
++ pidof smart
+ '[' -n '' ']'
+ for idx in synaptic smart ksmarttray kpackage apt-get
pidof $idx
++ pidof ksmarttray
+ '[' -n '' ']'
+ for idx in synaptic smart ksmarttray kpackage apt-get
pidof $idx
++ pidof kpackage
+ '[' -n '' ']'
+ for idx in synaptic smart ksmarttray kpackage apt-get
pidof $idx
++ pidof apt-get
+ '[' -n '' ']'

# check for running OO or LO processes,
# if found get their windowID and close them gracefully
#=========================================================
wids=`wmctrl -l |grep "LibreOffice Base\|LibreOffice Calc\|LibreOffice Draw\|LibreOffice Impress\|LibreOffice Math\|LibreOffice Writer\|Printer Administration\|OpenOffice.org Base\|OpenOffice.org Calc\|OpenOffice.org Draw\|OpenOffice.org Impress\|OpenOffice.org Math\|OpenOffice.org Writer"|awk '{print$1}'`
wmctrl -l |grep "LibreOffice Base\|LibreOffice Calc\|LibreOffice Draw\|LibreOffice Impress\|LibreOffice Math\|LibreOffice Writer\|Printer Administration\|OpenOffice.org Base\|OpenOffice.org Calc\|OpenOffice.org Draw\|OpenOffice.org Impress\|OpenOffice.org Math\|OpenOffice.org Writer"|awk '{print$1}'
++ wmctrl -l
++ awk '{print$1}'
++ grep 'LibreOffice Base\|LibreOffice Calc\|LibreOffice Draw\|LibreOffice Impress\|LibreOffice Math\|LibreOffice Writer\|Printer Administration\|OpenOffice.org Base\|OpenOffice.org Calc\|OpenOffice.org Draw\|OpenOffice.org Impress\|OpenOffice.org Math\|OpenOffice.org Writer'
+ wids=
if [ -n "$wids" ];then
  MSG=$"Active Office application found\!\nWe will close it now. Then restart LibreOffice Manager.\n\nExiting..."
  $ZEN2 --title="$TITLE" --error --text "$MSG"
  for idx in $wids; do wmctrl -ic $idx; done
  pslo=`ps -ef|grep -i libreoffice|awk '{print$2}'` && kill -9 $pslo &>/dev/null
  /bin/rm -f $XUGOO && cd && /bin/rm -fr $tmpdir
  exit 0
fi
+ '[' -n '' ']'

# check for kdesu or gksu and setup/or run XUGOO
#=================================================
if [ ! -e $XUGOO ];then
  if [ -r /usr/lib/kde4/libexec/kdesu ]; then WMSUDO=/usr/lib/kde4/libexec/kdesu; fi
  if [ -r /usr/lib64/kde4/libexec/kdesu ]; then WMSUDO=/usr/lib64/kde4/libexec/kdesu; fi
  if [ -r /usr/bin/gksu ]; then WMSUDO="/usr/bin/gksu -l "; fi
  if [ $VTEST -eq 1 ]; then
    QQ="lomanager"
  else
    QQ="lomanager --no-vtest"
    if [ "$WMSUDO" == "/usr/bin/gksu -l " ] && [ "$UID" != "0" ]; then QQ="'lomanager --no-vtest'"; fi
  fi
  # setup XUGOO
  echo "#"'!/bin/bash' > $XUGOO
  if [ "$UID" != "0" ]; then echo $WMSUDO $QQ >> $XUGOO; else echo $QQ >> $XUGOO; fi
  chmod a+x $XUGOO
  $XUGOO &
  exit 0
fi
+ '[' '!' -e /tmp/xsulomanager ']'

# Check if user is still not logged in as root
# then relaunch the script
#=================================================
if [ "$UID" != "0" ]; then
  $XUGOO &
  exit 0
fi
+ '[' 500 '!=' 0 ']'
+ exit 0
# ~/.bash_logout

+ /tmp/xsulomanager
clear
++ clear
[wimwillemsen@localhost ~]$ 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 836 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.)


JohnW
« Last Edit: January 19, 2012, 05:44:23 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.