Mailinglist Archive: opensuse-kde (108 mails)

< Previous Next >
Re: [suse-kde] Installing RPMs using Konqueror not Working
  • From: Leendert Meyer <leen.meyer@xxxxxxx>
  • Date: Sun, 9 Apr 2006 14:45:45 +0200
  • Message-id: <200604091445.45949.leen.meyer@xxxxxxx>
On Sunday 09 April 2006 02:03, Andres Mejia wrote:
> I updated KDE to version 3.5.2 from the supplementary folder. Now I can't
> install RPMs by clicking the <Install Package with YaST> button or use the
> <Use Directory as Source with YaST> button. This is what I'm getting
> running Konqueror in a terminal session.
>
> user@linux:~> konqueror
> konqueror: WARNING: KXMLGUIClient::setXMLFile: cannot find .rc file
> krpmview.rc
> kparts: WARNING: Part '' has a widget  with a focus policy of NoFocus. It
> should have at least a ClickFocus policy, for part activation to work well.

I get above output as well, after clicking on a .rpm file, but *without*
clicking on the 'Install Package with YaST' or 'Use Directory as Source with
YaST' buttons.

> kdesu: Unknown option '-n'.
> kdesu: Use --help to get a list of available command line options.

Above 2 output lines are added after clicking *once* on /either/ the 'Install
Package with YaST' button *or* the 'Use Directory as Source with YaST' button
(still in Konqueror).

[snip]

Have you tried one of these:
  - right-click on an .rpm-file, click 'Actions' -> 'Install with YaST'
  - right-click on a directory, click 'Actions' -> 'Add directory as YaST
source'

Perhaps it is necessary to first add a directory as YaST source, and then
install a .rpm-file - not the other way around.

I admit, it's not a solution, but a work-around. ;)

But this *clearly* is a bug. I downloaded the .src.rpm package. The
servicemenu entries
in /opt/kde3/share/apps/konqueror/servicemenus/{add_yast_source,install_rpm}.sh
are ok (the option '-n' to kdesu was removed), but they forgot to remove that
option from the krpmview.cpp:

----<kdebase-SuSE.diff>----<start>----
diff -urN kdebase-SuSE.orig/krpmview/krpmview.cpp
kdebase-SuSE/krpmview/krpmview.cpp
--- kdebase-SuSE.orig/krpmview/krpmview.cpp     2005-08-05 13:17:39.000000000
+0200
+++ kdebase-SuSE/krpmview/krpmview.cpp  2006-04-09 14:32:57.000000000 +0200
@@ -199,14 +199,14 @@
 void KRPMViewPart::install_package()
 {
   KProcess p;
-  p << "kdesu" << "-n" << "--nonewdcop" << "--" <<
"/opt/kde3/share/apps/krpmview/setup_temp_source" << m_file.ascii();
+  p << "kdesu" << "--nonewdcop" << "--" <<
"/opt/kde3/share/apps/krpmview/setup_temp_source" << m_file.ascii();
   p.start(KProcess::DontCare);
 }
 
 void KRPMViewPart::use_directory()
 {
   KProcess p;
-  p << "kdesu" << "-n" << "--" << "/opt/kde3/bin/kde_add_yast_source.sh";
+  p << "kdesu" << "--" << "/opt/kde3/bin/kde_add_yast_source.sh";
   p << m_url.path().left(m_url.path().findRev("/"));
 
   p.start(KProcess::DontCare);
----<kdebase-SuSE.diff>----<end>----

So, if somebody already has filed a bug report, you might add this diff as a
*possible* solution. BTW, it is a package from SUSE, *not* from KDE.

This does not solve the 'cannot find .rc file' message. That is another thing,
I'm not sure if that is a bug or not.

Cheers,

Leen

< Previous Next >
References