From: Jon Date: Mon, 17 May 2010 23:04:56 +0000 (+0100) Subject: Update desktop file so that it runs correctly and fix date display bug X-Git-Url: http://git.maemo.org/git/?p=gigfinder;a=commitdiff_plain;h=44cfeca1de10687bc8d12ed8f21082a5fa5ee58f Update desktop file so that it runs correctly and fix date display bug --- diff --git a/build/build_gigfinder.py b/build/build_gigfinder.py index 4b8da10..37c2f57 100644 --- a/build/build_gigfinder.py +++ b/build/build_gigfinder.py @@ -38,9 +38,9 @@ if __name__ == "__main__": # p.preremove="""#!/bin/sh # chmod +x /usr/bin/mclock.py""" #Set here your pre remove script version = "0.0.1" #Version of your software, e.g. "1.2.0" or "0.8.2" - build = "3" #Build number, e.g. "1" for the first build of this version of your software. Increment for later re-builds of the same version of your software. + build = "4" #Build number, e.g. "1" for the first build of this version of your software. Increment for later re-builds of the same version of your software. #Text with changelog information to be displayed in the package "Details" tab of the Maemo Application Manager - changeloginformation = "Fix UI problems when less than 10 events displayed" + changeloginformation = "Fix bug in desktop file, pointing to the wrong location" dir_name = "src" #Name of the subfolder containing your package source files (e.g. usr\share\icons\hicolor\scalable\myappicon.svg, usr\lib\myapp\somelib.py). We suggest to leave it named src in all projects and will refer to that in the wiki article on maemo.org #Thanks to DareTheHair from talk.maemo.org for this snippet that recursively builds the file list for root, dirs, files in os.walk(dir_name): diff --git a/src/opt/gigfinder/gigfinder.py b/src/opt/gigfinder/gigfinder.py index 7e159ef..d5fe2bd 100755 --- a/src/opt/gigfinder/gigfinder.py +++ b/src/opt/gigfinder/gigfinder.py @@ -159,7 +159,7 @@ class GigFinder: buffer.insert(end, 'Artists: %s\n' % data['artists']) buffer.insert(end, 'Venue: %s\n' % data['venue']) buffer.insert(end, '%s\n' % data['address']) - buffer.insert(end, 'When: %s\n' % data['date'].strftime('%H:%M %d/%M/%Y')) + buffer.insert(end, 'When: %s\n' % data['date'].strftime('%H:%M %d/%m/%Y')) buffer.insert(end, '\n') scroll.add_with_viewport(view) diff --git a/src/usr/share/applications/hildon/gigfinder.desktop b/src/usr/share/applications/hildon/gigfinder.desktop index 7d1d679..3fd494d 100644 --- a/src/usr/share/applications/hildon/gigfinder.desktop +++ b/src/usr/share/applications/hildon/gigfinder.desktop @@ -3,7 +3,7 @@ Version=1.0.0 Encoding=UTF-8 Name=Gig Finder Comment=Gig finder -Exec=/home/jon/applications/gigfinder/gigfinder.py +Exec=/opt/gigfinder/gigfinder.py Icon=gigfinder X-Icon-path=/usr/share/icons X-Window-Icon=gigfinder