After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 729361 - Make Maps DBus activatable
Make Maps DBus activatable
Status: RESOLVED FIXED
Product: gnome-maps
Classification: Applications
Component: general
git master
Other Linux
: Normal normal
: ---
Assigned To: gnome-maps-maint
gnome-maps-maint
Depends on:
Blocks:
 
 
Reported: 2014-05-01 21:28 UTC by Jonas Danielsson
Modified: 2014-05-05 19:22 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Make Maps DBus activatable (1.92 KB, patch)
2014-05-01 21:28 UTC, Jonas Danielsson
committed Details | Review
Rename desktop file to GApplication application ID (3.38 KB, patch)
2014-05-01 21:28 UTC, Jonas Danielsson
committed Details | Review
Advertise DBus activatable status in desktop file (678 bytes, patch)
2014-05-01 21:28 UTC, Jonas Danielsson
committed Details | Review

Description Jonas Danielsson 2014-05-01 21:28:13 UTC
See patches.
Comment 1 Jonas Danielsson 2014-05-01 21:28:39 UTC
Created attachment 275577 [details] [review]
Make Maps DBus activatable
Comment 2 Jonas Danielsson 2014-05-01 21:28:43 UTC
Created attachment 275578 [details] [review]
Rename desktop file to GApplication application ID

This is needed in order to advertise that we support DBus activation.
Comment 3 Jonas Danielsson 2014-05-01 21:28:47 UTC
Created attachment 275579 [details] [review]
Advertise DBus activatable status in desktop file
Comment 4 Jonas Danielsson 2014-05-01 21:30:28 UTC
Review of attachment 275578 [details] [review]:

What's missing here is all the references in the po files to the old gnome-maps.desktop name.

#: ../data/gnome-maps.desktop.in.in.h:1 ../src/application.js:55
#: ../src/mainWindow.js:372 ../src/main-window.ui.h:3
msgid "Maps"
msgstr "الخرائط"

#: ../data/gnome-maps.desktop.in.in.h:2
msgid "A simple maps application"
msgstr "تطبيق خرائط بسيط"

#: ../data/gnome-maps.desktop.in.in.h:3
msgid "Maps;"
msgstr "خرائط;"

How do I deal with that? Just rename it in all po files?
Comment 5 Zeeshan Ali 2014-05-02 09:42:09 UTC
(In reply to comment #4)
> Review of attachment 275578 [details] [review]:
> 
> What's missing here is all the references in the po files to the old
> gnome-maps.desktop name.
> 
> #: ../data/gnome-maps.desktop.in.in.h:1 ../src/application.js:55
> #: ../src/mainWindow.js:372 ../src/main-window.ui.h:3
> msgid "Maps"
> msgstr "الخرائط"
> 
> #: ../data/gnome-maps.desktop.in.in.h:2
> msgid "A simple maps application"
> msgstr "تطبيق خرائط بسيط"
> 
> #: ../data/gnome-maps.desktop.in.in.h:3
> msgid "Maps;"
> msgstr "خرائط;"
> 
> How do I deal with that? Just rename it in all po files?

Its dealt with the same way as any other source file: you don't. :) The source code file names and line numbers are comments AFAIK so they don't matter.
Comment 6 Zeeshan Ali 2014-05-02 09:51:44 UTC
Review of attachment 275577 [details] [review]:

NACK because of the approach.

::: src/Makefile.am
@@ +28,3 @@
+dbusservice_DATA = org.gnome.Maps.service
+
+org.gnome.Maps.service: Makefile

Ah, now I understand your question about PO files. :) We don't want to generate it like this. Check other apps (e.g gnome-boxes) to see how desktop file is generated.
Comment 7 Jonas Danielsson 2014-05-02 13:32:15 UTC
Review of attachment 275577 [details] [review]:

::: src/Makefile.am
@@ +28,3 @@
+dbusservice_DATA = org.gnome.Maps.service
+
+org.gnome.Maps.service: Makefile

This is not the desktop file this is the service file.

I followed the tutorial here:
https://wiki.gnome.org/HowDoI/DBusApplicationLaunching

Which suggested this approach was the best way (doing it from Makefile).
Comment 8 Jonas Danielsson 2014-05-02 13:33:24 UTC
The desktop file is still generated the same way as before, and I think the same way as in boxes. It is just renamed. Since that was what the howto (see above) that I followed said was needed to advertise DBus activable in the desktop file.
Comment 9 Zeeshan Ali 2014-05-04 15:46:43 UTC
(In reply to comment #8)
> The desktop file is still generated the same way as before, and I think the
> same way as in boxes. It is just renamed. Since that was what the howto (see
> above) that I followed said was needed to advertise DBus activable in the
> desktop file.

Ah ok then my comment#5 is valid.
Comment 10 Zeeshan Ali 2014-05-04 15:50:12 UTC
Review of attachment 275577 [details] [review]:

::: src/Makefile.am
@@ +28,3 @@
+dbusservice_DATA = org.gnome.Maps.service
+
+org.gnome.Maps.service: Makefile

Ah ok. ACK then :)
Comment 11 Zeeshan Ali 2014-05-04 15:52:39 UTC
Review of attachment 275578 [details] [review]:

Isn't the actual file renaming missing from this patch?
Comment 12 Zeeshan Ali 2014-05-04 15:53:17 UTC
Review of attachment 275579 [details] [review]:

ACK
Comment 13 Jonas Danielsson 2014-05-04 20:07:47 UTC
Review of attachment 275578 [details] [review]:

Seems bugzilla doesn't pick up on it, if you click the attachment you see:

 .gitignore                                                      | 4 ++--
 configure.ac                                                    | 2 +-
 data/Makefile.am                                                | 4 ++--
 data/gnome-maps.appdata.xml.in                                  | 2 +-
 data/{gnome-maps.desktop.in.in => org.gnome.Maps.desktop.in.in} | 0
 po/POTFILES.in                                                  | 2 +-
 po/POTFILES.skip                                                | 2 +-
 7 files changed, 8 insertions(+), 8 deletions(-)
 rename data/{gnome-maps.desktop.in.in => org.gnome.Maps.desktop.in.in} (100%)

^^^^

And if you bz apply it the rename takes place.
Comment 14 Zeeshan Ali 2014-05-05 11:39:30 UTC
(In reply to comment #13)
> Review of attachment 275578 [details] [review]:
> 
> Seems bugzilla doesn't pick up on it, if you click the attachment you see:
> 
>  .gitignore                                                      | 4 ++--
>  configure.ac                                                    | 2 +-
>  data/Makefile.am                                                | 4 ++--
>  data/gnome-maps.appdata.xml.in                                  | 2 +-
>  data/{gnome-maps.desktop.in.in => org.gnome.Maps.desktop.in.in} | 0
>  po/POTFILES.in                                                  | 2 +-
>  po/POTFILES.skip                                                | 2 +-
>  7 files changed, 8 insertions(+), 8 deletions(-)
>  rename data/{gnome-maps.desktop.in.in => org.gnome.Maps.desktop.in.in} (100%)
> 
> ^^^^
> 
> And if you bz apply it the rename takes place.

Ah, ACK then.
Comment 15 Jonas Danielsson 2014-05-05 19:22:07 UTC
Attachment 275577 [details] pushed as acfe464 - Make Maps DBus activatable
Attachment 275578 [details] pushed as c9857b6 - Rename desktop file to GApplication application ID
Attachment 275579 [details] pushed as b5fc981 - Advertise DBus activatable status in desktop file