Skip to content

Commit

Permalink
Merge pull request #200 from webosbrew/fix/execbus-luna-send-pub
Browse files Browse the repository at this point in the history
Use luna-send-pub When The Service is Not Elevated
  • Loading branch information
throwaway96 authored Nov 16, 2024
2 parents ff9f85f + c6b16de commit 3bff7ea
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions services/webos-service-remote/execbus.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,11 @@ export default class Handle {
*/
// eslint-disable-next-line class-methods-use-this
async call(uri, payload) {
const stdout = await asyncExecFile('luna-send', [
const command = this.usePublic ? 'luna-send-pub' : 'luna-send';
const stdout = await asyncExecFile(command, [
// FIXME: Dirty hack... We likely want to accept appid in constructor
'-a',
payload.sourceId ? payload.sourceId : 'webosbrew',
/* using -a with luna-send-pub causes an error */
...(this.usePublic ? [] : ['-a', payload.sourceId ? payload.sourceId : 'webosbrew']),
'-n',
'1',
uri,
Expand Down

0 comments on commit 3bff7ea

Please sign in to comment.