Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gwenview fails to display other users' files
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
Gentree
Watchman
Watchman


Joined: 01 Jul 2003
Posts: 5350
Location: France, Old Europe

PostPosted: Thu Apr 09, 2009 6:49 am    Post subject: gwenview fails to display other users' files Reply with quote

Hi,

I find gwenview to be a good image viewer in general but it won't display other users' files even though it has read permissions on the files and directories.
Code:

bash-3.2#ls -ail
total 250929
1663671 drwxr-xr-x 13 root root       84 2009-04-04 11:21 .
     42 drwxr-xr-x 18 prof users      64 2009-04-04 11:08 ..
1663674 drwx------  2 root root        5 2008-09-28 21:35 .comments
1716533 -rw-r--r--  1 root root  3478798 2008-07-08 03:52 DSCF0526.JPG
1716534 -rw-r--r--  1 root root  3629884 2008-07-08 03:52 DSCF0527.JPG
1716535 -rw-r--r--  1 root root  3381068 2008-07-08 03:52 DSCF0528.JPG


navigating to this directory with gwenview running as user prof shows it to be empty!

Is there something I'm overlooking here?

TIA, Gentree. 8)
_________________
Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86
Back to top
View user's profile Send private message
bekkra
n00b
n00b


Joined: 13 Sep 2004
Posts: 57

PostPosted: Fri Apr 10, 2009 1:35 pm    Post subject: Reply with quote

The viewer itself behaves just like any other application that accesses files.

File and directory permissions set what you see.

You get a message when you try to navigate to a directory that you have insufficient privileges to ( like "/root" ) as a user.

The permissions in the example should be all right, but there's no information about the upstream permissions. Are you allowed to navigate to the directory at all with any other tool ? (Like bash :) )

//
_________________
Bugs don't "go away" ( Steve McGuire )
Back to top
View user's profile Send private message
Gentree
Watchman
Watchman


Joined: 01 Jul 2003
Posts: 5350
Location: France, Old Europe

PostPosted: Sat Apr 11, 2009 1:19 pm    Post subject: Reply with quote

well bash was what I posted. Just to confirm this is with user prof:

Code:
$ whoami
prof
$ ls -ail /svn/img/
total 250929
1663671 drwxr-xr-x 13 root root       84 2009-04-04 11:21 .
     42 drwxr-xr-x 18 prof users      64 2009-04-04 11:08 ..
1716533 -rw-r--r--  1 root root  3478798 2008-07-08 03:52 DSCF0526.JPG
1716534 -rw-r--r--  1 root root  3629884 2008-07-08 03:52 DSCF0527.JPG
1716535 -rw-r--r--  1 root root  3381068 2008-07-08 03:52 DSCF0528.JPG


So apparently gwen is doing something other than just reading file permissions.

thanks for your reply.
8)
_________________
Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86
Back to top
View user's profile Send private message
paulbiz
Guru
Guru


Joined: 01 Feb 2004
Posts: 508
Location: St. Louis, Missouri, USA

PostPosted: Tue Apr 14, 2009 12:49 am    Post subject: Reply with quote

You can see the listing, but can you actually read the files?
Back to top
View user's profile Send private message
Gentree
Watchman
Watchman


Joined: 01 Jul 2003
Posts: 5350
Location: France, Old Europe

PostPosted: Tue Apr 14, 2009 10:38 am    Post subject: Reply with quote

No, as I posted it shows the directory as being empty . Subdirs are shown when they exist an I can navigate them but none of the content of the directories is shown.
:?
_________________
Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86
Back to top
View user's profile Send private message
Nerevar
l33t
l33t


Joined: 31 May 2008
Posts: 720

PostPosted: Tue Apr 14, 2009 12:10 pm    Post subject: Reply with quote

I think what paulbiz meant was can you read those files with a CLI utility as user prof? Like 'file /svn/img/*.JPG'?
If so, it's probably time to post 'emerge --info' and 'emerge -pv gwenview'.
Back to top
View user's profile Send private message
bekkra
n00b
n00b


Joined: 13 Sep 2004
Posts: 57

PostPosted: Tue Apr 14, 2009 12:21 pm    Post subject: Reply with quote

In fact, I've tried just this example and I found nothing strange.
With the permissions in the example, my installation behaved as it should.

Bring us the version information as Nerevar requested !
_________________
Bugs don't "go away" ( Steve McGuire )
Back to top
View user's profile Send private message
Gentree
Watchman
Watchman


Joined: 01 Jul 2003
Posts: 5350
Location: France, Old Europe

PostPosted: Wed Apr 15, 2009 10:30 am    Post subject: Reply with quote

Code:
gwenview: WARNING: Pixmap not found for mimetype image/jpeg


I've just found this on console. There is one directory where a jpeg file was renamed without a file extension, this one shows correctly. So clearly it is not permissions and it can decode a jpeg as long as it's not called a jpeg :roll:

Smells like some yukky mimetype crap going on. Why the hell can't linux read file headers like it used to instead of trying to emulate some other broken OS?

I'll have to chase down this message.

thx
_________________
Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum