Merge lp:~chipaca/ubuntu-push/fixes-to-app_helper into lp:ubuntu-push/automatic

Proposed by John Lenton
Status: Merged
Approved by: John Lenton
Approved revision: 216
Merged at revision: 217
Proposed branch: lp:~chipaca/ubuntu-push/fixes-to-app_helper
Merge into: lp:ubuntu-push/automatic
Diff against target: 45 lines (+18/-13)
1 file modified
bus/notifications/app_helper/app_helper_c.go (+18/-13)
To merge this branch: bzr merge lp:~chipaca/ubuntu-push/fixes-to-app_helper
Reviewer Review Type Date Requested Status
Samuele Pedroni Approve
Review via email: mp+225501@code.launchpad.net

This proposal supersedes a proposal from 2014-07-03.

Commit message

Fixes to app_helper

Description of the change

Fixes to app_helper

To post a comment you must log in.
Revision history for this message
Samuele Pedroni (pedronis) wrote :

looks good

review: Approve
Revision history for this message
Ubuntu One Auto Pilot (otto-pilot) wrote :
Download full text (10.9 KiB)

The attempt to merge lp:~chipaca/ubuntu-push/fixes-to-app_helper into lp:ubuntu-push/automatic failed. Below is the output from the failed tests.

scripts/deps.sh ubuntu-push-client.go
scripts/deps.sh server/dev/server.go
scripts/deps.sh server/acceptance/cmd/acceptanceclient.go
/mnt/tarmac/cache/ubuntu-push-automatic/go-ws/bin/godeps -t launchpad.net/ubuntu-push launchpad.net/ubuntu-push/bus launchpad.net/ubuntu-push/bus/connectivity launchpad.net/ubuntu-push/bus/networkmanager launchpad.net/ubuntu-push/bus/notifications launchpad.net/ubuntu-push/bus/notifications/app_helper launchpad.net/ubuntu-push/bus/systemimage launchpad.net/ubuntu-push/bus/testing launchpad.net/ubuntu-push/bus/urldispatcher launchpad.net/ubuntu-push/client launchpad.net/ubuntu-push/client/gethosts launchpad.net/ubuntu-push/client/service launchpad.net/ubuntu-push/client/session launchpad.net/ubuntu-push/client/session/seenstate launchpad.net/ubuntu-push/config launchpad.net/ubuntu-push/external/murmur3 launchpad.net/ubuntu-push/launch_helper launchpad.net/ubuntu-push/logger launchpad.net/ubuntu-push/messaging launchpad.net/ubuntu-push/messaging/cmessaging launchpad.net/ubuntu-push/messaging/reply launchpad.net/ubuntu-push/nih launchpad.net/ubuntu-push/nih/cnih launchpad.net/ubuntu-push/protocol launchpad.net/ubuntu-push/server launchpad.net/ubuntu-push/server/api launchpad.net/ubuntu-push/server/broker launchpad.net/ubuntu-push/server/broker/simple launchpad.net/ubuntu-push/server/broker/testing launchpad.net/ubuntu-push/server/broker/testsuite launchpad.net/ubuntu-push/server/dev launchpad.net/ubuntu-push/server/listener launchpad.net/ubuntu-push/server/session launchpad.net/ubuntu-push/server/store launchpad.net/ubuntu-push/testing launchpad.net/ubuntu-push/testing/condition launchpad.net/ubuntu-push/util launchpad.net/ubuntu-push/whoopsie launchpad.net/ubuntu-push/whoopsie/identifier launchpad.net/ubuntu-push/whoopsie/identifier/testing launchpad.net/ubuntu-push/server/acceptance/cmd/ launchpad.net/ubuntu-push/server/dev/ launchpad.net/ubuntu-push/ 2>/dev/null | cat > dependencies.tsv
rm -f -r /mnt/tarmac/cache/ubuntu-push-automatic/go-ws/pkg
mkdir -p /mnt/tarmac/cache/ubuntu-push-automatic/go-ws/bin
mkdir -p /mnt/tarmac/cache/ubuntu-push-automatic/go-ws/pkg
go get -u launchpad.net/godeps
go get -d -u launchpad.net/gocheck launchpad.net/go-dbus/v1 launchpad.net/go-xdg/v0 code.google.com/p/gosqlite/sqlite3 code.google.com/p/go-uuid/uuid
/mnt/tarmac/cache/ubuntu-push-automatic/go-ws/bin/godeps -u dependencies.tsv
go install launchpad.net/gocheck launchpad.net/go-dbus/v1 launchpad.net/go-xdg/v0 code.google.com/p/gosqlite/sqlite3 code.google.com/p/go-uuid/uuid
go test launchpad.net/ubuntu-push launchpad.net/ubuntu-push/bus launchpad.net/ubuntu-push/bus/connectivity launchpad.net/ubuntu-push/bus/networkmanager launchpad.net/ubuntu-push/bus/notifications launchpad.net/ubuntu-push/bus/notifications/app_helper launchpad.net/ubuntu-push/bus/systemimage launchpad.net/ubuntu-push/bus/testing launchpad.net/ubuntu-push/bus/urldispatcher launchpad.net/ubuntu-push/client launchpad.net/ubuntu-push/client/gethosts launchpad.net/ubuntu-push/client/service launchpad.net/ubuntu-push/c...

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'bus/notifications/app_helper/app_helper_c.go'
--- bus/notifications/app_helper/app_helper_c.go 2014-06-26 17:03:34 +0000
+++ bus/notifications/app_helper/app_helper_c.go 2014-07-03 15:06:04 +0000
@@ -19,23 +19,28 @@
1919
20/*20/*
21#cgo pkg-config: gio-unix-2.021#cgo pkg-config: gio-unix-2.0
22#cgo pkg-config: gio-2.0
23#include <stdlib.h>
24#include <glib.h>22#include <glib.h>
25#include <gio/gdesktopappinfo.h>23#include <gio/gdesktopappinfo.h>
24
25gchar* app_icon_filename_from_id (gchar* app_id) {
26 gchar* filename = NULL;
27 GAppInfo* app_info = (GAppInfo*)g_desktop_app_info_new (app_id);
28 if (app_info != NULL) {
29 GIcon* icon = g_app_info_get_icon (app_info);
30 if (icon != NULL) {
31 filename = g_icon_to_string (icon);
32 // g_app_info_get_icon has "transfer none"
33 }
34 g_object_unref (app_info);
35 }
36 g_free (app_id);
37 return filename;
38}
26*/39*/
27import "C"40import "C"
28import "unsafe"
2941
30func AppIconFromId(appId string) string {42func AppIconFromId(appId string) string {
31 _id := C.CString(appId)43 name := C.app_icon_filename_from_id((*C.gchar)(C.CString(appId)))
32 defer C.free(unsafe.Pointer(_id))44 defer C.g_free((C.gpointer)(name))
33 _app_info := C.g_desktop_app_info_new(_id)45 return C.GoString((*C.char)(name))
34 defer C.g_app_info_delete(_app_info)
35 _app_icon := C.g_app_info_get_icon(_app_info)
36 defer C.g_object_unref((C.gpointer)(_app_icon))
37 _icon_string := C.g_icon_to_string(_app_icon)
38 defer C.free(unsafe.Pointer(_icon_string))
39 name := C.GoString((*C.char)(_icon_string))
40 return name
41}46}

Subscribers

People subscribed via source and target branches