p-e-w / argos

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

Argos menus won't open on Ubuntu 20.04 - Is it a known issue? #120

Open iyuvalk opened 3 years ago

iyuvalk commented 3 years ago

I'm using this script (from the README):

#!/usr/bin/env bash

echo "top"
echo "---"

if [ "$ARGOS_MENU_OPEN" == "true" ]; then
  # http://stackoverflow.com/a/14853319
  TOP_OUTPUT=$(top -b -n 1 | head -n 20 | awk 1 ORS="\\\\n")
  echo "$TOP_OUTPUT | font=monospace bash=top"
else
  echo "Loading..."
fi

When I click the icon on the bar nothing happens. Is this normal?

plegrand1 commented 3 years ago

have you tried this version that seems to work with gnome 3.38? https://github.com/rammie/argos/tree/gnome-3.36

iyuvalk commented 3 years ago

@plegrand1, Thanks for the quick response!! I tried it now (removed argos, cloned it, copied it to ~/.local/share/gnome-shell/extensions/, restarted Gnome by Alt+F2 and clicked 'r' and enabled it again) and it didn't work too. ):

I ran journalctl /usr/bin/gnome-shell -f and this is what I found:

-- Logs begin at Fri 2020-07-17 03:00:18 IDT. --
Oct 16 13:06:33 yuvalk gnome-shell[2458]: JS ERROR: Error: Tried to construct an object without a GType; are you using GObject.registerClass() when inheriting from a GObject type?
                                          ArgosMenuItem@/home/yuval/.local/share/gnome-shell/extensions/argos@pew.worldwidemann.com/menuitem.js:25:5
                                          _processOutput@/home/yuval/.local/share/gnome-shell/extensions/argos@pew.worldwidemann.com/button.js:200:20
                                          wrapper@resource:///org/gnome/gjs/modules/script/_legacy.js:82:27
                                          _update/<@/home/yuval/.local/share/gnome-shell/extensions/argos@pew.worldwidemann.com/button.js:95:16
                                          spawnWithCallback/<@/home/yuval/.local/share/gnome-shell/extensions/argos@pew.worldwidemann.com/utilities.js:268:7
                                          readStream/<@/home/yuval/.local/share/gnome-shell/extensions/argos@pew.worldwidemann.com/utilities.js:280:7

I also looked at the "About" window and found out that my Gnome version is 3.36.3.

Do you have any other idea?

iyuvalk commented 3 years ago

Oh... That was silly.... I cloned it from the master and not from the branch and now it works perfectly (-:

Sorry for the trouble... <-:

Tnx, {-:

iyuvalk commented 3 years ago

Just one last thing... This version works well and the menus do open but for some reason I cannot set the text color... the background color works correctly though.

Is that normal?

plegrand1 commented 3 years ago

The answer is here : https://github.com/p-e-w/argos/issues/112

Le 17 octobre 2020 21:11:33 GMT+02:00, iyuvalk notifications@github.com a écrit :

Just one last thing... This version works and the menus do open but for some reason I cannot set the text color... the background color works correctly though.

Is that normal?

-- You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub: https://github.com/p-e-w/argos/issues/120#issuecomment-711066711