diff --git a/js/dbusServices/screencast/screencastService.js b/js/dbusServices/screencast/screencastService.js index a2bb23cfe..eb3dc88e6 100644 --- a/js/dbusServices/screencast/screencastService.js +++ b/js/dbusServices/screencast/screencastService.js @@ -315,7 +315,10 @@ var ScreencastService = class extends ServiceImplementation { if (GLib.path_is_absolute(filename)) return filename; - let videoDir = GLib.get_user_special_dir(GLib.UserDirectory.DIRECTORY_VIDEOS); + const videoDir = + GLib.get_user_special_dir(GLib.UserDirectory.DIRECTORY_VIDEOS) || + GLib.get_home_dir(); + return GLib.build_filenamev([videoDir, filename]); }