No default folder in the render dialog while developing
@aleb
Submitted by Alex Băluț Assigned to Thibault Saunier @thiblahute
Description
Steps to reproduce:
- Create a project with a clip
- Press Render, notice the "Folder:" combo at the top shows "(None)". It should show the last used folder, or at least a valid folder.
In the console, when attempting to actually render:
ERROR 17:36:21 pipeline pitivi+utils+pipeline+pipeline0 _handleErrorMessage: error from <__gi__.GstFileSink object at 0x7f43b00b3ea0 (GstFileSink at 0x423ede0)>: gst-resource-error-quark: Could not open file "/home/aleb/dev/pitivi/pitivi/<MagicMock name='__new__().get_object().get_current_folder()' id='140256995967104'>/New Project.ogv" for writing. (6) (gstfilesink.c(438): gst_file_sink_open_file (): /pitivi+utils+pipeline+Pipeline:pitivi+utils+pipeline+pipeline0/GstFileSink:urisink:
system error: No such file or directory) (pitivi/utils/pipeline.py:475)
(pitivi:3): Gtk-WARNING **: Failed to set text 'An error occurred while trying to render your project. You might want to check our troubleshooting guide or file a bug report. The GStreamer error was:
<i>gst-resource-error-quark: Could not open file "/home/aleb/dev/pitivi/pitivi/<MagicMock name='__new__().get_object().get_current_folder()' id='140256995967104'>/New Project.ogv" for writing. (6)</i>' from markup due to error parsing markup: Error on line 3 char 201: Element 'i' was closed, but the currently open element is 'MagicMock'
(pitivi:3): Gtk-WARNING **: Failed to set text 'An error occurred while trying to render your project. You might want to check our troubleshooting guide or file a bug report. The GStreamer error was:
<i>gst-resource-error-quark: Could not open file "/home/aleb/dev/pitivi/pitivi/<MagicMock name='__new__().get_object().get_current_folder()' id='140256995967104'>/New Project.ogv" for writing. (6)</i>' from markup due to error parsing markup: Error on line 3 char 201: Element 'i' was closed, but the currently open element is 'MagicMock'
This seems to happen only during development:
$ make check
[...]
$ ag last-export-folder ~/.config/pitivi/pitivi.conf
38:last-export-folder = <MagicMock name='__new__().get_object().get_current_folder()' id='140372158357632'>
We need to setup the tests such that they never touch ~/.config/pitivi/pitivi.conf
.