atareao / Touchpad-Indicator

An indicator for the touchpad
http://www.atareao.es
GNU General Public License v3.0
127 stars 22 forks source link

Tray icon will only showup if i run it twice #96

Open Kwaadpepper opened 6 months ago

Kwaadpepper commented 6 months ago

If i run it once it launches and work but tray icon wont show up, I have to run it again for the icon to show.

/usr/bin/python3 /usr/bin/touchpad-indicator

For icons to show up I use this https://github.com/ubuntu/gnome-shell-extension-appindicator

1rst start    ~  /usr/bin/python3 /usr/bin/touchpad-indicator  INT ✘  10:43:28  <gettext.GNUTranslations object at 0x79b66088eaa0> No LSB modules are available. ##################################################### Distributor: Pop Description: Pop!_OS 22.04 LTS Release: 22.04 Codename: jammy Architecture: x86_64 #####################################################

  Touchpad-Indicator version: 2.2.3-ubuntu20.04.0
  336 1
  [Device('/sys/devices/pci0000:00/0000:00:08.1/0000:04:00.3/usb1/1-1/1-1:1.2/0003:046D:C52B.0004/0003:046D:4008.0008/input/input26'), Device('/sys/devices/pci0000:00/0000:00:08.1/0000:04:00.3/usb1/1-1/1-1:1.2/0003:046D:C52B.0004/0003:046D:4008.0008/input/input26/event6'), Device('/sys/devices/pci0000:00/0000:00:08.1/0000:04:00.3/usb1/1-1/1-1:1.2/0003:046D:C52B.0004/0003:046D:4008.0008/input/input26/mouse2'), Device('/sys/devices/pci0000:00/0000:00:08.1/0000:04:00.3/usb1/1-1/1-1:1.2/0003:046D:C52B.0004/0003:046D:4072.0005/input/input27'), Device('/sys/devices/pci0000:00/0000:00:08.1/0000:04:00.3/usb1/1-1/1-1:1.2/0003:046D:C52B.0004/0003:046D:4072.0005/input/input27/event7'), Device('/sys/devices/pci0000:00/0000:00:08.1/0000:04:00.3/usb1/1-1/1-1:1.2/0003:046D:C52B.0004/0003:046D:4072.0005/input/input27/mouse5'), Device('/sys/devices/pci0000:00/0000:00:08.1/0000:04:00.3/usb1/1-1/1-1:1.2/0003:046D:C52B.0004/0003:046D:4072.0006/input/input28'), Device('/sys/devices/pci0000:00/0000:00:08.1/0000:04:00.3/usb1/1-1/1-1:1.2/0003:046D:C52B.0004/0003:046D:4072.0006/input/input28/event8'), Device('/sys/devices/pci0000:00/0000:00:08.1/0000:04:00.3/usb1/1-1/1-1:1.2/0003:046D:C52B.0004/0003:046D:4072.0006/input/input28/mouse3'), Device('/sys/devices/pci0000:00/0000:00:08.1/0000:04:00.3/usb1/1-1/1-1:1.2/0003:046D:C52B.0004/0003:046D:4072.0007/input/input29'), Device('/sys/devices/pci0000:00/0000:00:08.1/0000:04:00.3/usb1/1-1/1-1:1.2/0003:046D:C52B.0004/0003:046D:4072.0007/input/input29/event9'), Device('/sys/devices/pci0000:00/0000:00:08.1/0000:04:00.3/usb1/1-1/1-1:1.2/0003:046D:C52B.0004/0003:046D:4072.0007/input/input29/mouse4')]
  [Device('/sys/devices/pci0000:00/0000:00:08.1/0000:04:00.3/usb1/1-1/1-1:1.2/0003:046D:C52B.0004/0003:046D:4008.0008/input/input26'), Device('/sys/devices/pci0000:00/0000:00:08.1/0000:04:00.3/usb1/1-1/1-1:1.2/0003:046D:C52B.0004/0003:046D:4008.0008/input/input26/event6'), Device('/sys/devices/pci0000:00/0000:00:08.1/0000:04:00.3/usb1/1-1/1-1:1.2/0003:046D:C52B.0004/0003:046D:4008.0008/input/input26/mouse2'), Device('/sys/devices/pci0000:00/0000:00:08.1/0000:04:00.3/usb1/1-1/1-1:1.2/0003:046D:C52B.0004/0003:046D:4072.0005/input/input27'), Device('/sys/devices/pci0000:00/0000:00:08.1/0000:04:00.3/usb1/1-1/1-1:1.2/0003:046D:C52B.0004/0003:046D:4072.0005/input/input27/event7'), Device('/sys/devices/pci0000:00/0000:00:08.1/0000:04:00.3/usb1/1-1/1-1:1.2/0003:046D:C52B.0004/0003:046D:4072.0005/input/input27/mouse5'), Device('/sys/devices/pci0000:00/0000:00:08.1/0000:04:00.3/usb1/1-1/1-1:1.2/0003:046D:C52B.0004/0003:046D:4072.0006/input/input28'), Device('/sys/devices/pci0000:00/0000:00:08.1/0000:04:00.3/usb1/1-1/1-1:1.2/0003:046D:C52B.0004/0003:046D:4072.0006/input/input28/event8'), Device('/sys/devices/pci0000:00/0000:00:08.1/0000:04:00.3/usb1/1-1/1-1:1.2/0003:046D:C52B.0004/0003:046D:4072.0006/input/input28/mouse3'), Device('/sys/devices/pci0000:00/0000:00:08.1/0000:04:00.3/usb1/1-1/1-1:1.2/0003:046D:C52B.0004/0003:046D:4072.0007/input/input29'), Device('/sys/devices/pci0000:00/0000:00:08.1/0000:04:00.3/usb1/1-1/1-1:1.2/0003:046D:C52B.0004/0003:046D:4072.0007/input/input29/event9'), Device('/sys/devices/pci0000:00/0000:00:08.1/0000:04:00.3/usb1/1-1/1-1:1.2/0003:046D:C52B.0004/0003:046D:4072.0007/input/input29/mouse4')]
  ==== start set_touch_enabled =====
  set_touch_enabled: False
  are_all_touchpad_enabled:  True
  ==?==
  ==?== 1
  ==?== 2
  [Device('/sys/devices/pci0000:00/0000:00:08.1/0000:04:00.3/usb1/1-1/1-1:1.2/0003:046D:C52B.0004/0003:046D:4008.0008/input/input26'), Device('/sys/devices/pci0000:00/0000:00:08.1/0000:04:00.3/usb1/1-1/1-1:1.2/0003:046D:C52B.0004/0003:046D:4008.0008/input/input26/event6'), Device('/sys/devices/pci0000:00/0000:00:08.1/0000:04:00.3/usb1/1-1/1-1:1.2/0003:046D:C52B.0004/0003:046D:4008.0008/input/input26/mouse2'), Device('/sys/devices/pci0000:00/0000:00:08.1/0000:04:00.3/usb1/1-1/1-1:1.2/0003:046D:C52B.0004/0003:046D:4072.0005/input/input27'), Device('/sys/devices/pci0000:00/0000:00:08.1/0000:04:00.3/usb1/1-1/1-1:1.2/0003:046D:C52B.0004/0003:046D:4072.0005/input/input27/event7'), Device('/sys/devices/pci0000:00/0000:00:08.1/0000:04:00.3/usb1/1-1/1-1:1.2/0003:046D:C52B.0004/0003:046D:4072.0005/input/input27/mouse5'), Device('/sys/devices/pci0000:00/0000:00:08.1/0000:04:00.3/usb1/1-1/1-1:1.2/0003:046D:C52B.0004/0003:046D:4072.0006/input/input28'), Device('/sys/devices/pci0000:00/0000:00:08.1/0000:04:00.3/usb1/1-1/1-1:1.2/0003:046D:C52B.0004/0003:046D:4072.0006/input/input28/event8'), Device('/sys/devices/pci0000:00/0000:00:08.1/0000:04:00.3/usb1/1-1/1-1:1.2/0003:046D:C52B.0004/0003:046D:4072.0006/input/input28/mouse3'), Device('/sys/devices/pci0000:00/0000:00:08.1/0000:04:00.3/usb1/1-1/1-1:1.2/0003:046D:C52B.0004/0003:046D:4072.0007/input/input29'), Device('/sys/devices/pci0000:00/0000:00:08.1/0000:04:00.3/usb1/1-1/1-1:1.2/0003:046D:C52B.0004/0003:046D:4072.0007/input/input29/event9'), Device('/sys/devices/pci0000:00/0000:00:08.1/0000:04:00.3/usb1/1-1/1-1:1.2/0003:046D:C52B.0004/0003:046D:4072.0007/input/input29/mouse4')]
  === 1 ===
  ==== start set_touch_enabled =====
  set_touch_enabled: False
  are_all_touchpad_enabled:  False
  0.799830436706543
  0.7998275756835938
  0.0784149169921875
  0.7998359203338623
  0.46688079833984375
  0.799870491027832
  0.7903194427490234
  0.7990860939025879

2nd start    ~  /usr/bin/python3 /usr/bin/touchpad-indicator  ✔  10:44:41  <gettext.GNUTranslations object at 0x789f0295eaa0> Another instance of Touchpad-Indicator is working