mate-desktop / mate-applets

Applets for use with the MATE panel
http://www.mate-desktop.org
GNU General Public License v2.0
79 stars 67 forks source link

Command applet fails if command has pipes #309

Open yeawellwhatever opened 6 years ago

yeawellwhatever commented 6 years ago

Expected behaviour

Output the load average

Actual behaviour

only # was outputted

Steps to reproduce the behaviour

Tried stuff like quotes and backticks, but doesnt work. Quoting in bash -c does work tho.

MATE general version

1.20.0

Package version

1.20.0-1

Linux Distribution

Arch

Link to downstream report of your Distribution

marosg42 commented 6 years ago

I can confirm the same on Ubuntu.

I can have a look at the code in the evening unless somebody knows immediately what is the problem and has a solution.

marosg42 commented 6 years ago

Here is a working workaround

bash -c "cat /proc/loadavg | cut -d ' ' -f 1"

alexarnaud commented 6 years ago

Le 16/02/2018 à 09:36, marosg42 a écrit :

I can confirm the same on Ubuntu.

I can have a look at the code in the evening unless somebody knows immediately what is the problem and has a solution.

Is it a regression appears on 1.20 or an enhancement request? On 1.8 for me it fails to work.

Best regards. -- Alex ARNAUD Visual-Impairment Project Manager Hypra - "Humanizing technology"

marosg42 commented 6 years ago

@yeawellwhatever did it work before?

yeawellwhatever commented 6 years ago

No clue really. Pretty new to mate and the last time i used Gnome 2 was years ago.

If it had never worked before i suppose it should fall under enhancement request then? Although quotinh everything in bash -c does work perfectly.

On Sunday, February 18, 2018, 03:49, marosg42 notifications@github.com wrote:

@yeawellwhatever did it work before?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.