Merge lp:~ted/mediaplayer-app/trusted-session-helper into lp:mediaplayer-app

Proposed by Ted Gould
Status: Rejected
Rejected by: Ted Gould
Proposed branch: lp:~ted/mediaplayer-app/trusted-session-helper
Merge into: lp:mediaplayer-app
Diff against target: 155 lines (+34/-42)
7 files modified
CMakeLists.txt (+0/-1)
data/CMakeLists.txt (+0/-11)
data/mediaplayer-app.desktop.in.in (+0/-13)
debian/changelog (+14/-0)
debian/mediaplayer-app.install (+0/-1)
po/CMakeLists.txt (+19/-7)
po/mediaplayer-app.pot (+1/-9)
To merge this branch: bzr merge lp:~ted/mediaplayer-app/trusted-session-helper
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Needs Fixing
Ubuntu Phablet Team Pending
Review via email: mp+245913@code.launchpad.net

Commit message

Convert from an app to a helper

To post a comment you must log in.
Revision history for this message
Renato Araujo Oliveira Filho (renatofilho) wrote :

O noticed that you have update the pot file to no use the relative path based on pot directory. We did that way because a request from dpm, all our apps use this approach.

Revision history for this message
Renato Araujo Oliveira Filho (renatofilho) wrote :

I having a problem testing it I am not sure if this is a camera problem or the url dispatcher one.

On camera roll if you click once nothing happens on the ui saying that the video is going to be played, the user need to wait for about ~3 secs to the mp app to appear. If the user try to click again the mp app will open twice and crash.

Revision history for this message
Ted Gould (ted) wrote :

Updated to remove the changes to the pot file and actually the helper. We moved that into URL dispatcher as that's where it's likely to live long term.

In the future there'll probably be some sort of registration mechanism that mediaplayer will need to use, but we don't have that yet.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Timo Jyrinki (timo-jyrinki) wrote :

This has been long (3 months) in the train spreadsheet with comment "Cleaned, don't believe it is needed right now.". Please add a new landing line if you want to see this landed.

Unmerged revisions

328. By Ted Gould

Change pot file so there's nothing in the diff

327. By Ted Gould

Drop helper dependencies

326. By Ted Gould

Drop the helper from mediaplayer-app

325. By Ted Gould

Adding glib and mir build dependencies

324. By Ted Gould

Merging RTM 14.09 branch

323. By Ted Gould

Fix name of who is connecting

322. By Ted Gould

Add helper to packages

321. By Ted Gould

Flesh out the helper

320. By Ted Gould

Skeleton for the helper

319. By Ted Gould

Adding in a helper directory

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'CMakeLists.txt'
2--- CMakeLists.txt 2014-10-02 13:42:17 +0000
3+++ CMakeLists.txt 2015-01-16 15:44:43 +0000
4@@ -4,7 +4,6 @@
5
6 # Find includes in corresponding build directories
7 set(CMAKE_INCLUDE_CURRENT_DIR ON)
8-set(DESKTOP_FILE mediaplayer-app.desktop)
9
10 # Instruct CMake to run moc automatically when needed.
11 set(CMAKE_AUTOMOC ON)
12
13=== modified file 'data/CMakeLists.txt'
14--- data/CMakeLists.txt 2014-10-02 13:42:17 +0000
15+++ data/CMakeLists.txt 2015-01-16 15:44:43 +0000
16@@ -1,18 +1,7 @@
17-set(MEDIAPLAYER_DESKTOP_FILE mediaplayer-app.desktop)
18 set(MEDIAPLAYER_APP_ICON mediaplayer-app.png)
19 set(MEDIAPLAYER_APP_SYMBOLIC_ICON mediaplayer-app-symbolic.svg)
20 set(MEDIAPLAYER_URL_DISPATCHER mediaplayer-app.url-dispatcher)
21
22-configure_file(${DESKTOP_FILE}.in.in ${DESKTOP_FILE}.in)
23-add_custom_target(${DESKTOP_FILE} ALL
24- COMMENT "Merging translations into ${DESKTOP_FILE}"
25- COMMAND LC_ALL=C ${INTLTOOL_MERGE} -d -u ${CMAKE_SOURCE_DIR}/po ${DESKTOP_FILE}.in ${DESKTOP_FILE} >/dev/null
26- )
27-
28-install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${MEDIAPLAYER_DESKTOP_FILE}
29- DESTINATION ${CMAKE_INSTALL_DATADIR}/applications
30-)
31-
32 install(FILES ${MEDIAPLAYER_APP_ICON} ${MEDIAPLAYER_APP_SYMBOLIC_ICON}
33 DESTINATION ${MEDIAPLAYER_DIR}
34 )
35
36=== removed file 'data/mediaplayer-app.desktop.in.in'
37--- data/mediaplayer-app.desktop.in.in 2014-10-02 19:11:44 +0000
38+++ data/mediaplayer-app.desktop.in.in 1970-01-01 00:00:00 +0000
39@@ -1,13 +0,0 @@
40-[Desktop Entry]
41-Type=Application
42-_Name=Media Player
43-_GenericName=Media Player
44-_Comment=Media Player
45-_Keywords=Movies;Movie Player;Video Player
46-Exec=mediaplayer-app %u
47-Terminal=false
48-Icon=@MEDIAPLAYER_DIR@/@MEDIAPLAYER_APP_ICON@
49-X-Ubuntu-SymbolicIcon=@MEDIAPLAYER_DIR@/@MEDIAPLAYER_APP_SYMBOLIC_ICON@
50-X-Ubuntu-Gettext-Domain=mediaplayer-app
51-X-Ubuntu-Single-Instance=true
52-X-Ubuntu-Default-Department-ID=sound-video
53
54=== modified file 'debian/changelog'
55--- debian/changelog 2014-10-15 21:51:43 +0000
56+++ debian/changelog 2015-01-16 15:44:43 +0000
57@@ -1,3 +1,17 @@
58+mediaplayer-app (0.20.5+15.04.20141110.3~rtm-0ubuntu1) 14.09; urgency=low
59+
60+ [ Bill Filler ]
61+ * update translations
62+
63+ [ Ubuntu daily release ]
64+ * New rebuild forced
65+
66+ [ Renato Araujo Oliveira Filho ]
67+ * Fixed cmake script to generate the necessary translations for
68+ desktop file. (LP: #1382317)
69+
70+ -- Ubuntu daily release <ps-jenkins@lists.canonical.com> Mon, 10 Nov 2014 19:57:49 +0000
71+
72 mediaplayer-app (0.20.5+14.10.20141015-0ubuntu1) 14.09; urgency=low
73
74 [ CI bot ]
75
76=== modified file 'debian/mediaplayer-app.install'
77--- debian/mediaplayer-app.install 2014-09-29 20:53:44 +0000
78+++ debian/mediaplayer-app.install 2015-01-16 15:44:43 +0000
79@@ -1,4 +1,3 @@
80-/usr/share/applications/mediaplayer-app.desktop
81 /usr/bin/mediaplayer-app
82 /usr/share/mediaplayer-app/mediaplayer-app.png
83 /usr/share/mediaplayer-app/mediaplayer-app-symbolic.svg
84
85=== modified file 'po/CMakeLists.txt'
86--- po/CMakeLists.txt 2014-06-16 14:08:17 +0000
87+++ po/CMakeLists.txt 2015-01-16 15:44:43 +0000
88@@ -5,11 +5,9 @@
89 set(DOMAIN mediaplayer-app)
90 set(POT_FILE ${DOMAIN}.pot)
91 file(GLOB PO_FILES *.po)
92-file(GLOB_RECURSE I18N_SRCS RELATIVE ${CMAKE_SOURCE_DIR}
93+file(GLOB_RECURSE I18N_SRCS RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
94 ${CMAKE_SOURCE_DIR}/src/*.qml)
95-list(APPEND I18N_SRCS data/${DESKTOP_FILE}.in.in)
96 list(SORT I18N_SRCS)
97-message("Found ${I18N_SRCS}")
98
99 foreach(PO_FILE ${PO_FILES})
100 get_filename_component(LANG ${PO_FILE} NAME_WE)
101@@ -24,8 +22,22 @@
102 if(XGETTEXT_EXECUTABLE)
103 add_custom_target(${POT_FILE} ALL
104 COMMENT "Generating translation template"
105- COMMAND ${INTLTOOL_EXTRACT} --update --type=gettext/ini
106- --srcdir=${CMAKE_SOURCE_DIR} data/${DESKTOP_FILE}.in.in
107- COMMAND ${XGETTEXT_EXECUTABLE} --c++ --qt --add-comments=TRANSLATORS --keyword=tr --keyword=tr:1,2 -D ${CMAKE_SOURCE_DIR} -s -p ${CMAKE_CURRENT_SOURCE_DIR} -o mediaplayer-app.pot ${I18N_SRCS}
108- )
109+ COMMAND ${XGETTEXT_EXECUTABLE} -o ${POT_FILE}
110+ --c++ --qt --add-comments=TRANSLATORS
111+ --keyword=tr --keyword=tr:1,2 --keyword=N_
112+ --package-name=${DOMAIN}
113+ --copyright-holder='Canonical Ltd.'
114+ -s -p ${CMAKE_CURRENT_SOURCE_DIR}
115+ -D ${CMAKE_CURRENT_SOURCE_DIR} ${I18N_SRCS}
116+ )
117+
118+ add_custom_target(translations
119+ COMMENT "Updating translation files"
120+ )
121+ add_dependencies(translations ${POT_FILE})
122+ foreach(PO_FILE ${PO_FILES})
123+ add_custom_command(TARGET translations
124+ COMMAND ${GETTEXT_MSGMERGE_EXECUTABLE} ${PO_FILE} ${CMAKE_CURRENT_SOURCE_DIR}/${POT_FILE} -o ${PO_FILE}
125+ )
126+ endforeach(PO_FILE)
127 endif()
128
129=== modified file 'po/mediaplayer-app.pot'
130--- po/mediaplayer-app.pot 2014-11-05 22:59:33 +0000
131+++ po/mediaplayer-app.pot 2015-01-16 15:44:43 +0000
132@@ -8,7 +8,7 @@
133 msgstr ""
134 "Project-Id-Version: mediaplayer-app\n"
135 "Report-Msgid-Bugs-To: \n"
136-"POT-Creation-Date: 2014-11-05 14:28-0300\n"
137+"POT-Creation-Date: 2015-01-16 09:43-0600\n"
138 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
139 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
140 "Language-Team: LANGUAGE <LL@li.org>\n"
141@@ -52,14 +52,6 @@
142 msgid "Fail to open the source video."
143 msgstr ""
144
145-#: ../data/mediaplayer-app.desktop.in.in.h:1
146-msgid "Media Player"
147-msgstr ""
148-
149-#: ../data/mediaplayer-app.desktop.in.in.h:2
150-msgid "Movies;Movie Player;Video Player"
151-msgstr ""
152-
153 #: ../src/qml/player.qml:68
154 msgid ""
155 "No video selected to play. Connect your phone to your computer to transfer "

Subscribers

People subscribed via source and target branches

to all changes: