Automatic File Saving Directory Setting does not persist and defaults to home folder

Bug #1100626 reported by Filip
48
This bug affects 10 people
Affects Status Importance Assigned to Milestone
Kazam Screencaster
Fix Released
Low
Unassigned

Bug Description

Steps to reproduce:

1) Open preferences
2) Set on "Automatic file saving"
3) Select a folder which is different from the default home folder
4) Close the dialog.
5) Close the application
6) Open the application again and go to screencast preferences

Problem: The Directory is reverted back to the home folder
Expectation: The settings should have saved

Note: The settings take effect in the same application instance. It seems as if the settings are not being saved to file.
This happens on the unstable branch

Related branches

Revision history for this message
David Klasinc (bigwhale) wrote :

For now, this is intended behavior. There are two kinds of people in this world, the ones that like their directory settings retained over different sessions and the ones that don't. ;)

Myself, I am sometimes in one group, sometimes in the other.

Kazam defaults to ~/Videos and ~/Pictures folders for automatic saving. If those folders are not available then ~/Documents is used and the last fallback is ~/. Pathnames are taken from XDG, so if you are using localized version of Ubuntu, Kazam will use localized named for those directories.

Changed in kazam:
importance: Undecided → Low
status: New → Won't Fix
Revision history for this message
David Klasinc (bigwhale) wrote :

I'll set this to "Won't Fix" for now. If demanded by a popular vote, this can be changed of course. :)

Revision history for this message
Filip (wattos-o) wrote :

Apologies for the late response.

I find the current behaviour to be very confusing, as there is no indication that it would be a session preference. The setting is in the general preference dialog and the current behaviour "feels" broken.

Furthermore, the kazam configuration file also has a configuratin key "autosave_video_dir" which kazam is ignoring.

(As a side note, I like to organize my files differently and do not even have a Video folder on my system)

Would you accept a patch?

Revision history for this message
David Klasinc (bigwhale) wrote :

I should apologize. :) This indeed is a bug, someone pointed it out two days ago and it is already being worked on.

The intended behavior that I described is of course only valid if you don't have automatic file saving turned on. When you turn on the automatic file saving, then the directory you select should be saved in a config file.

Changed in kazam:
status: Won't Fix → In Progress
milestone: none → 1.4.2
David Klasinc (bigwhale)
Changed in kazam:
status: In Progress → Fix Committed
David Klasinc (bigwhale)
Changed in kazam:
status: Fix Committed → Fix Released
Revision history for this message
Nathan (nbutcher78) wrote :

This was supposedly fixed a year ago, however I am running Kazam on Lubuntu 14.04, and I'm experiencing this issue.
I can try and set the automatic recording to another directory, but after closing the preferences pane and reopening, it's reset itself to the default "Videos" directory.

I can't get it to record to any other directory, and the screencast I'm trying to record is bigger than my local disk... so essentially I cannot screencast it because I can't give Kazam a directory with enough space to record. My disk just fills to 100% and the video doesn't get compressed.

Revision history for this message
jpfle (jpfle) wrote :

I have this bug with Kazam 1.4.5-1 on Xubuntu 14.10 Beta 2. "Automatic file saving" is on, but the directory always reverts to "$HOME".

Workaround: close Kazam, open the file "$HOME/.config/kazam/kazam.conf", change the value of the property "autosave_video_dir" in the section "[main]". Open Kazam, but don't open the preferences dialog. The custom directory will be used. However, as soon as the preferences dialog is open, the custom directory will be overwrited.

Revision history for this message
Emmanuel (emmanuel-ues21) wrote :

Since a fix was released, I think that the ubuntu's repository should be updated with the fixed version, shouldn't it?

Revision history for this message
Cookie-Dough (cr4zyone) wrote :

This bug is still existing in Kazam 1.4.5-2 on Ubuntu Mate 16.10. Workaround from 2014 still works.

Revision history for this message
dj_segfault (djsegfault) wrote :

2017-01-27 and this bug STILL exists, two years later.

Revision history for this message
dj_segfault (djsegfault) wrote :

Sorry, this is in 1.4.5 under Kubuntu

Revision history for this message
Eduardo Sanchez (eduardo-5) wrote :

I am experiencing this same bug on Ubuntu 18.04.1 and Kazam 1.4.5.

Preferences --> Automatic File Saving (ON) --> Newly-specified save directory reverts to ~/Videos upon restarting application

Revision history for this message
Alfred (alf-redyoung) wrote :

For those still experience the problem, and find this bug(I'm in Ubuntu 18.04):

1. You cannot use bookmarked folder in folder choose dialog, some explanation can be found here: https://askubuntu.com/questions/159413

2. use below patch, to let video path can be correctly read when preference dialog:
--- /usr/lib/python3/dist-packages/kazam/frontend/preferences.py 2014-08-19 00:48:36.000000000 +0800
+++ preferences.py 2019-06-03 16:20:08.231795751 +0800
@@ -73,7 +73,7 @@
         self.combobox_audio2.pack_start(audio_renderer, True)
         self.combobox_audio2.add_attribute(audio_renderer, "text", 0)

- self.filechooser_video.set_current_folder(prefs.video_dest)
+ #self.filechooser_video.set_current_folder(prefs.video_dest)

         self.populate_codecs()
         if prefs.sound:

3. use below patch, to let screenshot file name can be correctly saved:
--- /usr/share/kazam/ui/preferences.ui 2014-08-19 00:48:36.000000000 +0800
+++ preferences.ui 2019-06-03 16:23:08.328935786 +0800
@@ -698,6 +698,7 @@
                     <property name="invisible_char">•</property>
                     <property name="invisible_char_set">True</property>
                     <property name="caps_lock_warning">False</property>
+ <signal name="changed" handler="cb_entry_autosave_picture" swapped="no"/>
                     <signal name="activate" handler="cb_entry_autosave_picture" swapped="no"/>
                   </object>
                   <packing>

Revision history for this message
Alfred (alf-redyoung) wrote :

patch for reference.

Revision history for this message
Ing. Roger Salinas Robalino (megatron87) wrote :

It didn't work. Problem persists

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.