Bug 164729

Summary: KSnapshot doesn't remember settings
Product: [Unmaintained] ksnapshot Reporter: Malte S. Stretz <mss>
Component: generalAssignee: Richard Moore <rich>
Status: RESOLVED FIXED    
Severity: normal CC: daniel_ramawidjaja, dustin.steiner, michal.vyskocil, nesnera, richih-kde
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Malte S. Stretz 2008-06-23 11:15:06 UTC
Version:           0.8.1 (using 4.00.83 (KDE 4.0.83 (KDE 4.1 Beta2), compiled sources)
Compiler:          gcc
OS:                Linux (i686) release 2.6.24-19-generic

In the KDE3 version, KSnapshot remembered previous settings like the Capture Mode and where I saved the last screenshot (I've got a separate folder for screenshots).  The KDE4 version seem to lack this feature.

Oh, and the Print Screen shortcut doesn't work anymore but I guess that bug is somewhere else.
Comment 1 Dave 2008-06-27 13:18:32 UTC
Same here (0.8.1) under openSUSE 11, (KDE 4.0.83 (KDE 4.1 Beta2) "release 4.3").

No longer remembers the last used folder.



The shortcut key problem (NOT a ksnapshot fault) can be solved by setting PRTSCR from the KDE Control Center -> Advanced -> Input Actions.

Comment 2 Imr 2008-07-15 13:22:39 UTC
Valid in Mandriva 2009.0 KDE 4.1 RC1 (O.98).
Image name are not incrementing anymore too. Shall I fill another bug report or are those regressions already known?
Comment 3 Christophe Marin 2008-08-04 19:21:20 UTC
*** Bug 168210 has been marked as a duplicate of this bug. ***
Comment 4 Christophe Marin 2008-08-07 21:43:46 UTC
*** Bug 167635 has been marked as a duplicate of this bug. ***
Comment 5 Christophe Marin 2008-08-07 21:44:08 UTC
*** Bug 168653 has been marked as a duplicate of this bug. ***
Comment 6 Richard Hartmann 2008-08-07 23:53:54 UTC
Again, sorry for that. It seems you were on the receiving end of both b.k.o troubles and me apparently missing the bug report above (or it did not show up, as the keywords were different).

On the plus side, I can confirm this for KDE 4.1 final.
Comment 7 Richard Moore 2008-08-12 11:47:58 UTC
SVN commit 845665 by rich:

- Fix saving of settings. There appears to have been a change in
  behaviour in kdelibs that means simply writing the settings during the
 closeEvent no longer causes things to hit the disk. Adding an explicit
 sync solves the issue.

CCMAIL: 164729-done@bugs.kde.org



 M  +2 -0      ksnapshot.cpp  


--- trunk/KDE/kdegraphics/ksnapshot/ksnapshot.cpp #845664:845665
@@ -410,6 +410,8 @@
     KUrl url = filename;
     url.setPass( QString::null );	//krazy:exclude=nullstrassign for old broken gcc
     conf.writePathEntry("filename",url.url());
+
+    conf.sync();
     e->accept();
 }
 
Comment 8 Ladislav Nesnera 2008-08-23 12:30:45 UTC
I can't confirm that this bug was resolved in my
Qt: 4.4.0
KDE: 4.1.1 (KDE 4.1.0 (4.1 >= 20080722)) "release 40.1"
KSnapshot: 0.8.1
openSUSE 11 64-bit
Comment 9 Richard Hartmann 2008-08-23 12:36:33 UTC
Your version was built two weeks before the fix was made. Thanks for going through the trouble of reporting, though. More is better :)
Comment 10 Ladislav Nesnera 2008-08-23 16:56:27 UTC
Two weeks? Interesting. I'm using the http://download.opensuse.org/repositories/KDE:/KDE4:/Factory:/Desktop/openSUSE_11.0/ repository and I believed that it's up-to-date repository. Thanks for correction.
Comment 11 Richard Moore 2008-08-25 13:55:05 UTC
I've backported the fix to the 4.1 branch, so it should be solved in next weeks release as well as 4.2.
Comment 12 Daniel Ramawidjaja 2008-11-19 23:37:38 UTC
how to fix it?
My Fedora 9 has the most updated packages for KDE. 
Can I run kind of commands, packages, or something to fix?