Awn

Autostart desktop entry lacks comment and localisation

Bug #334811 reported by David Planella
2
Affects Status Importance Assigned to Milestone
Awn
Confirmed
Low
Unassigned

Bug Description

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 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

David Planella (dpm)
description: updated
Mark Lee (malept)
tags: added: awn-manager
Changed in awn:
importance: Undecided → Low
milestone: none → 0.4.0
status: New → Confirmed
Michal Hruby (mhr3)
Changed in awn:
milestone: 0.4.0 → 0.6.0
Michal Hruby (mhr3)
Changed in awn:
milestone: 0.6.0 → 0.4.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.