← Back to team overview

gtg team mailing list archive

[Merge] lp:~izidor/gtg/uri into lp:gtg

 

Izidor Matušov has proposed merging lp:~izidor/gtg/uri into lp:gtg.

Requested reviews:
  Gtg developers (gtg)

For more details, see:
https://code.launchpad.net/~izidor/gtg/uri/+merge/118254

Updates to gtg.desktop file:
    * Using x-scheme-handler for handling gtg:// URI instead of gconf code
    * Changing GenericName to real generic name - see http://standards.freedesktop.org/desktop-entry-spec/latest/ar01s05.html
    * Updated Commet according to changes in About GTG dialog
    * Changed Categories according the specification - see http://standards.freedesktop.org/menu-spec/latest/apa.html
    * Added simple Slovak translation, we can add in the future more translations, see bug #537948

If you want to play with changes, copy gtg.desktop into /usr/share/applications and run "sudo update-desktop-database". (Package manger does it by installing automatically)

When you run "xdg-open gtg://<task_id>", the task editor for given task should be opened. 

You can find id in gtg_tasks.xml. It is not designed for direct users' interaction but intraction between programs, e.g. GNOME Shell extension.

If you have initial tasks, you can run "xdg-open gtg://0@1", "xdg-open gtg://1@1", etc.
-- 
https://code.launchpad.net/~izidor/gtg/uri/+merge/118254
Your team Gtg developers is requested to review the proposed merge of lp:~izidor/gtg/uri into lp:gtg.
=== modified file 'CHANGELOG'
--- CHANGELOG	2012-07-28 18:14:57 +0000
+++ CHANGELOG	2012-08-04 20:26:20 +0000
@@ -38,6 +38,8 @@
     * Fix for bug #1026264: Write user documentation for search/smart tag
     * Fix for bug #1020611: Use deafult configuration when config is corrupted by Abhiram
     * Fix for bug #1013869: Saved searches can't be deleted when GTG crashes, by Antonio Roquentin
+    * Cleaned gtg.desktop file
+    * Re-enabled support for gtg:// URI
 
 2012-02-13 Getting Things GNOME! 0.2.9
     * Big refractorization of code, now using liblarch

=== modified file 'GTG/__init__.py'
--- GTG/__init__.py	2012-05-23 08:55:31 +0000
+++ GTG/__init__.py	2012-08-04 20:26:20 +0000
@@ -71,19 +71,3 @@
 user_plugins = os.path.join(config_home, 'gtg/plugins')
 if os.path.isdir(user_plugins):
     PLUGIN_DIR.append(user_plugins)
-
-# FIXME Register GTG URI (temporary, it should be created by a schema upon installing)
-# FIXME Uncomment it or even better - install it properly - it breaks build
-"""
-try:
-    import gconf
-    domain = "/desktop/gnome/url-handlers/gtg/"
-    client = gconf.client_get_default()
-    #this should work both in debugging mode and in deployed mode
-    client.set_string(os.path.join(domain, "command"), "gtg %s")
-    client.set_bool(os.path.join(domain, "enabled"), True)
-    client.set_bool(os.path.join(domain, "needs_terminal"), False)
-except ImportError:
-    # Ignore it on systems which do not have GConf
-    pass
-    """

=== modified file 'gtg.desktop'
--- gtg.desktop	2012-05-23 08:55:31 +0000
+++ gtg.desktop	2012-08-04 20:26:20 +0000
@@ -1,16 +1,16 @@
 [Desktop Entry]
 Version=1.0
 Name=Getting Things GNOME!
-# KDE 4 uses GenericName
-GenericName=Getting Things GNOME!
-# Gnome and KDE 3 use Comment
-Comment=Personal organizer for the GNOME desktop environment
-Comment[pl]=Osobisty organizer dla środowiska GNOME
+GenericName=Task Manager
+GenericName[sk]=Správca pracovných úloh
+Comment=Personal tasks and TODO-list items organizer for the GNOME desktop environment.
+Comment[sk]=Osobný správca pracovných úloh pre prostredie GNOME
 Icon=gtg
-Exec=gtg %F
+Exec=gtg %U
 Terminal=false
 Type=Application
-Categories=GNOME;GTK;Office;
+Categories=Office;ProjectManagement;
+MimeType=x-scheme-handler/gtg;
 StartupNotify=true
 X-Ayatana-Desktop-Shortcuts=NewTask
 


Follow ups