fluxgui icon indicating copy to clipboard operation
fluxgui copied to clipboard

cant run properly by manual intstall on kali linux

Open jklouz opened this issue 1 year ago • 10 comments

i have manual installing on kali linux:

sudo apt-get install python3-pexpect python3-distutils gir1.2-ayatanaappindicator3-0.1 gir1.2-gtk-3.0 redshift

cd /tmp

git clone "https://github.com/xflux-gui/fluxgui.git"

cd fluxgui

./download-xflux.py

sudo ./setup.py install --record installed.txt

fluxgui

OUTPUT: Failed to import plain appindicator ...

(fluxgui:29764): GLib-GIO-ERROR **: 09:25:22.534: Settings schema 'apps.fluxgui' is not installed zsh: trace trap fluxgui

then try run: xargs sudo chmod -R a+rX < installed.txt

glib-compile-schemas .

GSETTINGS_SCHEMA_DIR=. fluxgui

OUTPUT: the screen color changed, and the apps opened with the icon in top rigth panel but when i closed the terminal the icon and app closed, the color still remain

when re run : fluxgui again its results same errors

how to solve this, to be installed properly

jklouz avatar Jul 10 '23 13:07 jklouz

OUTPUT: the screen color changed, and the apps opened with the icon in top rigth panel but when i closed the terminal the icon and app closed, the color still remain

are you saying that everything worked correctly until you closed the terminal? if yes, then it sounds like closing the terminal closed fluxgui. if that's what happened, then try running fluxgui in the background, e.g.

GSETTINGS_SCHEMA_DIR=. fluxgui&

in bash, or with &! at the end in zsh. then you should be able to close the terminal without closing fluxgui.

ntc2 avatar Jul 15 '23 00:07 ntc2

my main concern is this OUTPUT: Failed to import plain appindicator ...

(fluxgui:29764): GLib-GIO-ERROR **: 09:25:22.534: Settings schema 'apps.fluxgui' is not installed zsh: trace trap fluxgui

its not working on my kali, its any else dependencies required?

jklouz avatar Jul 16 '23 22:07 jklouz

my main concern is this OUTPUT: Failed to import plain appindicator ...

That was a buggy error messages -- there was no actual problem with the import -- I just fixed it here: https://github.com/xflux-gui/fluxgui/commit/a21f55fc61f596cfc74e22bef3aaa3ad761f8393

ntc2 avatar Jul 18 '23 20:07 ntc2

after changed fluxapp.py, results: Failed to import plain appindicator ... Failed to import an appindicator implementation, dying ...

retry with: ./setup.py install --record installed.txt and ./setup.py install --user --record installed.txt, results: warnings.warn( warning: no files found matching 'COPYING' warning: no files found matching 'MANIFEST' warning: no files found matching 'README' warning: no files found matching '.desktop' under directory '.svg' warning: no files found matching '.glade' under directory '.py' zip_safe flag not set; analyzing archive contents... fluxgui.pycache.fluxapp.cpython-311: module references file

all depedencies already satisfied

jklouz avatar Jul 27 '23 09:07 jklouz

after changed fluxapp.py, results: Failed to import plain appindicator ... Failed to import an appindicator implementation, dying ...

Sounds like you're missing dependencies. Here's the code that generates those error messages:

https://github.com/xflux-gui/fluxgui/blob/91ef659911e94c47d9e17480b8b1855d778b536b/src/fluxgui/fluxapp.py#L13C1-L29C20

You could try running that code by itself in a Python repl and confirm you get the same error. I.e. run this code in a Python repl:

import gi
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk as gtk
try:
    gi.require_version('AyatanaAppIndicator3', '0.1')
    from gi.repository import AyatanaAppIndicator3 as appindicator
except:
    print('Failed to import Ayatana appindicator, falling back to plain appindicator ...')
    try:
        gi.require_version('AppIndicator3', '0.1')
        from gi.repository import AppIndicator3 as appindicator
    except:
        print('Failed to import plain appindicator ...')
        print('Failed to import an appindicator implementation, dying ...')

ntc2 avatar Jul 28 '23 19:07 ntc2

Same issue here :(

richdear avatar Mar 03 '24 21:03 richdear