GST: Save photo to XDG dirs (Fix hardcode)
Signed-off-by: Vasiliy Doylov <nekocwd@mainlining.org>
This commit is contained in:
parent
7c0aa0ed45
commit
d217c35533
1 changed files with 2 additions and 2 deletions
|
@ -87,9 +87,9 @@ public class EyeNeko.Gstreamer : Object {
|
|||
}
|
||||
|
||||
public void start_capture () {
|
||||
var home_dir = Environment.get_home_dir ();
|
||||
var file_dir = Path.build_filename (home_dir, camerabin_mode == CameraBinMode.VIDEO ? "Videos" : "Pictures", "EyeNeko");
|
||||
var file_dir = Environment.get_user_special_dir (camerabin_mode == CameraBinMode.VIDEO ? UserDirectory.VIDEOS : UserDirectory.PICTURES);
|
||||
var dir = File.new_for_path (file_dir);
|
||||
|
||||
if (!dir.query_exists ()) {
|
||||
dir.make_directory ();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue