Merge lp:~mitya57/indicator-session/multiple-names-in-current-desktop into lp:indicator-session/15.04
Proposed by
Dmitry Shachnev
on 2014-11-30
| Status: | Merged |
|---|---|
| Approved by: | Charles Kerr on 2015-01-14 |
| Approved revision: | 461 |
| Merged at revision: | 461 |
| Proposed branch: | lp:~mitya57/indicator-session/multiple-names-in-current-desktop |
| Merge into: | lp:indicator-session/15.04 |
| Diff against target: |
31 lines (+18/-2) 1 file modified
src/backend-dbus/actions.c (+18/-2) |
| To merge this branch: | bzr merge lp:~mitya57/indicator-session/multiple-names-in-current-desktop |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Charles Kerr (community) | 2014-12-11 | Approve on 2015-01-14 | |
| Alberts Muktupāvels (community) | 2014-11-30 | Approve on 2014-11-30 | |
| Ted Gould | 2014-12-11 | Pending | |
| Indicator Applet Developers | 2014-11-30 | Pending | |
|
Review via email:
|
|||
Commit Message
Support multiple desktop names in XDG_CURRENT_
Description of the Change
The Desktop Entry Specification says:
If $XDG_CURRENT_
In GNOME Flashback session, we currently have:
dmitry@
GNOME-
… and we still want to use unity-control-
To post a comment you must log in.
| Alberts Muktupāvels (muktupavels) wrote : | # |
| Dmitry Shachnev (mitya57) wrote : | # |
Should be better now.
| Alberts Muktupāvels (muktupavels) wrote : | # |
Replace second g_getenv with xdg_current_
review:
Approve
lp:~mitya57/indicator-session/multiple-names-in-current-desktop
updated
on 2014-11-30
- 461. By Dmitry Shachnev on 2014-11-30
-
Support multiple names in XDG_CURRENT_
DESKTOP.
| Dmitry Shachnev (mitya57) wrote : | # |
Done.

Sorry, looks like this is wrong too. We should not pass NULL to g_strsplit...
const gchar *current_desktop;
current_desktop = g_getenv( "XDG_CURRENT_ DESKTOP" );
if (!current_desktop)
current_desktop = "";
desktop_names = g_strsplit (current_desktop, ":", 0);
for (i = 0; desktop_names[i]; ++i)
...