Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getActivityInfo activityName parameter does not seem to work #2

Open
ericblade opened this issue Oct 3, 2018 · 4 comments
Open

getActivityInfo activityName parameter does not seem to work #2

ericblade opened this issue Oct 3, 2018 · 4 comments

Comments

@ericblade
Copy link

ericblade commented Oct 3, 2018

After creating an activity "testActivity" using configurator, I rebooted, and attempted to determine that the activity was in fact installed:

# luna-send -n 1 -f luna://com.webos.service.activitymanager/getManagerInfo '{}' | grep testActivity
                    "name": "testActivity"
# luna-send -n 1 -f luna://com.webos.service.activitymanager/getActivityInfo '{"activityName":"testActivity"}'
{
    "errorCode": 2,
    "returnValue": false,
    "errorText": "Activity name/creator pair not found"
}
# luna-send -n 1 -f luna://com.webos.service.activitymanager/getManagerInfo '{}' | grep testActivity
                    "name": "testActivity"
# 

The activity then ran a couple of minutes later.

@Tofee
Copy link

Tofee commented Jun 27, 2019

When using luna-send, you will also have to specify an application name with "-a". Indeed, getActivityInfo will also compare the "creator" of the LS2 message, whose name has to match the creator of the activity at the time of its registering.
This additional comparison is skipped if the LS2 message is sent anonymously - but I don't know how to achieve that concretely.

@ericblade
Copy link
Author

so you can't query if an activity exists unless you spoof, or are the creator?

@Tofee
Copy link

Tofee commented Jul 1, 2019

It seems so - it could be I missed something, too. Note that querying by activityId works well, if needed...
I guess they introduced the creator (and the kind, service or app) so that it's more unlikely to have name collision.

@ericblade
Copy link
Author

ok, well, i guess it's not a bug then necessarily, perhaps a documentation flaw

flowergom pushed a commit that referenced this issue Nov 18, 2019
:Release Notes:
This patch is adding the systemd service file

:Detailed Notes:
This patch installs systemd related files.
It includes systemd service file and script file, occasionally.
The files would be installed at /etc/systemd/system

Wiki page regarding decentralize systemd files:
https://wiki.lgsvl.com/display/webOSDocs/Decentralize+systemd+files

:Testing Performed:
Build ok, The files are installed at /etc/systemd/system

:QA Notes:

:Issues Addressed:
[PLAT-68059] Decentralize systemd units to each component #2

Change-Id: I50b7cd6a451500711b1685888dd31fc746fd1e24
Reviewed-on: http://gpro.lgsvl.com/225887
Reviewed-by: Eunmin Lim <[email protected]>
Reviewed-by: Sukil Hong <[email protected]>
Reviewed-by: Sangwoo Kang <[email protected]>
Tested-by: Sangwoo Kang <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants