Announcement

Collapse
No announcement yet.

Bleachbit as root fails to launch

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Bleachbit as root fails to launch

    Ref: https://www.kubuntuforums.net/showth...ails-to-launch

    Just installed 14.04 and having the same problem described in OP. (No problem, though, in 12.04.)
    Still observing this; anyone have input, please post!

    For example, deleting .Xauthority ... in user account: when to do this? Do it and re-boot?
    Last edited by Snowhog; Oct 02, 2014, 10:26 PM.
    An intellectual says a simple thing in a hard way. An artist says a hard thing in a simple way. Charles Bukowski

    #2
    Same here. Tried running it over the weekend with no luck.

    Comment


      #3
      Still a bit preoccupied setting up 14.04, I do intend to chase down this glitch (although whatthefunk probably would have found a solution is there were one), but I'll post this for inquiring tech minds as I continue to ponder:

      ~$ kdesudo bleachbit
      kdesudo(18196) KDESu::KDESuPrivate::KCookie::getXCookie: No X authentication info set for display ":0"

      Bus: : open: Can not get ibus-daemon's address.
      IBusInputContext::createInputContext: no connection to ibus-daemon
      No protocol specified
      /usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display
      warnings.warn(str(e), _gtk.Warning)
      Could not open X display


      (Btw, I do not have this problem in 12.04.)
      An intellectual says a simple thing in a hard way. An artist says a hard thing in a simple way. Charles Bukowski

      Comment


        #4
        Well...

        Code:
        steve@t520:~$ [B]ll /usr/bin/bleachbit [/B]
        lrwxrwxrwx 1 root root 31 Nov 24  2013 /usr/bin/bleachbit -> ../share/bleachbit/bleachbit.py*
        Code:
        steve@t520:~$ [B]cat /usr/share/bleachbit/bleachbit.py[/B]
        #!/usr/bin/env python
        
        {...snip...}
        
        import os
        import sys
        
        if 'posix' == os.name and os.path.isdir('/usr/share/bleachbit'):
            # This path contains bleachbit/{C,G}LI.py .  This section is
            # unnecessary if installing BleachBit in site-packages.
            sys.path.append('/usr/share/')
        
        if 1 == len(sys.argv):
            import gtk
            try:
                gtk.gdk.Screen().get_display()
            except RuntimeError:
                print "Could not open X display"
                sys.exit(1)
            import bleachbit.GUI
            gui = bleachbit.GUI.GUI()
            gtk.main()
        else:
            import bleachbit.CLI
            bleachbit.CLI.process_cmd_line()
        Bleachbit is a Gtk application likely intended for GNOME systems. If perhaps you don't have enough of Gtk installed, the line gtk.gdk.Screen().get_display() is failing somehow?

        ...Steve

        Comment


          #5
          Nice investigative work S-R, makes sense. But note this:
          (1) It works OK in 12.04.
          (2) and note this pattern:

          After reading your post, I rebooted.
          Then successfully ran Bleachbit as admin 3 times in a row.
          Then ran Bleachbit as user: OK.
          Then ran Bleachbit as admin: Failed: it would not open.

          Then did Ctrl-Alt-Backspace.
          Then ran Bleachbit as admin: OK, no problem.
          Then ran Bleachbit again as admin: OK, no problem.
          Then ran Bleachbit as user: OK.
          Then ran Bleachbit as admin: Failed: it would not open.

          (So, in particular, running Bleachbit as user BEFORE running it as admin, causes a failure to open as admin--on my system (and for the user in the link posted in #1 above).)
          An intellectual says a simple thing in a hard way. An artist says a hard thing in a simple way. Charles Bukowski

          Comment


            #6
            The version offered through Muon Package Manager is Bleachbit 1.0. I got the upgrade to version 1.4 (the latest for Linux). The problem persists with 1.4.
            An intellectual says a simple thing in a hard way. An artist says a hard thing in a simple way. Charles Bukowski

            Comment


              #7
              I filed this as a bug.

              Bleachbit as root fails to launch after running as user

              Bug #1377719
              https://bugs.launchpad.net/bleachbit/+bug/1377719
              An intellectual says a simple thing in a hard way. An artist says a hard thing in a simple way. Charles Bukowski

              Comment


                #8
                Wrong forum

                Btw, the mods started my thread for me by moving a post I made in an old thread, but I just noticed it is under Pre-Release Testing. It shoud be under 14.04. Thanks.
                An intellectual says a simple thing in a hard way. An artist says a hard thing in a simple way. Charles Bukowski

                Comment


                  #9
                  Moved.
                  Using Kubuntu Linux since March 23, 2007
                  "It is a capital mistake to theorize before one has data." - Sherlock Holmes

                  Comment


                    #10
                    Thanks, Snowhog.

                    I'm curious about how many people may be having this issue in 14.04. There must be more! I did not have it in 12.04. As I say, I filed a bug report. People who re-boot all the time may not notice this so much or might not care so much. But if you keep your machine running days and days without re-boot, it is a bit of a hassle, though one could also do a quicker Ctrl-Alt-Del to run Bleachbit as admin after running it as user, now and then ...
                    An intellectual says a simple thing in a hard way. An artist says a hard thing in a simple way. Charles Bukowski

                    Comment


                      #11
                      For what it's worth, I am not having the problem described. I can run Bleachbit either as root or user just fine. I just ran it as root and cleaned my system. Exited and reran as user and cleaned my system. Reran as root no problem.
                      Using Kubuntu Linux since March 23, 2007
                      "It is a capital mistake to theorize before one has data." - Sherlock Holmes

                      Comment


                        #12
                        Thanks for the input. The fact that at least two others have the problem suggests to me it is not simply something wrong with my specific install of 14.04 (wild, renegate damaged bytes ...). My error message (above) should be the clue (to someone expert in these matters, having to do with X).
                        An intellectual says a simple thing in a hard way. An artist says a hard thing in a simple way. Charles Bukowski

                        Comment


                          #13
                          Originally posted by Qqmike View Post
                          Ref: https://www.kubuntuforums.net/showth...ails-to-launch

                          Just installed 14.04 and having the same problem described in OP.
                          32- or 64-bit? What version of KDE?
                          Using Kubuntu Linux since March 23, 2007
                          "It is a capital mistake to theorize before one has data." - Sherlock Holmes

                          Comment


                            #14
                            32-bit
                            KDE 4.13.3
                            An intellectual says a simple thing in a hard way. An artist says a hard thing in a simple way. Charles Bukowski

                            Comment


                              #15
                              I'll post this, too. Running Bleachbit as user from Konsole, there is this message that pops up prior to clicking on Clean:

                              ~$ bleachbit
                              info: starting BleachBit version 1.4
                              /usr/share/bleachbit/Unix.py:44: ImportWarning: Not importing directory '/usr/share/gnome': missing __init__.py
                              import gnome.vfs

                              (Then, of course, it does proceed to clean as user OK. The error message for admin has been posted above.)
                              An intellectual says a simple thing in a hard way. An artist says a hard thing in a simple way. Charles Bukowski

                              Comment

                              Working...
                              X