View Full Version : HOWTO: Run GIMP in its own window.
neko18
August 21st, 2006, 01:19 AM
First make sure you have all the needed stuff:
sudo apt-get install xnest metacity gimp
Now run this command to test it:
Xnest :1 -ac -name GIMP -geometry 1024x690 & metacity --display :1 & gimp --display :1
You may like to change the "1024x690" to something that better fits your screen.
If it works, you may edit your GIMP menu shortcuts to reflect that command.
Here's a screenshot:
BLTicklemonster
September 5th, 2006, 02:05 AM
Could I get an example of this edit command you speak of? I like this.
pufuwozu
September 5th, 2006, 02:30 AM
That's a really good idea. Thanks.
BLTicklemonster
September 5th, 2006, 09:40 AM
Hmmm, like perhaps I ought to create a launcher on my desktop, and use that command? I'd like it if I could make it so it would do that if I right click an image and choose open with gimp, but hey, no problem with it otherwise!
Again, I really like this, thanks for posting it.
simplyw00x
September 5th, 2006, 11:56 AM
I'd like it if I could make it so it would do that if I right click an image and choose open with gimp, but hey, no problem with it otherwise!
Rename /usr/bin/gimp to /usr/bin/gimp_bin, then make a new file:
#!/bin/bash
Xnest :1 -ac -name GIMP -geometry 1024x690 & metacity --display :1 & gimp_bin --display :1
save this file as /usr/bin/gimp
sharperguy
September 5th, 2006, 12:10 PM
save this file as /usr/bin/gimp
youl also have to run
sudo chmod +x /usr/bin/gimp
And you'll have to be an admin of course.
DC@DR
September 5th, 2006, 02:15 PM
We could try also GIMPshop, which is a improved version of GIMP: http://www.gimpshop.net/ --> it also open GIMP as a whole window, which makes us feel smth Photoshop-alike.
jeffc313
September 5th, 2006, 02:21 PM
wow, that plus gimpshop is really excellent@!!!!
BLTicklemonster
September 5th, 2006, 04:03 PM
Rename /usr/bin/gimp to /usr/bin/gimp_bin, then make a new file:
#!/bin/bash
Xnest :1 -ac -name GIMP -geometry 1024x690 & metacity --display :1 & gimp_bin --display :1
save this file as /usr/bin/gimp
Isn't there some chown command or something I have to run first to have permission to alter the file? (if not for that, then for any others, and what is the command, I really need it for something else, also thanks)
BLTicklemonster
September 5th, 2006, 04:40 PM
Okay, I did it, but now it opens the window, but not gimp.
Toxicity999
September 7th, 2006, 06:22 PM
The command your looking for is:
sudo chown username:usergroup /dir/dir/file.xyz
You DON'T need to do this to edit a text file. a simple sudo gedit or sudo nano will do there. use chown with caution.
But anyway a complete walkthrough for what they were jsut talking about to run like this by default:
sudo cp /usr/bin/gimp /usr/bin/gimp_old
sudo rm /usr/bin/gimp
sudo gedit /usr/bin/gimp
Past this into the file:
#!/bin/bash
Xnest :1 -ac -name GIMP -geometry 1024x690 & metacity --display :1 & gimp_bin --display :1 Now you just need to make it executable with:
sudo chmod +x /usr/bin/gimpNow just run things as normal should work assuming they had it right I was just compiling it for everyone :)
argie
September 8th, 2006, 12:24 PM
Hey, I like this. I just got it working nicely.
GIMP seems to look a little different though.
BLTicklemonster
September 9th, 2006, 12:32 PM
Okay, I have already dorked out ubuntu and had to reinstall it because I chowned /usr, so I'm not about to do that again.
Please, instead of blurting out something experienced users understand, would you please walk this moron through renaming /usr/bin/gimp please?
I have /home/ticklemonster/gimp which works fine. I have a link to it on my desktop, but I'd like to have my actual link under graphics to be the windowed version which I just created, and keep my desktop free to clutter up with other useless stuff.
Thank you. Sorry about the rant.
*edit:
tee hee hee
The command your looking for is:
sudo chown username:usergroup /dir/dir/file.xyz
You DON'T need to do this to edit a text file. a simple sudo gedit or sudo nano will do there. use chown with caution.
But anyway a complete walkthrough for what they were jsut talking about to run like this by default:
sudo cp /usr/bin/gimp /usr/bin/gimp_old
sudo rm /usr/bin/gimp
sudo gedit /usr/bin/gimp
Past this into the file:
#!/bin/bash
Xnest :1 -ac -name GIMP -geometry 1024x690 & metacity --display :1 & gimp_bin --display :1 Now you just need to make it executable with:
sudo chmod +x /usr/bin/gimpNow just run things as normal should work assuming they had it right I was just compiling it for everyone :)
obviously looking up is highly underated. Thank you!
Bah, sorry, nope, still openning like before, no window around it. I did exactly what you said.
BLTicklemonster
September 9th, 2006, 01:09 PM
Not only does that open like always, now the one I made before doesn't work, it just brings up an empty window with no gimp in it.
mynimal
September 9th, 2006, 03:41 PM
Here's the command for it to use your GTK theme, instead of that ugly default. Now I just need a way to change that background.
Xnest :1 -ac -name GIMP -geometry 1280x960 & metacity --display :1 & gnome-settings-daemon --display :1 & gimp --display :1
berserker
September 9th, 2006, 06:17 PM
sudo mv /usr/bin/gimp /usr/bin/gimp_bin
sudo gedit /usr/bin/gimp
Past this into the file:
#!/bin/bash
Xnest :1 -ac -name GIMP -geometry 1024x690 & metacity --display :1 & gimp_bin --display :1
Notice the changes (/usr/bin/gimp_old is now /usr/bin/gimp_bin and cp is now mv to save a step). Should work now.
berserker
September 9th, 2006, 06:18 PM
Here's the command for it to use your GTK theme, instead of that ugly default. Now I just need a way to change that background.
Xnest :1 -ac -name GIMP -geometry 1280x960 & metacity --display :1 & gnome-settings-daemon --display :1 & gimp --display :1
Any idea on how to do that for KDE?
BLTicklemonster
September 9th, 2006, 10:59 PM
Notice the changes (/usr/bin/gimp_old is now /usr/bin/gimp_bin and cp is now mv to save a step). Should work now.
Bah, still out of the box.
garybrlow
September 9th, 2006, 11:18 PM
How about XFCE/Xubuntu? Could it work too? :)
mynimal
September 10th, 2006, 01:14 AM
Any idea on how to do that for KDE?
Not off the top of my head, but check the startup applications. It's probably one of those that need to be running to draw Qt.
mjpatey
September 10th, 2006, 01:54 AM
Wow, amazing! But I can't seem to make a launcher for it. I optimized the window size to perfectly fit my desktop (very convenient), and your command worked perfectly.
But when I create a launcher using the exact same command, it does nothing. I even checked "Open in Terminal" thinking it would help, but to no avail.
Anybody know how to make a launcher work?
timas
September 13th, 2006, 01:12 PM
KDE user here, works like a charm!
After going through the above steps I did:
Right click the launcher you desire to edit, find the command it executes.. for me it said 'gimp-remote-2.2 %U' which I changed to 'gimp'
voila!
Emanuel Felipe
September 29th, 2006, 01:41 AM
Nice.. :D
note.. for Xfce users:
:~$ sudo apt-get install xnest gimp
:~$ Xnest :1 -ac -name GIMP -geometry 1024x690 & xfwm4 --display :1 & gimp --display :1
theres no need for metacity...
TooRight
December 22nd, 2006, 11:13 AM
Anyone have any idea how to male it work on Kubuntu with Beryl? This looks sooo handy, i'd love to get it going!! :D
BLTicklemonster
December 22nd, 2006, 11:45 AM
Unless something has changed, gimpshop and this as well just look to me to be basically just a window that covers your desktop and holds all the elements of gimp in it for you. Hardly any improvement if you ask me.
Here's what I do:
http://ubuntuforums.org/showpost.php?p=1631680&postcount=66
shane2peru
January 29th, 2008, 02:53 PM
Ok, this was a good idea, however everytime the main window looses focus everything becomes grey, and I have to run my mouse over every single thing to get it back, very annoying. See the screenshot to see what I mean. It is a bit of annoyance, any ideas would be appreciated. Thanks.
Shane
zami
July 2nd, 2008, 12:14 PM
Ok, this was a good idea, however everytime the main window looses focus everything becomes grey, and I have to run my mouse over every single thing to get it back, very annoying. See the screenshot to see what I mean. It is a bit of annoyance, any ideas would be appreciated. Thanks.
Shane
I'm having this exact same issue. If anyone know what causes this or how to fix it, please do share.
I was so pleased when I got Xnest going, too.
-zami
supaneko
August 26th, 2009, 11:52 AM
Sorry for thread digging but after a Google search this turned up and proved rather useful. :)
I am having one issue though... Segmentation fault. If I work too fast the program crashes. I also tried to command to use the Gnome theme but that caused the program to run in a continuous crashing loop which eventually forced me to hit the reset button because the CPU usage went haywire.
Any ideas on why this might be? Occasionally I have to restart the program because the mouse cursor does not seem to work.
supaneko
August 26th, 2009, 11:55 AM
c0llisi0n@neonekob0x:~$ gimp
[dix] Could not init font path element /usr/share/fonts/X11/cyrillic, removing from list!
(EE) config/hal: NewInputDeviceRequest failed (2)
(EE) config/hal: NewInputDeviceRequest failed (2)
(EE) config/hal: NewInputDeviceRequest failed (2)
Xlib: extension "RANDR" missing on display ":1.0".
Xlib: extension "RANDR" missing on display ":1.0".
(gimp_bin:13202): GLib-CRITICAL **: g_bookmark_file_load_from_data: assertion `length != 0' failed
Window manager warning: Buggy client sent a _NET_ACTIVE_WINDOW message with a timestamp of 0 for 0x4000b5 (Toolbox)
Window manager warning: meta_window_activate called by a pager with a 0 timestamp; the pager needs to be fixed.
Window manager warning: Buggy client sent a _NET_ACTIVE_WINDOW message with a timestamp of 0 for 0x400067 (GNU Image )
Window manager warning: meta_window_activate called by a pager with a 0 timestamp; the pager needs to be fixed.
Xlib: extension "RANDR" missing on display ":1.0".
lcms: skipping conversion because profiles seem to be equal:
sRGB IEC61966-2.1
sRGB built-in
(gimp_bin:13202): Gtk-WARNING **: Attempting to store changes into `/home/c0llisi0n/.recently-used.xbel', butfailed: Failed to rename file '/home/c0llisi0n/.recently-used.xbel.VIV8YU' to '/home/c0llisi0n/.recently-used.xbel': g_rename() failed: Operation not permitted
(gimp_bin:13202): Gtk-WARNING **: Attempting to set the permissions of `/home/c0llisi0n/.recently-used.xbel',but failed: Operation not permitted
Xlib: extension "RANDR" missing on display ":1.0".
(gimp_bin:13202): Gtk-WARNING **: Attempting to store changes into `/home/c0llisi0n/.recently-used.xbel', butfailed: Failed to rename file '/home/c0llisi0n/.recently-used.xbel.NV06YU' to '/home/c0llisi0n/.recently-used.xbel': g_rename() failed: Operation not permitted
(gimp_bin:13202): Gtk-WARNING **: Attempting to set the permissions of `/home/c0llisi0n/.recently-used.xbel',but failed: Operation not permitted
Window manager warning: Received a _NET_WM_MOVERESIZE message for 0x400067 (tech rackm); these messages lack timestamps and therefore suck.
X Error of failed request: BadDrawable (invalid Pixmap or Window parameter)
Major opcode of failed request: 70 (X_PolyFillRectangle)
Resource id in failed request: 0x0
Serial number of failed request: 167390
Current serial number in output stream: 167395
gimp_bin: Fatal IO error 11 (Resource temporarily unavailable) on X server :1.0.
Window manager warning: Fatal IO error 11 (Resource temporarily unavailable) on display ':1'.
(script-fu:13237): LibGimpBase-WARNING **: script-fu: gimp_wire_read(): error
That is the print-out from the terminal from when I run gimp to when it crashes (and it seems to crash early on almost every time).
sami89
May 23rd, 2010, 02:48 AM
First make sure you have all the needed stuff:
sudo apt-get install xnest metacity gimpNow run this command to test it:
Xnest :1 -ac -name GIMP -geometry 1024x690 & metacity --display :1 & gimp --display :1You may like to change the "1024x690" to something that better fits your screen.
If it works, you may edit your GIMP menu shortcuts to reflect that command.
Here's a screenshot:
How to undo this i wrote those command it works but i want everything back.
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.