How to fix the startup problem of 0.3.2

Hello!

I’ve seen that some people won’t be able to start Ubuntu Tweak 0.3.2. The condition may like this:

The splash screen is displayed and then nothing.

It’s not a common bug so I wrote this article to tell you how to fix this problem.

—–

Thanks crjackson and the bug reporter Mark Krapivner and Soulou at launchpad:bug#238158

I saw your outputs, and there was nothing  serious  error message that cause the Ubuntu Tweak can’t start.

So I assume that the splash screen cause the problem, now I tell you how to disable the splash, I hope it’ll solve it.

First, open your terminal(gnome-terminal), and type the following command.

sudo gedit /usr/share/ubuntu-tweak/ubuntu-tweak.py

At the line 33, you’ll see “thread.start_new_thread(self.show_splash, ()) “, now you can put an “#” in font of line or delete this line.

So ubuntu-tweak.py will like this:

……..

class TweakLauncher:
def __init__(self):
gtk.gdk.threads_init()
#            thread.start_new_thread(self.show_splash, ())

try:
from PackageWorker import update_apt_cache
except ImportError:
pass

……..

Now save the file and try to start Ubuntu Tweak.

Please tell me the whether it is useful, thanks!

Good luck!

This entry was posted in Uncategorized and tagged . Bookmark the permalink.

20 Responses to How to fix the startup problem of 0.3.2

  1. Pingback: 2 For Good » Blog Archive » How to fix the startup problem of 0.3.2

  2. Mark says:

    disabling the splash screen did it, now ubuntu-tweak it works again.

  3. Pingback: Probleme beim Starten von Ubuntu Tweak 0.3.2? « Gnubuntux - GNU, Linux und Ubuntu

  4. pzy says:

    my error inform. is:
    —————————————-
    xxxxxxxxx@PPC:~$ ubuntu-tweak
    /usr/lib/python2.5/site-packages/apt/__init__.py:18: FutureWarning: apt API not stable yet
    warnings.warn(”apt API not stable yet”, FutureWarning)
    正在读取软件包列表… 完成
    正在分析软件包的依赖关系树
    读取状态信息… 完成
    Traceback (most recent call last):
    File “./ubuntu-tweak.py”, line 77, in
    launcher = TweakLauncher()
    File “./ubuntu-tweak.py”, line 42, in __init__
    window = MainWindow()
    File “/usr/share/ubuntu-tweak/MainWindow.py”, line 232, in __init__
    self.notebook = self.create_notebook()
    File “/usr/share/ubuntu-tweak/MainWindow.py”, line 331, in create_notebook
    notebook.append_page(page(self), None)
    File “/usr/share/ubuntu-tweak/Scripts.py”, line 342, in __init__
    tl = EnableScripts()
    File “/usr/share/ubuntu-tweak/Scripts.py”, line 180, in __init__
    self.create_model()
    File “/usr/share/ubuntu-tweak/Scripts.py”, line 234, in create_model
    filename)
    TypeError: icon_lookup() argument 2 must be gnome.ui.ThumbnailFactory, not None
    xxxxxxxxx@PPC:~$
    ———————————

  5. crjackson says:

    I’ll re-install and try again in a couple of days. I’m sure that will fix it. I’ll post back and let you know.

    I understand you feel it’s a rare problem but I’ve got the same rare problem on several systems now. All very different systems with different software installed. The only common factor is Ubuntu 8.04.

    Please let us know if you find a way to run with the splash screen enabled. I’d just like to know why that is causing a problem.

  6. me says:

    Fixed it.
    Thanks!

  7. Here is the solution:

    Modify the script by -
    sudo gedit /usr/share/ubuntu-tweak/ubuntu-tweak.py

    and edit the __main__ function to look like this:

    if __name__ == “__main__”:
    #determine whether the gnome is the default desktop
    #if os.getenv(“GNOME_DESKTOP_SESSION_ID”):
    #from SystemInfo import GnomeVersion
    #if GnomeVersion.minor < 0:
    # show_info(_(“Sorry!\n\nUbuntu Tweak can only run under GNOME 2.18 or above.\n”))
    #else:
    launcher = TweakLauncher()
    launcher.main()
    #else:
    # show_info(_(“Sorry!\n\nUbuntu Tweak can only run in GNOME Desktop.\n”))

    And it will now run: The issue is in the gnome detection.

  8. Matt says:

    Fix worked great thanks

  9. TualatriX says:

    Thanks Kristan “Krispy” Uccello.

    I hope that the people have this problem can try this solution and tell me the result.

    So I can improve it.

  10. Matthew says:

    Hi Tualatrix,

    Awesome job on the Ubuntu Tweak, it really is great.

    I would just like to share an issue that happens when I open Ubuntu Tweak.

    When I open it, everything on the desktop disappears (the top bar, AWN dock, ICONS, etc) except for the Desktop wallpaper.

    After a bit of tampering I soon came to realize that when I open UT, it turns on my Widget Layer in Compiz and activates it.

    I then have to press F9 to bring it back to normal, go into Advanced Desktop Settings and turn the Widget Layer off.

    I’d just thought I’d share with everyone, but would you know what the problem is?

  11. TualatriX says:

    Hi Matthew:

    I’ve notice this problem. Ubuntu Tweak will automately enable Widget Layer while starting.

    So in the next version, I’ll fix it.

    Thanks.

  12. sedra12 says:

    @tualatriX
    you need to optimize your python code ubuntu tweak is becoming bloatware

  13. TualatriX says:

    @sedra12:

    Thanks of your remind. I’ve notice this problem.
    It will be solved in the future.

  14. rico says:

    hmmm… the metacity roll-up option is not working anymore… any idea? reinstalled ubuntu (not because of this problem :P ) and ubuntu-tweak… and the problem is still there.

  15. Pingback: New version is coming. Give me your advice | Ubuntu Tweak

  16. Beautiful site, All about buy now pay later no credit check [url=http://buynowpaylaternocreditche.imagekind.com/#1]All about buy now pay later no credit check[/url], =-D,

  17. Book marked – will return in next week to check rest articles.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>