lp://qastaging/~3v1n0/bamf/fixes

Created by Marco Trevisan (Treviño) and last modified
Get this branch:
bzr branch lp://qastaging/~3v1n0/bamf/fixes
Only Marco Trevisan (Treviño) can upload to this branch. If you are Marco Trevisan (Treviño) please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
Marco Trevisan (Treviño)
Project:
BAMF
Status:
Merged

Recent revisions

423. By Marco Trevisan (Treviño)

compare_sub_values optimization.

Generate the "prefix" string just once, and not for every sub-folder
.desktop item compared. This should save many allocations/copies...

422. By Marco Trevisan (Treviño)

Use some more "const char*" when possible...

421. By Marco Trevisan (Treviño)

Some code spacing fixes...

420. By Marco Trevisan (Treviño)

Give priority to .desktop files coming from the Desktop folder

Always put the .desktop files coming from the user desktop folder
as priority files, prepending them to the desktop file list.

419. By Marco Trevisan (Treviño)

Correctly free non used strings, and don't double-check for list element

Move out some memory leaks included in past commits.

418. By Marco Trevisan (Treviño)

BAMF Application, reorder the desktop list

The desktop file list passed by the matcher is ordered, but a
BAMF application doesn't correctly use it, since it duplicates
the list using the prepend function, without reversing it.
This causes an inverted list.

Plus, using g_list_free_full when the list was already initialized.

417. By Marco Trevisan (Treviño)

Matcher: correctly order desktop files by priority.

Desktop files whose name is equal to the desktop_id were prepended
to the desktop file list, but this caused to reverse their priority
(since the ones coming from a less prioritized directory were put
before the ones coming from an high priority directory).

Now the desktop files with a desktop_id matching name are inserted
in a sorted way: they are appended to the other matching desktop files
while they're really prepended to the list of the other desktop files.

416. By Marco Trevisan (Treviño)

Bamf-application: correclty free wmclass / desktop file when replacing

When replacing the desktop_class or wmclass parameter, free the
previously set value.

415. By Marco Trevisan (Treviño)

Include the G_USER_DIRECTORY_DESKTOP as .desktop repository

With this the user desktop directory will be used as a
.desktop files repository too (with the highest priority), also
if BAMF won't include and monitor its subfolders (alredy there
or added during the BAMF runtime).

LP: #768636

414. By Marco Trevisan (Treviño)

Include missing support for $XDG_DATA_HOME

The $XDG_DATA_HOME env variable can be used to set data
directories too. BAMF should support it.

Added the utility function get_desktop_file_env_directories()
to perform this task (and generalize the case).

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
Stacked on:
lp://qastaging/bamf/0.4
This branch contains Public information 
Everyone can see this information.