LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-22-2012, 01:40 AM   #1
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,071

Rep: Reputation: 59
Gimp 2.2: unable to open a test swap file.


Hi:

When I start gimp a notification says:
Quote:
Unable to open a test swap file. To avoid data loss please check the location and permissions of the swap directory defined in your Preferences (currently "/tmp/.gimp-2.2").
ls gives
Code:
semoi@darkstar:~$ ls -ld /tmp
drwxrwxrwt 12 root root 8192 2012-08-22 02:09 /tmp/
The only problem that there could be is, perhaps, the sticky bit, whose meaning I never fully realized. But no cli program or GUI program has ever had an issue with the /tmp directory. If, in File>Preferences>Folders I change the swap path to ~/.gimp-2.2/swap and create that directory then gimp does not complain at start up. Can somebody explain?
 
Old 08-22-2012, 04:01 AM   #2
wildwizard
Member
 
Registered: Apr 2009
Location: Oz
Distribution: slackware64-14.0
Posts: 868

Rep: Reputation: 265Reputation: 265Reputation: 265
1. You need to go into your tmp (as root) and remove the old directory, there will be one and it wont be owned by your user account.
2. The sticky bit on the tmp directory means that whoever creates a file or directory can delete it but no one else can touch it (hence it's usage on tmp and your current problem)
3. The usage of /tmp/program-version is a bad idea for what gimp is trying to do so your better off changing it to your home directory.
 
Old 08-22-2012, 05:24 AM   #3
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,465

Rep: Reputation: 2606Reputation: 2606Reputation: 2606Reputation: 2606Reputation: 2606Reputation: 2606Reputation: 2606Reputation: 2606Reputation: 2606Reputation: 2606Reputation: 2606
the gimp "swap" & tmp should be in your $HOME folder

gimp2.2 ??
am i right in guessing that this is RHEL 5.8 ( or one of any of the 5 rebuilds)

if you run gimp as a normal user FOR THE VERY FIRST TIME
it will auto set up the ~/.Gimp-2.2 folder

you might want to rename that folder in your normal user home folder

then restart gimp . to recreate it .
 
Old 08-22-2012, 12:48 PM   #4
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,071

Original Poster
Rep: Reputation: 59
Gimp needs two directories, a temporary directory and a swap directory, as I see. Up to now those dirs were ~/.gimp-2.2/tmp and /tmp/.gimp-2.2. I mkdired ~/.gimp-2.2/swap and told gimp to use this dir as swap dir.

@John VV: No, this is slackware 12.0. When I ran gimp for the first time I was a regular user, not root, and however it setup the swap dir to /tmp/.gimp-2.2.

@wildwizard:
Quote:
1. You need to go into your tmp (as root) and remove the old directory, there will be one and it wont be owned by your user account.
If I remove /tmp and recreate it as root, it will be owned by root.
Quote:
2. The sticky bit on the tmp directory means that whoever creates a file or directory can delete it but no one else can touch it (hence it's usage on tmp and your current problem)
Thanks for this explanation. But then, why couldn't gimp create its swap dir in /tmp/, when it has write permissions for everybody? And why is it a bad idea to use /tmp for the swap dir?
 
Old 08-22-2012, 02:45 PM   #5
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,465

Rep: Reputation: 2606Reputation: 2606Reputation: 2606Reputation: 2606Reputation: 2606Reputation: 2606Reputation: 2606Reputation: 2606Reputation: 2606Reputation: 2606Reputation: 2606
the reason i thought that it was a old version of RHEL5 ( or a os like it)
is that Gimp2.2 is old , VERY OLD .
and 2.2 is in the old rhel5 repo

the current version is gimp-2.8

so Slackware
how did you install the old 2.2 version ?
if from source , then it will not build in gcc 4.7 ( the old libpng issue with png12 )
gcc 3.4 ( or 4.1 - with some hacking) is going to be needed

or
is this a old slack prebuilt binary on the current Slack?


PS.
most ( almost ALL) new plugins for ginp 2.4 ,2.6 , and 2.8 will not run on 2.2 .

A thought ?
is /tmp it's OWN partition????
if so that might be a issue with the read / write
if so , then
edit HOW the partition is mounted

even on Slack there IS going to be a hidden "." dot folder in your user home folder
gimptool INSTALLS plugins there when you run "make install" AS A NORMAL user
( one of the exceptions for "make" as root)
gimptool can install to just you
or
system wide
 
Old 08-22-2012, 02:57 PM   #6
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,367

Rep: Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841
Quote:
Originally Posted by stf92 View Post
If I remove /tmp and recreate it as root, it will be owned by root.
I think wildwizard meant for you to remove the /tmp/.gimp-2.2 directory if it exists, in case it was owned by another user -- do not remove /tmp itself.
 
Old 08-22-2012, 03:42 PM   #7
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,071

Original Poster
Rep: Reputation: 59
Quote:
Originally Posted by T3slider View Post
I think wildwizard meant for you to remove the /tmp/.gimp-2.2 directory if it exists, in case it was owned by another user -- do not remove /tmp itself.
Ahhh... /tmp/.gimp-2.2 never existed, because gimp cannot create it, for some unknown reason. The /tmp directory has these permissions:

Code:
drwxrwxrwt 12 root root 8192 2012-08-22 02:09 /tmp/
Anyways, after having set ~/.gimp-2.2/swap as the gimp swap directory, I have had no more problems. One thing, however, although a little off topic, is that, in spite of having 256MB of RAM, a mere 1.2MB .jpeg file takes over 15 secs in being displayed. Instead Nero, under windows xp, displays it almost instantly.
 
Old 08-22-2012, 04:03 PM   #8
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,465

Rep: Reputation: 2606Reputation: 2606Reputation: 2606Reputation: 2606Reputation: 2606Reputation: 2606Reputation: 2606Reputation: 2606Reputation: 2606Reputation: 2606Reputation: 2606
gimp2.2 is OLD ,very old
gtk is also a KNOWN roadblock in loading images
it is SINGLE threaded
the old gimp 2.2 also can only use ONE cpu ( single threaded)
gimp2.6 and 2.8 can use ALL of your CPU's

so gimp2.2 IS going to be DEAD slow ,it always was very slow
this issue has been fixed in newer versions
 
1 members found this post helpful.
Old 08-22-2012, 04:17 PM   #9
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,071

Original Poster
Rep: Reputation: 59
Thanks for the explanation, John VV .
 
Old 05-18-2014, 04:00 AM   #10
thethakuri
LQ Newbie
 
Registered: Jan 2003
Posts: 7

Rep: Reputation: 0
I am using Gimp ver. 2.8. After recently updating my Ubuntu to 14.04, I started getting the permission denied message whenever I tried to edit pictures using GIMP. The problem was .gimp-2.8 folder located inside home folder was owned by root. So, I changed the owner and group of the folder to respective user and it worked.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: The best file encryption software in open source group test LXer Syndicated Linux News 0 08-08-2011 02:00 PM
LFS 7.11 udevadm test Unable to open device /sys/block/hd dadrunamok Linux From Scratch 2 01-17-2010 08:31 PM
Gimp 2.2.2 file open/save dialogues mbeattie74 Linux - Software 10 01-18-2005 08:00 PM
Kpilot 4.4.0 File Installer -Unable to Open File- Clie SJ-22 sephiro499 Linux - Software 0 10-04-2004 01:25 PM
Howdo I open a file in Gimp 2 from the command line? shea1roh Linux - Software 4 07-12-2004 09:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration