diff -Nru psnotes-0.7.3/configure psnotes-0.7.4/configure --- psnotes-0.7.3/configure 2013-03-30 01:06:41.000000000 +0000 +++ psnotes-0.7.4/configure 2013-03-30 13:03:16.000000000 +0000 @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.68 for psnotes 0.7.3. +# Generated by GNU Autoconf 2.68 for psnotes 0.7.4. # # # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, @@ -627,8 +627,8 @@ # Identity of this package. PACKAGE_NAME='psnotes' PACKAGE_TARNAME='psnotes' -PACKAGE_VERSION='0.7.3' -PACKAGE_STRING='psnotes 0.7.3' +PACKAGE_VERSION='0.7.4' +PACKAGE_STRING='psnotes 0.7.4' PACKAGE_BUGREPORT='' PACKAGE_URL='' @@ -1359,7 +1359,7 @@ # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures psnotes 0.7.3 to adapt to many kinds of systems. +\`configure' configures psnotes 0.7.4 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1429,7 +1429,7 @@ if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of psnotes 0.7.3:";; + short | recursive ) echo "Configuration of psnotes 0.7.4:";; esac cat <<\_ACEOF @@ -1541,7 +1541,7 @@ test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -psnotes configure 0.7.3 +psnotes configure 0.7.4 generated by GNU Autoconf 2.68 Copyright (C) 2010 Free Software Foundation, Inc. @@ -1819,7 +1819,7 @@ This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by psnotes $as_me 0.7.3, which was +It was created by psnotes $as_me 0.7.4, which was generated by GNU Autoconf 2.68. Invocation command line was $ $0 $@ @@ -2638,7 +2638,7 @@ # Define the identity of the package. PACKAGE='psnotes' - VERSION='0.7.3' + VERSION='0.7.4' cat >>confdefs.h <<_ACEOF @@ -12126,7 +12126,7 @@ # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by psnotes $as_me 0.7.3, which was +This file was extended by psnotes $as_me 0.7.4, which was generated by GNU Autoconf 2.68. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -12192,7 +12192,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ -psnotes config.status 0.7.3 +psnotes config.status 0.7.4 configured by $0, generated by GNU Autoconf 2.68, with options \\"\$ac_cs_config\\" diff -Nru psnotes-0.7.3/configure.ac psnotes-0.7.4/configure.ac --- psnotes-0.7.3/configure.ac 2013-03-30 01:06:28.000000000 +0000 +++ psnotes-0.7.4/configure.ac 2013-03-30 13:03:03.000000000 +0000 @@ -1,7 +1,7 @@ dnl Process this file with autoconf to produce a configure script. dnl Created by Anjuta application wizard. -AC_INIT(psnotes, 0.7.3) +AC_INIT(psnotes, 0.7.4) AC_CONFIG_HEADERS([config.h]) diff -Nru psnotes-0.7.3/debian/README.Debian psnotes-0.7.4/debian/README.Debian --- psnotes-0.7.3/debian/README.Debian 2013-03-30 13:09:09.000000000 +0000 +++ psnotes-0.7.4/debian/README.Debian 2013-03-30 18:16:25.000000000 +0000 @@ -3,4 +3,4 @@ - -- Zach Burnham Sat, 30 Mar 2013 09:09:08 -0400 + -- Zach Burnham Sat, 30 Mar 2013 14:16:23 -0400 diff -Nru psnotes-0.7.3/debian/changelog psnotes-0.7.4/debian/changelog --- psnotes-0.7.3/debian/changelog 2013-03-30 13:12:29.000000000 +0000 +++ psnotes-0.7.4/debian/changelog 2013-03-30 18:18:16.000000000 +0000 @@ -1,6 +1,6 @@ -psnotes (0.7.3-2) quantal; urgency=low +psnotes (0.7.4-2) quantal; urgency=low * Overview of Changes - - Fixed toolbar to look good. + - Bug fix and prepare for software center. - -- Zach Burnham Sat, 30 Mar 2013 09:09:08 -0400 + -- Zach Burnham Sat, 30 Mar 2013 14:16:23 -0400 diff -Nru psnotes-0.7.3/src/UserData.c psnotes-0.7.4/src/UserData.c --- psnotes-0.7.3/src/UserData.c 2013-03-30 00:24:48.000000000 +0000 +++ psnotes-0.7.4/src/UserData.c 2013-03-30 18:07:57.000000000 +0000 @@ -24,6 +24,7 @@ #include #include #include +#include #include @@ -266,10 +267,28 @@ const gchar* _tmp0_; const gchar* _tmp1_; gchar* _tmp2_ = NULL; + gchar* path; + const gchar* _tmp3_; + GFile* _tmp4_ = NULL; + GFile* file; + GFile* _tmp5_; + gboolean _tmp6_ = FALSE; _tmp0_ = user_data_get_notesDirPath (); _tmp1_ = _tmp0_; _tmp2_ = file_utility_pathCombine (_tmp1_, "Archive"); - result = _tmp2_; + path = _tmp2_; + _tmp3_ = path; + _tmp4_ = g_file_new_for_path (_tmp3_); + file = _tmp4_; + _tmp5_ = file; + _tmp6_ = g_file_query_exists (_tmp5_, NULL); + if (!_tmp6_) { + const gchar* _tmp7_; + _tmp7_ = path; + file_utility_createFolder (_tmp7_); + } + result = path; + _g_object_unref0 (file); return result; } diff -Nru psnotes-0.7.3/src/UserData.vala psnotes-0.7.4/src/UserData.vala --- psnotes-0.7.3/src/UserData.vala 2013-03-30 00:20:32.000000000 +0000 +++ psnotes-0.7.4/src/UserData.vala 2013-03-30 18:07:50.000000000 +0000 @@ -78,7 +78,16 @@ } public static string getArchivedNotesDir() { - return FileUtility.pathCombine(notesDirPath, "Archive"); + // Check if exists, if not, create + string path = FileUtility.pathCombine(notesDirPath, "Archive"); + + var file = File.new_for_path(path); + + if (!file.query_exists()) { + FileUtility.createFolder(path); + } + + return path; } public static void rememberCurrentNotebook() {