scripts icon indicating copy to clipboard operation
scripts copied to clipboard

[windicate.py] Not working on Ubuntu 14.04 / weechat 0.4.3

Open abevoelker opened this issue 11 years ago • 3 comments

If I put this script in ~/.weechat/python/autoload, I get an error message on startup that it can't determine the weechat FIFO:

Weechat variable fifo_filename is not set.  Is the fifo plugin enabled?

However, the FIFO plugin does seem to be loading as I always have a FIFO file at ~/.weechat/weechat_fifo_$PID when running weechat, and in ~/.weechat/plugins.conf I have fifo.fifo = "on".

If I move the plugin to ~/.weechat/python/ and load it manually after starting weechat with /python load windicate.py, I do not get any error messages. So I don't know if there's a race condition with the fifo_filename info being available for autoloaded scripts or what is going on there exactly.

Anyway, in either script loading scenario, the script does not work - I get no indicator in the menu bar when someone mentions me or private messages me.

I'm on Ubuntu 14.04 and weechat 0.4.3:

WeeChat 0.4.3 [compiled on Feb  9 2014 16:02:50]
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 14.04 LTS
Release:        14.04
Codename:       trusty
$ uname -a
Linux avoelke-desktop 3.13.0-30-generic #54-Ubuntu SMP Mon Jun 9 22:45:01 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

I also have the three packages listed as requirements already installed:

$ sudo apt-get install python-indicate python-dbus wmctrl
Reading package lists... Done
Building dependency tree       
Reading state information... Done
python-dbus is already the newest version.
python-indicate is already the newest version.
wmctrl is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

This script used to work when I was on Ubuntu 12.04 and using an older version of weechat, however I don't know if it's the Ubuntu 14.04 or weechat upgrade that is causing issues.

/cc @LeonB @solidgoldbomb

abevoelker avatar Jun 13 '14 14:06 abevoelker

Have you tried /script install windicate.py? It should automaticall put scripts to correct places.

I don't have any other suggestios.

Mikaela avatar Jun 13 '14 16:06 Mikaela

Just ran it, got this output:

11:50:16     | script: downloading list of scripts...
11:50:18     | script: 279 scripts for WeeChat 0.4.3
11:50:18     | script: script "windicate.py" is already installed and up-to-date

Unfortunately didn't fix anything. Thanks though, I wasn't aware of that command - should come in handy in the future.

abevoelker avatar Jun 13 '14 16:06 abevoelker

Try uninstalling and re-installing the script.

HelixSpiral avatar Jun 18 '14 17:06 HelixSpiral