Closed richese closed 8 years ago
That looks like you don't have any profiles available, not even default ones.
Can you, please, post output of:
ls ~/.config/scc/profiles/
ls /usr/share/scc/default_profiles/
?
edit: also,
pacman -Ql sc-controller sc-controller-git | grep default
may be helpful.
Here are the outputs:
$ ls ~/.config/scc/profiles/
'Euro Truck Simulator 2.sccprofile'
$ ls /usr/share/scc/default_profiles/
Desktop.sccprofile 'XBox Controller.sccprofile' 'XBox Controller with High Precision Camera.sccprofile'
$ pacman -Ql sc-controller | grep default
sc-controller /usr/share/scc/default_menus/
sc-controller /usr/share/scc/default_menus/.autoswitch.menu
sc-controller /usr/share/scc/default_menus/Default.menu
sc-controller /usr/share/scc/default_menus/Profiles.menu
sc-controller /usr/share/scc/default_profiles/
sc-controller /usr/share/scc/default_profiles/.scc-osd.keyboard.sccprofile
sc-controller /usr/share/scc/default_profiles/Desktop.sccprofile
sc-controller /usr/share/scc/default_profiles/XBox Controller with High Precision Camera.sccprofile
sc-controller /usr/share/scc/default_profiles/XBox Controller.sccprofile
They are definitely there. The paths also seem to be correct:
In [1]: from scc.paths import *
In [4]: get_default_menus_path()
Out[4]: '/usr/share/scc/default_menus'
In [5]: get_default_profiles_path()
Out[5]: '/usr/share/scc/default_profiles'
In [7]: get_menus_path()
Out[7]: '/home/luck/.config/scc/menus'
In [8]: get_pid_file()
Out[8]: '/home/luck/.config/scc/daemon.pid'
In [9]: get_profiles_path()
Out[9]: '/home/luck/.config/scc/profiles'
In [10]: get_share_path()
Out[10]: '/usr/share/scc/'
That's weird, why else would FileInfo.get_name() return None...
I can simply add check there, but before that, can you tell me what version of GTK and GLib are you using? Either from pacman or by running
from gi.repository import GLib, Gtk
print GLib.glib_version
print Gtk.get_major_version(), Gtk.get_minor_version(), Gtk.get_micro_version()
in python.
I use default packages from Arch linux repos. GLib version: (2, 48, 0) Gtk3 version: (3, 20, 6)
Also it looks like python2-gobject is marked as out of date in repo right now.
Ok, so good news are that you have same versions as me, bad news are that nothing explains that None returned instead of filename.
Anyway, are you able to test latest version from git?
Yes, I can test it. Tried it and the only thing that changed was that the menu now shows New profile option. Stil the same exceptions though.
When I start daemon manually the OSD menu shows all profiles and can also switch between them.
A screencap to ilustrate: link
That's because OSD loads profile list synchronously instead of using GLib. I can add same method as fallback when GLib fails.
One more question, what DE / window manager are you using? I can't exclude possibility that GLib stuff breaks on non-gnome like environment :(
Btw, "Vymazať"? Narazil som na krajana?
Confirming that aa315aa fixed this. I get the warning once but it works. Thanks for the quick fix.
One more question, what DE / window manager are you using?
WM is i3wm.
I can't exclude possibility that GLib stuff breaks on non-gnome like environment :(
Can't deny that. The only 'gnome' application I use is Evince so I probably just have it's dependencies installed + gtk2/3 stuff.
Btw, "Vymazať"? Narazil som na krajana?
Vyzerá to, že hej. Ale mi dobrú chvíľu trvalo, kým som zistil odkiaľ sa to 'Vymazať' zobralo :smile:.
Hello, I tried to use this driver but I get some errors in the Gui and I can't save or select profiles. The daemon seems to be working when it's started manually with a profile.
I am using Arch Linux. The result is the same whether I use the AUR package (0.2.9.1) or run it directly from git repo.
Gui startup:
The TypeError happens every time the Gui is started.
Here is what happens when I press the OK button when configuring any button:
And when I press the save profile button:
Screenshot of the Gui: