Package Details: fusion-icon 1:0.2.3-2

Git Clone URL: https://aur.archlinux.org/fusion-icon.git (read-only)
Package Base: fusion-icon
Description: Simple tray icon for Compiz 0.8
Upstream URL: http://www.compiz.org/
Licenses: GPL
Conflicts: fusion-icon0.9
Submitter: Barthalion
Maintainer: ShadowKyogre
Last Packager: ShadowKyogre
Votes: 49
Popularity: 0.259205
First Submitted: 2013-07-11 10:41
Last Updated: 2017-05-09 19:32

Latest Comments

raulicci commented on 2017-07-09 01:34

I have the follow error:
fusion-icon -i qt
* Detected Session: xfce
* Searching for installed applications...
Traceback (most recent call last):
File "/usr/bin/fusion-icon", line 59, in <module>
from FusionIcon.interface import choose_interface
File "/usr/lib/python3.6/site-packages/FusionIcon/interface.py", line 22, in <module>
from FusionIcon.util import env
File "/usr/lib/python3.6/site-packages/FusionIcon/util.py", line 428, in <module>
decorators = CompizDecorators(_installed)
File "/usr/lib/python3.6/site-packages/FusionIcon/util.py", line 247, in __init__
self.default = self.keys()[0]
TypeError: 'dict_keys' object does not support indexing

microdou commented on 2017-04-26 15:08

@spsf64 @ShadowKyogre
The following script does the trick for me. If compiz 0.9 is installed, it uses "python2" for build() and package(). Otherwise, use "python" instead.
I'm not familiar with all functions of PKGBUILD, so there can be better way to do it.
------
build() {
COMPIZ_INFO=$(pacman -Q compiz)
COMPIZ_NAME_VERSION=${COMPIZ_INFO:0:10}
if [ "$COMPIZ_NAME_VERSION" == "compiz 0.9" ]; then
PYTHON="python2"
else
PYTHON="python"
fi

cd "${srcdir}/${pkgname}-${pkgver}"
$PYTHON setup.py build
}

package() {
COMPIZ_INFO=$(pacman -Q compiz)
COMPIZ_NAME_VERSION=${COMPIZ_INFO:0:10}
if [ "$COMPIZ_NAME_VERSION" == "compiz 0.9" ]; then
PYTHON="python2"
else
PYTHON="python"
fi

cd "${srcdir}/${pkgname}-${pkgver}"
$PYTHON setup.py install --root="$pkgdir" --optimize=1
}
------

spsf64 commented on 2017-04-25 17:42

@ShadowKyogre: working fine with 0.9 changing PKGBUILD as per instructions!
Is there any possibility to PKGBUILD check what version of compiz is installed and build automatically for 0.8 or 0.9?
TIA

ShadowKyogre commented on 2017-04-25 16:52

@imran27: I left some comments on the PKGBUILD mentioning what to do in the case of Compiz 0.9.x.

https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=fusion-icon#n31

imran27 commented on 2017-04-25 06:31

@ShadowKyogre
Problem still persists.

Using python2 setup.py build instead python solves the problem

ShadowKyogre commented on 2017-04-24 21:59

@microdou, imran27: I've updated the PKGBUILD to call the setup.py file directly. It works for both Compiz 0.9.x and Compiz 0.8.x since all the Makefile is doing is calling the setup.py file.

I'll do this for the -git PKGBUILD too.

microdou commented on 2017-04-24 21:18

@ShadowKyogre: I got the same problem as @imran27 with Compiz 0.9 and Fusion-icon 0.2.3.

Following modification to PKGBUILD solved my problem. (I don't know if it will work with Compiz 0.8)
Change the prepare() and package() portions to:

build() {
cd "${srcdir}/${pkgname}-${pkgver}"
python2 setup.py build
}

package() {
cd "${srcdir}/${pkgname}-${pkgver}"
python2 setup.py install --root="$pkgdir" --optimize=1
}

ShadowKyogre commented on 2017-04-24 16:59

@imran27: Had a look at the Compiz 0.9 packages in the AUR. It looks like that they use python2, while the Compiz 0.8 packages use python3 primarily.

How would you suggest fixing this?

imran27 commented on 2017-04-24 12:34

With compiz 0.9.13.1-1, when I launch fusion-icon, I get this error
Traceback (most recent call last):
File "/usr/bin/fusion-icon", line 59, in <module>
from FusionIcon.interface import choose_interface
File "/usr/lib/python3.6/site-packages/FusionIcon/interface.py", line 22, in <module>
from FusionIcon.util import env
File "/usr/lib/python3.6/site-packages/FusionIcon/util.py", line 22, in <module>
import os, compizconfig, time
ModuleNotFoundError: No module named 'compizconfig'

ShadowKyogre commented on 2016-04-04 15:50

@balwierz: Install libappindicator-gtk3 also as mentioned in the optional depedendencies. There's currently no way to group optional depdendencies atm into what they're needed for except for description.

All comments