Re: stupid question - part two



This seems similar to http://bugzilla.gnome.org/show_bug.cgi?id=158060

As it stands, f-spot will only save over your picture if it can do so
losslessly. I think this means rotation. There is talk of doing that
through the EXIF orientation property (which will still involve write
permission). If you ask for a destructive transformation then f-spot
will create a new version of your file (I think!). This will necessitate
write permission to the directory.

It's fair to say there is still some work to do in dealing with
read-only files and read-only media.

cheers

Loz



On Wed, 2004-12-15 at 16:42 +0100, Thomas Breitner wrote:
> Hi, 
> 
> perhaps you guys were surprised about my *stupd question*, now I
> remember why I've asked you :-)
> Here's what happened:
> 
> > theo mala:~$ f-spot
> [...]
> > Found Year 2003
> > Found Year 2004
> > 
> > Unhandled Exception: System.UnauthorizedAccessException: Access to the
> path "/home/theo/html-pics/dcp_0394.jpg" is denied.
> > in <0x0047d> System.IO.FileStream:.ctor
> (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int,bool)
> > in <0x00051> System.IO.FileStream:.ctor (string,System.IO.FileMode)
> > in <0x00065> (wrapper remoting-invoke-with-check)
> System.IO.FileStream:.ctor (string,System.IO.FileMode)
> > in <0x00068> FSpot.AsyncPixbufLoader:Load (string)
> > in <0x000e6> PhotoView:UpdateImageView ()
> > in <0x00025> PhotoView:Update ()
> > in <0x000c3> PhotoView:set_Query (PhotoQuery)
> > in <0x0001f> PhotoView:.ctor (PhotoQuery,PhotoStore)
> > in <0x009a2> MainWindow:.ctor (Db)
> > in <0x00186> Driver:Main (string[])
> 
> Dont't know why f-spot thinks it couldn't access this path, as the
> permissions are like this:
> 
> > theo mala:~$ ll | grep 'html'
> > drwxr-xr-x   2 theo theo 1,1K 2004-11-12 13:42 html-pics
> 
> > theo mala:~$ ll html-pics/
> > insgesamt 59M
> > -rw-r--r--  1 theo theo  14M 2004-11-12 13:25 bg_10.xcf
> > -rw-r--r--  1 theo theo 360K 2004-11-12 13:29 bg_11.png
> > -rw-r--r--  1 theo theo  11M 2004-11-12 13:27 bg_11.xcf
> > -rw-r--r--  1 theo theo 649K 2004-11-12 13:34 bg_12.gif
> > -rw-r--r--  1 theo theo  52K 2004-11-12 13:56 bg_12.jpg
> > -rw-r--r--  1 theo theo 1,1M 2004-11-12 13:37 bg_12.png
> > -rw-r--r--  1 theo theo 7,2M 2004-11-12 12:49 bg_1.xcf
> > -rw-r--r--  1 theo theo 474K 2004-11-12 13:08 bg_2.png
> > -rw-r--r--  1 theo theo 7,1M 2004-11-12 13:03 bg_2.xcf
> > -rw-r--r--  1 theo theo 183K 2004-11-12 13:10 bg_3.png
> > -r-xr-xr-x  1 theo theo 544K 2003-08-09 00:14 dcp_0124.jpg
> > -r-xr-xr-x  1 theo theo 1,1M 2003-08-09 00:14 dcp_0285.jpg
> > -r-xr-xr-x  1 theo theo 1,1M 2003-08-09 00:15 dcp_0342.jpg
> > -r-xr-xr-x  1 theo theo 695K 2003-08-09 00:12 dcp_0394.jpg
> > -r-xr-xr-x  1 theo theo 541K 2003-08-09 00:15 dcp_0398.jpg
> > -r-xr-xr-x  1 theo theo 699K 2003-08-09 00:12 dcp_0513.jpg
> > -r-xr-xr-x  1 theo theo 1,1M 2003-08-09 00:12 dcp_0612.jpg
> > -r-xr-xr-x  1 theo theo 731K 2003-08-09 00:12 dcp_0628.jpg
> > -r-xr-xr-x  1 theo theo 770K 2003-08-09 00:13 dcp_0656.jpg
> > -r-xr-xr-x  1 theo theo 698K 2003-08-09 00:16 dcp_0775.jpg
> > -r-xr-xr-x  1 theo theo 865K 2003-08-09 00:18 dcp_0862.jpg
> > -r-xr-xr-x  1 theo theo 676K 2003-08-09 00:20 dcp_3607.jpg
> > -r-xr-xr-x  1 theo theo 1,2M 2003-08-09 00:20 dcp_3642.jpg
> > -r-xr-xr-x  1 theo theo 917K 2004-02-13 21:01 dcp_4285.jpg
> > -r-xr-xr-x  1 theo theo 1,1M 2004-02-13 21:02 dcp_4286.jpg
> > -rw-r--r--  1 theo theo  65K 2004-10-19 22:29 Deco1.jpg
> > -rw-r--r--  1 theo theo  70K 2004-10-19 22:30 Deco2.jpg
> > -rw-r--r--  1 theo theo  59K 2004-10-19 22:31 Deco3.jpg
> > -rw-r--r--  1 theo theo  26K 2004-10-22 15:06 fanta.jpg
> > -r-xr-xr-x  1 theo theo 1,1M 2004-05-18 12:51 p4180393.jpg
> > -r-xr-xr-x  1 theo theo 989K 2004-05-18 12:51 p4260398.jpg
> > -r-xr-xr-x  1 theo theo 2,5M 2004-11-12 13:17 p8271050.jpg
> 
> Ok, very strange, I've changed the permissions like this:
> > theo mala:~$ chmod -R +rwx html-pics/
> 
> So, all pictures were readable for all users, but not writeable for
> all. 
> So my question was, is f-spot trying to write something to these
> picture?
> 
> Greetings from Freiburg(germany),
> thomas
-- 
Laurence Hygate <loz flower powernet co uk>




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]