[PATCH] make ksnapshot increment the last number

Hoàng Đức Hiếu hieu.d.hoang at gmail.com
Tue Oct 2 03:07:56 BST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

  Hi,

 I have been using ksnapshot to record my whiteboarding sessions, and
named the files like "whiteboard-2007-10-02-01.png". Both Ksnapshots
from KDE3 and KDE4 offer the next filename as
"whiteboard-2008-10-02-01.png". IMHO it should increment the last
number in the filename, because the ordering numbers are most likely
placed last.

 On a second note, I want the default numbering to start with "01", so
that sorting tools which don't sort numerically (e.g. ls) show the
first 19 snapshots in increasing order.

 I have attached a patch to use these two behaviour. A previously
created ksnapshotrc file may still specify old default filename
"snapshot1.png".

  Hiếu
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFHAafbh4dScvxKz04RAqmLAKCVkLddMR+PsaK+oURi/MHRrENJQQCg1GTu
ZoKvuN3I7w6O5AZsL466SjI=
=UIai
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ksnapshot-increment-last-number.patch
Type: text/x-patch
Size: 1981 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20071002/f22bde1a/attachment.bin>


More information about the kde-core-devel mailing list