FS#38170 - [cheese] Permission issues after update
Attached to Project:
Arch Linux
Opened by Martin Roth (Captain_Rage) - Tuesday, 17 December 2013, 00:30 GMT
Last edited by Doug Newgard (Scimmia) - Sunday, 05 July 2015, 15:31 GMT
Opened by Martin Roth (Captain_Rage) - Tuesday, 17 December 2013, 00:30 GMT
Last edited by Doug Newgard (Scimmia) - Sunday, 05 July 2015, 15:31 GMT
|
Details
Cheese was working fine, then it stopped working after the
gstreamer / gst-plugins-* packages were upgraded (it would
seem). It starts as intended, and the webcam captures a
picture and shows it on the screen, but when trying to
record a video or take a photo it says "There was an error
playing a video from the webcam." and the picture
disappears. When running from a terminal this appears:
"[martin@Wisp ~]$ cheese (cheese:811): GLib-GObject-WARNING **: value "5.000000" of type 'gdouble' is invalid or out of range for property 'delaytime' of type 'gdouble' (cheese:811): cheese-WARNING **: Error while writing to file "/2013-12-17-012604.jpg".: gstmultifilesink.c(653): gst_multi_file_sink_render (): /GstCameraBin:camerabin/GstMultiFileSink:imagebin-filesink: Permission denied" The webcam is working fine in Skype / VLC, both for running and for writing files (in VLC it is no problem to write a file). Adding the users to the 'video' group made no difference. |
This task depends upon
The gstreamer 0.10 should have no impact on cheese, as that uses 1.0+.
For 'photo-path' it says:
'Description: Defines the path where the videos are stored. If empty, "XDG_PHOTO/Webcam" will be used.'
'Type: String'
'Default: "'
For 'video-path' it says:
'Description: Defines the path where the videos are stored. If empty, "XDG_VIDEO/Webcam" will be used.'
'Type: String'
'Default: "'
When the 'Set to Default' button is pressed, both are blanked out again. This is obviously wrong. I don't know what is causing these strange default values.
By setting the directories manually I got it working, so thanks again!
Variables [XDG|G_USER_DIRECTORY]_[PHOTO|PICTURES] are empty for me. Is it because I am not using the gnome Desktop? I'm using openbox and xfce, and have this problem with cheese in both environments. Setting these variables by hand ("export XDG...") did not change anything: cheese still tries to save pictures and videos in the root directory.
Setting the values of 'photo-path' and 'video-path' to a directory 'cheese' in my $HOME as Martin Roth said (thanks for that) did not completely solve the problem either: photos and videos are stored in the expected directory, but cheese hangs on after I take a picture (even the window cannot be moved). I also get new error messages:
(cheese:10216): GnomeDesktop-WARNING **: Unable to create loader for mime type video/webm: Unrecognized image file format
(cheese:10216): GnomeDesktop-WARNING **: Error creating thumbnail for file:///users/tux/cheese/2013-12-27-142343.webm: Unrecognized image file format
** (cheese:10216): WARNING **: could not generate thumbnail for /users/tux/cheese/2013-12-27-142343.webm (video/webm)
I'm using openbox - but can't avoid using gnome based apps.
Looks like gnome developers never thinks their apps would be used outside their (bloated) desktop environment.
I would welcome a patch which defaults to the home directory if it can't find a sane path to store user data.
Preferably, it would prefer user variables before trying to use dconf based variables.