Merge lp:~philip.scott/pantheon-terminal/corrected-.desktop-name into lp:~elementary-apps/pantheon-terminal/trunk

Proposed by Felipe Escoto
Status: Merged
Approved by: Danielle Foré
Approved revision: 843
Merged at revision: 862
Proposed branch: lp:~philip.scott/pantheon-terminal/corrected-.desktop-name
Merge into: lp:~elementary-apps/pantheon-terminal/trunk
Diff against target: 89 lines (+10/-10)
5 files modified
CMakeLists.txt (+1/-1)
data/enable-fish-completion-notifications (+1/-1)
data/enable-zsh-completion-notifications (+4/-4)
src/PantheonTerminal.vala (+3/-3)
src/TerminalWidget.vala (+1/-1)
To merge this branch: bzr merge lp:~philip.scott/pantheon-terminal/corrected-.desktop-name
Reviewer Review Type Date Requested Status
Danielle Foré Approve
Review via email: mp+295867@code.launchpad.net

Commit message

Changed .desktop name to it's app id

Description of the change

Corrected it's .desktop name to the app's App_ID.

This will later fix not being able to control Notifications from the switchboard plug.

This branch alone won't fix it. Gala and the notifications indicator still need work

To post a comment you must log in.
Revision history for this message
Danielle Foré (danrabbit) wrote :

Why is this at net.launchpad.pantheon-terminal when the gsettings schema is at org.pantheon.terminal? Seems like these should match

Revision history for this message
Felipe Escoto (philip.scott) wrote :

I tried changing it to org.pantheon.terminal and dbus broke for it... net.launchpad.pantheon-terminal worked

843. By Felipe Escoto

No more net.launchpad

Revision history for this message
Felipe Escoto (philip.scott) wrote :

Alright, everything now is org.pantheon.terminal. Branch good for merging now

Revision history for this message
Danielle Foré (danrabbit) wrote :

works for me!

review: Approve

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 2016-01-12 19:58:53 +0000
3+++ CMakeLists.txt 2016-07-09 21:00:16 +0000
4@@ -104,7 +104,7 @@
5 target_link_libraries (pantheon-terminal ${M_LIB})
6
7 install (TARGETS pantheon-terminal RUNTIME DESTINATION bin)
8-install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/pantheon-terminal.desktop DESTINATION share/applications)
9+install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/org.pantheon.terminal.desktop DESTINATION share/applications)
10 install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/pantheon-terminal.appdata.xml DESTINATION share/appdata)
11 install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/open-pantheon-terminal-here.desktop DESTINATION share/applications)
12 install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/enable-zsh-completion-notifications DESTINATION share/pantheon-terminal)
13
14=== modified file 'data/enable-fish-completion-notifications'
15--- data/enable-fish-completion-notifications 2015-08-19 12:23:24 +0000
16+++ data/enable-fish-completion-notifications 2016-07-09 21:00:16 +0000
17@@ -9,7 +9,7 @@
18
19 function pantheon-terminal-process-completion-callback --on-event fish_postexec --description "Notify Pantheon Terminal about task completion"
20 if status --is-interactive; and set --query PANTHEON_TERMINAL_ID
21- dbus-send --type=method_call --session --dest=net.launchpad.pantheon-terminal /net/launchpad/pantheon_terminal org.pantheon.terminal.ProcessFinished string:$PANTHEON_TERMINAL_ID string:"$argv[1]";
22+ dbus-send --type=method_call --session --dest=org.pantheon.terminal /org/pantheon/terminal org.pantheon.terminal.ProcessFinished string:$PANTHEON_TERMINAL_ID string:"$argv[1]";
23 end
24 end
25
26
27=== modified file 'data/enable-zsh-completion-notifications'
28--- data/enable-zsh-completion-notifications 2015-08-19 12:23:24 +0000
29+++ data/enable-zsh-completion-notifications 2016-07-09 21:00:16 +0000
30@@ -14,8 +14,8 @@
31 dbus-send \
32 --type=method_call \
33 --session \
34- --dest=net.launchpad.pantheon-terminal \
35- /net/launchpad/pantheon_terminal \
36+ --dest=org.pantheon.terminal \
37+ /org/pantheon/terminal \
38 org.pantheon.terminal.ProcessFinished \
39 string:$PANTHEON_TERMINAL_ID \
40 string:"$(fc -ln -1)"
41@@ -37,8 +37,8 @@
42 dbus-send \
43 --type=method_call \
44 --session \
45- --dest=net.launchpad.pantheon-terminal \
46- /net/launchpad/pantheon_terminal \
47+ --dest=org.pantheon.terminal \
48+ /org/pantheon/terminal \
49 org.pantheon.terminal.ProcessFinished \
50 string:$PANTHEON_TERMINAL_ID \
51 string:"You should not have seen this, please report the incident to Pantheon Terminal developers."
52
53=== renamed file 'data/pantheon-terminal.desktop' => 'data/org.pantheon.terminal.desktop'
54=== modified file 'src/PantheonTerminal.vala'
55--- src/PantheonTerminal.vala 2016-01-16 04:15:52 +0000
56+++ src/PantheonTerminal.vala 2016-07-09 21:00:16 +0000
57@@ -47,8 +47,8 @@
58 exec_name = "pantheon-terminal";
59 app_years = "2011-2015";
60 app_icon = "utilities-terminal";
61- app_launcher = "pantheon-terminal.desktop";
62- application_id = "net.launchpad.pantheon-terminal";
63+ app_launcher = "org.pantheon.terminal.desktop";
64+ application_id = "org.pantheon.terminal";
65 main_url = "https://launchpad.net/pantheon-terminal";
66 bug_url = "https://bugs.launchpad.net/pantheon-terminal";
67 help_url = "https://elementary.io/help/terminal";
68@@ -105,7 +105,7 @@
69 base.dbus_register (connection, object_path);
70
71 var dbus = new DBus ();
72- connection.register_object ("/net/launchpad/pantheon_terminal", dbus);
73+ connection.register_object ("/org/pantheon/terminal", dbus);
74
75 dbus.finished_process.connect ((id, process) => {
76 foreach (var window in windows) {
77
78=== modified file 'src/TerminalWidget.vala'
79--- src/TerminalWidget.vala 2016-06-03 17:58:14 +0000
80+++ src/TerminalWidget.vala 2016-07-09 21:00:16 +0000
81@@ -56,7 +56,7 @@
82 public int default_size;
83 public double zoom_factor = 1.0;
84
85- const string SEND_PROCESS_FINISHED_BASH = "dbus-send --type=method_call --session --dest=net.launchpad.pantheon-terminal /net/launchpad/pantheon_terminal org.pantheon.terminal.ProcessFinished string:$PANTHEON_TERMINAL_ID string:\"$(history 1 | cut -c 8-)\" >/dev/null 2>&1; ";
86+ const string SEND_PROCESS_FINISHED_BASH = "dbus-send --type=method_call --session --dest=org.pantheon.terminal /org/pantheon/terminal org.pantheon.terminal.ProcessFinished string:$PANTHEON_TERMINAL_ID string:\"$(history 1 | cut -c 8-)\" >/dev/null 2>&1; ";
87
88 /* Following strings are used to build RegEx for matching URIs */
89 const string USERCHARS = "-[:alnum:]";

Subscribers

People subscribed via source and target branches