Skip to content

Commit

Permalink
use luna-send-pub when the service is not elevated
Browse files Browse the repository at this point in the history
  • Loading branch information
mariotaku committed Nov 16, 2024
1 parent ff9f85f commit c6b16de
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 c6b16de

Please sign in to comment.