X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fpreferences.C;h=257a12ab1ef2896a41e2843b44c7652c619c5bf9;hb=0d37fdc03a4c5eeffef41d15490ebc528079ea52;hp=ee7c5d180f5a0890ebcf4b295eac09bba9e60a0c;hpb=b5c58822be78c8820692c916e296a2230bb2b9e2;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/cinelerra/preferences.C b/cinelerra-5.1/cinelerra/preferences.C index ee7c5d18..257a12ab 100644 --- a/cinelerra-5.1/cinelerra/preferences.C +++ b/cinelerra-5.1/cinelerra/preferences.C @@ -69,6 +69,7 @@ Preferences::Preferences() trap_sigintr = 1; theme[0] = 0; plugin_icons[0] = 0; + strcpy(snapshot_path, "/tmp"); use_renderfarm = 0; force_uniprocessor = 0; renderfarm_port = DEAMON_PORT; @@ -177,6 +178,7 @@ void Preferences::copy_from(Preferences *that) keyframe_reticle = that->keyframe_reticle; strcpy(theme, that->theme); strcpy(plugin_icons, that->plugin_icons); + strcpy(snapshot_path, that->snapshot_path); use_tipwindow = that->use_tipwindow; scan_commercials = that->scan_commercials; @@ -324,6 +326,8 @@ int Preferences::load_defaults(BC_Hash *defaults) strcpy(plugin_icons, DEFAULT_PICON); defaults->get("THEME", theme); defaults->get("PLUGIN_ICONS", plugin_icons); + strcpy(snapshot_path, "/tmp"); + defaults->get("SNAPSHOT_PATH", snapshot_path); for(int i = 0; i < MAXCHANNELS; i++) { @@ -472,7 +476,7 @@ int Preferences::save_defaults(BC_Hash *defaults) defaults->update("TRAP_SIGINTR", trap_sigintr); defaults->update("THEME", theme); defaults->update("PLUGIN_ICONS", plugin_icons); - + defaults->update("SNAPSHOT_PATH", snapshot_path); for(int i = 0; i < MAXCHANNELS; i++) {