Linux und Ich

Blog über Ubuntu, Linux, Android und IT

Gimp in nur einem Fenster mit GimpBox

Single-Window Gimp with GimpBox

| 38 Comments

When people speak about the Pros and Cons of Gimp you often hear that the “multi window mode” is the most annoying point. Personally I’m used to the way Gimp handles it’s windows, especially when you work on a dual monitor setup or a big screen. But I’ve got to admit, that working with gimp on a small screen is not a fun thing to do. Gimp will get a redesign in the near future, but until then you can you GimpBox to integrate all Gimp windows into a single frame.

Anzeige

GimpBox is not a “new” Gimp, it’s also not a Fork like the outdated and abandoned GIMPshop. GimpBox is just a little Python script which acts as a wrapper for Gimp. I tested the script successfully with Ubuntu Lucid and Maverick. Unfortunately it looks like that it needs GNOME, users with Kubuntu told me that the script crashes…

Single-Window Gimp with GimpBox

The installation of GimpBox is easy. The authors don’t offer packages nor a PPA. But that’s not necessary, just download the script, copy it to /usr/local/bin and set the necessary right.s

$ sudo apt-get install python-wnck (Usually this package is installed)
$ sudo wget http://gimpbox.googlecode.com/hg/gimpbox.py -O /usr/local/bin/gimpbox
$ sudo chmod +x /usr/local/bin/gimpbox

After this you can start GimpBox via the command.

$ gimpbox

Additionally you could adjust the start menu entry inside the menus. Just change the start command from “gimp %U” to “gimpbox %U”.

Are there drawbacks? Unfortunately there are. After I changed the menu entry, I noticed that I can’t load a images from within Nautilus into Gimp anymore. GimpBox opens, but without the requested image. Another issue is that keyboard shortcuts don’t work inside GimpBox any more.

I hope that the author is able to fix those issues, because this Wrapper is a blessing for everyone who uses Gimp on a small screen.

Author: Christoph

Hallo, ich bin Christoph -- Linux-User, Blogger und pragmatischer Fan freier Software. Wie Ihr ohne Zweifel bemerkt haben solltet schreibe ich hier über Linux im Allgemeinen, Ubuntu im Speziellen, sowie Android und andere Internet-Themen. Wenn du Freude an meinen Artikel gefunden haben solltest, dann kannst du mir über Facebook, Google+ oder Twitter oder natürlich dem Blog folgen.

38 Comments

  1. Tolle Sache. Leider funktioniert es bei mir nicht, Kubuntu Lucid. Es stürzt direkt nach dem Start ab.
    Vielleicht solltest du noch erwähnen, dass python-wnck benötigt wird.

  2. vielen dank für den hinweis! klappt bei mir (ubuntu lucid) ganz toll. endlich, möchte ich fast sagen :)

  3. Danke. Auf einem grossen Bildschirm wäre mir zwar die Multifenster-Variante lieber (glaube ich zumindest), auf dem Netbook scheint GimpBox die Arbeit aber dtl. zu vereinfachen, mal sehen wie es im Dauereinsatz läuft.

  4. Super Tipp… Werd ich heute abend gleichmal testen!

  5. Nette Idee – wenngleich man die Option im Optimalfall doch direkt in Gimp integrieren sollte oder hab ich jahrelange Grundsatzdiskussionen über diesen Punkt bis dato erfolgreich verdrängt/verpasst?

    gruß
    fidel

    • Wie geschrieben will man die GUI von Gimp komplett umbauen. Ideen dazu findest du unter http://gui.gimp.org/index.php/GIMP_UI_Redesign wie bspw. http://www.mmiworks.net/eng/publications/2009/09/gimp-single-mode.html Früher oder später gibt es einen ganz offiziellen “Ein-Fenster-Gimp” (Mit der Option auf die alte GUI).

  6. Coole Sache,

    selbst auf einem großen Monitor ziehe ich diese Variante der mit den zig Fenstern vor.

    Allerdings kann mit gimpbox nicht mehr per Drag&Drop die Bilder in das Programm ziehen. Es geht jetzt nur über den Öffnen-Dialog

  7. Bei mir gehen damit die Tastenkürzel nicht. Z.B. kann ich dann kein Strg+Z mehr machen. Hat noch jemand das Problem?

  8. Nettes Skript. Damit funktioniert aber nicht mehr das Ausblenden der Dialogboxen (Werkzeugkasten etc.) per TAB. Das Bild ansich kann auch nicht gelöst werden, um es auf einen anderen Bildschirm zu ziehen. Naja… jetzt hat man dann ein Fenster mit anderen Nachteilen. In Photoshop hab ich den Einfenstermodus und kann trotzdem mit TAB ausblenden und Bilder verschieben. Egal… als Skript auf jeden Fall nicht schlecht.

  9. Hi,

    die Beta von Gimp 2.7.1 ist bereits als DEB erhältlich und da habt ihr das native. Zudem kommen noch viel mehr tolle Features, wie ein verbesserte Texteingabe.

    -p

    • Danke für den Tipp!

      Ich habe es mir installiert und freue mich nun über den SIngle Windows Modus.

      Allerdings konnte ich kein deb finden. Ich habe es nach dieser Anleitung (http://www.ubuntugeek.com/upgrade-your-gimp-version-to-2-7-in-ubuntu-karmicjaunty.html) aus einem ppa installiert.

  10. Ich habe das Script ein bisschen umgebaut damit es
    1. die Toolbox 2-spaltig anzeigt
    2. bei Rechtsklick “öffnen mit Gimp” richtig funktioniert

    Dazu einfach:
    Zeile 18:
    import sys
    Zeile 62:
    self.hpaned1.set_position(58) #ursprünglich 180
    Zeile 139:
    os.popen(‘(sleep 0.5 ; gimp “‘+sys.argv[1]+’” & ) &’)

    ändern

    • Hallo meles, funktioniert jedoch nur teilweise. Bei meinem Icon-Set (Faenza) bekomme ich nur eine Spalte an Tools angezeigt. Das “Öffnen mit” klappt jetzt, allerdings geht beim Starten von GimpBox (ohne ein Bild) nur ein graues Fenster auf.

      • Hallo Christoph,
        Ist mir auch gerade aufgefallen. Die Lösung:
        Statt Zeile 139 folgendes einfügen:
        if len(sys.argv)<2:
        os.popen('(sleep 0.5 ; gimp & ) &')
        else:
        os.popen('(sleep 0.5 ; gimp "'+sys.argv[1]+'" & ) &')

        Ich vermute du verwendest bei Gimp das Default-Theme. Dafür sollte statt 58 der Wert 68 reichen.

  11. Pingback: GIMPBox, The GIMP single window mode | Cebuntu

  12. Hallo
    bei mir unter Ubuntu 10.04 läuft das Prog leider nicht.Beim Start aus dem Terminal startet Gimp und stürzt sofort ab.Folgende Fehlermeldungen erhalte ich

    ** (gimpbox.py:7966): WARNING **: Trying to register gtype ‘WnckWindowState’ as enum when in fact it is of type ‘GFlags’

    ** (gimpbox.py:7966): WARNING **: Trying to register gtype ‘WnckWindowActions’ as enum when in fact it is of type ‘GFlags’

    ** (gimpbox.py:7966): WARNING **: Trying to register gtype ‘WnckWindowMoveResizeMask’ as enum when in fact it is of type ‘GFlags’

    Hoffe mir kann geholfen werden.
    Gruß…busfahrer

  13. Hallo Christoph

    Desktopumgebung ist Gnome und python-wnck ist installiert

    dpkg -l | grep python-wnck
    ii python-wnck 2.30.0-0ubuntu1 Python bindings for the WNCK library

    Gruß…busfahrer

    • Hmmmm, vielleicht ist eine Gimp-Konfiguration dran schuld. Kannst du mal Gimp beenden und den versteckten Ordner ~/.gimp-2.6 umbenennen. Danach wieder GimpBox starten. Falls das auch nicht hilft, kannst du ja den Ordner wieder umbenennen.

  14. funktioniert bei mir sehr eingeschränkt, wie bekomme ich das ding wieder weg? ;)

  15. Hallo Christoph
    leider ändert das umbenennen des Ordners ~/.gimp-2.6 nichts an dem Problem.

    Gruß…busfahrer

  16. Hallo Christoph
    das scheint wohl ein Bug zu sein https://bugzilla.gnome.org/show_bug.cgi?id=630063

    Gruß…busfahrer

  17. Super Sache! gibts sowas auch für xsane?

    Gruß Fidel

  18. Pingback: Gimp 2.6 Bedava Photoshop !

  19. Bei mir stürtzt das ganze ebenfalls nach dem Start sofort ab. (Lucid Lynx)
    Wie kann ich das ganze deinstallieren?

    • Einfach /usr/local/bin/gimpbox löschen und – falls du das gemacht hast – den Eintrag im Startmenü wieder auf “gimp %U” ändern. Danach sollte wieder alles beim alten sein.

      Grüße
      Christoph

  20. Pingback: GIMPbox – single window mode for GIMP 2.6.10 and earlier | Do Your BEST

  21. Pingback: Gimp 2.7.3 mit Einfenstermodus und Gruppeneffekten | Linux und Ich

Leave a Reply

Required fields are marked *.