Awn

Comment 0 for bug 334811

Revision history for this message
David Planella (dpm) wrote :

Using 0.3.2-0ubuntu1~ppa5 on Intrepid

The .desktop file created by AWN in the ~/.config/autostart folder when checking the autostart option in the preferences dialog it is not a complete desktop entry. It lacks the comment field and l10n capabilities, which causes the entry to be shown untranslated and with a "No description" comment in System > Preferences > Sessions.

This comes from awnPreferences.py:

        if not os.path.isfile(autostart_file):
            # create the autostart entry
            starter_item = DesktopEntry(autostart_file)
            starter_item.set('Name', 'Avant Window Navigator')
            starter_item.set('Exec', 'awn-autostart')
            starter_item.set('X-GNOME-Autostart-enabled', 'true')
            starter_item.write()

I do not know which is the usual way of doing this, but having had a look at the conduit sources as an example, I see they copy the application's main desktop entry to the ~/.config/autostart folder when activating the autostart options, which allows for reusing the translations and all other fields.

* http://standards.freedesktop.org/desktop-entry-spec/latest/ar01s05.html