p-e-w / argos

Create GNOME Shell extensions in seconds
https://extensions.gnome.org/extension/1176/argos/
1.66k stars 112 forks source link

Cannot use JavaScript (with node) with Argos #133

Open dandarie opened 2 years ago

dandarie commented 2 years ago

I have two scrips that produce the same output:

✦ ↳ ./gmail.1m.sh
Test
---
✦ ↳ ./gmail.1m.js 
Test
---
✦ ↳ diff <(./gmail.1m.sh) <(./gmail.1m.js)
✦ ↳

The JavaScript file:


#!/usr/bin/env node

console.log('Test');
console.log('---');

The bash file:

#!/bin/bash

echo 'Test'
echo '---'

However, one works, one doesn't.

image

image

yavko commented 2 years ago

I have two scrips that produce the same output:

✦ ↳ ./gmail.1m.sh
Test
---
✦ ↳ ./gmail.1m.js 
Test
---
✦ ↳ diff <(./gmail.1m.sh) <(./gmail.1m.js)
✦ ↳

The JavaScript file:


#!/usr/bin/env node

console.log('Test');
console.log('---');

The bash file:

#!/bin/bash

echo 'Test'
echo '---'

However, one works, one doesn't.

image

image

I have the same issue, tho using process.stdout.write will probably fix

lanceschi commented 2 years ago

Hello, I confirm the same issue even using process.stdout.write instead of console.log