Menu

0.4.9pre1 dialog problems

Help
fsando
2007-11-14
2013-01-15
  • fsando

    fsando - 2007-11-14

    Ubuntu 7.10,
    rkward 0.4.9pre1,
    KDE 3.5.8

    I'm experiencing some apparent problems with dialogs, I don't know if it has to do with Ubuntu or if it perhaps is related to the compilation process (ie. whether I may have wrong libraries installed)
    The specific situation:
    I want to install new packages via the 'settings' menu and it goes as follows:
    'Settings' > 'Configure Packages'
    Select 'Install' tab
    'Install packages to' points to '/usr/local/lib/R/site-library' which needs root to access.
    Click the 'Fetch list' button
    This triggers two dialog boxes:the Select CRAN mirror dialog and one with the title 'Fetching list' After a moment a text in red says: 'There have been errors and / or warnings! See below for a transcript'.
    Two problems here:
    1) This dialog is so small that buttons are not visible - you have to resize it to get to the buttons.
    2) The error/warning (colored red) seems to be 'Loading Tcl/Tk interface ... done' - is this an error/warning?
    This also occurred under ubuntu 7.04

    I select a mirror, the package list is downloaded, I select a package to install and is greeted with the dialog 'Selected library location is not writable - RKWard'
    I click the button 'Become root'
    A dialog 'Installing packages' appears but no dialog to enter root password shows - this did work under ubuntu 7.04..

    I sort of solved this by installing to a folder that doesn't need root.

     
    • fsando

      fsando - 2007-11-14

      UPDATE
      On a hunch I installed kdesudo. Now I get this error in the message box:

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

      kdesu --help
      does not mention a '-t' options

      Here it is mentioned but ...
      http://docs.kde.org/stable/en/kdebase/kdesu/using-kdesu.html

      '-t' - Enable terminal output. This disables password keeping. This is largely for debugging purposes; if you want to run a console mode app, use the standard su instead.

      From the debug output when you run:

      rkward --debug-level 5

      I guess the problem lies in
      rkloadlibsdialog.cpp line 165 and 201:
      if (as_root) *proc << "kdesu" << "-t";

      I would like to change this but don't know how.
      I found one other unconfirmed and unanswered bug report on this:

      http://www.nabble.com/-Bug-151149--New:-the-%22-t%22-option-is-not-recognised-in-the-kdesu-command.-t4666447.html

      Hope this helps

       
      • Johan Van de Wauw

        About this kdesu issue: kdesu is just a link to kdesudo in kubuntu, because ubuntu tries not to use the superuser account but uses sudo for everything.

         
    • Thomas Friedrichsmeier

      Hi,

      thanks for your report. Regarding your points:
      1) This should now be improved - slightly - in the current SVN sources. The dialog size is still not really optimal, but at least it should be large enough to show the buttons.
      2) Yes, this is rather unfortunate. The problem is that at this particular point, the only way to differentiate between "normal" output and errors/warnings is to check, whether the output arrived on stdout or stderr. For some reason, the "Loading Tcl/Tk interface" message arrives on stderr. It's certainly rather annoying, but I don't have an idea on how to fix this, ATM.

      About your follow-up:
      Hm. We do need the -t option in kdesu. Otherwise we do not see any output at all, so there is no way to watch what's happening. This works fine on debian, and I don't understand, why it appears to be disabled on ubuntu. In KDE4 we might be able to use a more direct mechanism (though I haven't figured out how to use this, yet), but right now I have no idea on how to work around this limitation (well, other than to install to a directory that does not need root permissions).

      Regards
      Thomas

       
    • fsando

      fsando - 2007-11-15

      Thanks for your answer.
      I have researched a little further. As far as I can tell kdesu was replaced in ubuntu 7.10 with a command called kdesudo. It appears the '-t' option was lost in the process, perhaps the good people at ubuntu/canonical disregarded it because it's a debug option? After all, who needs debugging if your work is perfect? ;)

       
      • Thomas Friedrichsmeier

        FYI, kdesudo 2.0 supposedly support the "-t" option, and should therefore work correctly with RKWard (I haven't tested, myself).

         
    • fsando

      fsando - 2007-11-15

      @Johan Van de Wauw
      That's true but it still defeats rkward as it doesn't recognize the '-t' option

       
    • fsando

      fsando - 2008-01-07

      Thanks for your answer
      At the moment it works fine. I have the 2286 version installed (the last before cmake I believe). Recently I installed the full KDE desktop (under Ubuntu 7.10 - Gnome). Still running Gnome, RKward seems to run a lot better now.

       
MongoDB Logo MongoDB