flydigictl icon indicating copy to clipboard operation
flydigictl copied to clipboard

Adapt to Arch Linux

Open SadmL opened this issue 1 year ago • 7 comments

/etc/dbus-1/system.d is depricated. I dunno what that means to devs, because I'm not a programmer. I've created folders manually, but .service doesn't work for Arch.

The unit files have no installation config (WantedBy=, RequiredBy=, UpheldBy=, Also=, or Alias= settings in the [Install] section, and DefaultInstance= for template units). This means they are not meant to be enabled or disabled using systemctl.

Possible reasons for having these kinds of units are: • A unit may be statically enabled by being symlinked from another unit's .wants/, .requires/, or .upholds/ directory. • A unit's purpose may be to act as a helper for some other unit which has a requirement dependency on it. • A unit may be started when needed via activation (socket, path, timer, D-Bus, udev, scripted systemctl call, ...). • In case of template units, the unit is meant to be enabled with some instance name specified.

https://man.archlinux.org/man/dbus-daemon.1.en

The standard system bus normally also reads XML files from /etc/dbus-1/system.d, which should be used by system administrators if they wish to override default policies.

Third-party packages would historically install XML files into /etc/dbus-1/system.d, but this practice is now considered to be deprecated: that directory should be treated as reserved for the system administrator.

Cool if there is will AUR package in future.

SadmL avatar Jun 29 '24 14:06 SadmL

you can put the generated file into /usr/share/dbus-1/system.d/ and name it anything for it to be loaded. the daemon loads after that.

winghugs avatar Feb 28 '25 05:02 winghugs

In a similar vein, running sudo make install doesn't seem to detect that the dbus-1 folder for Arch Linux and derivatives is located in /usr/share and not in /etc:

$ sudo make install
go build -ldflags "-X 'github.com/pipe01/flydigictl/pkg/version.Version=0.0.1-dcc92da'" ./cmd/flydigid
go: downloading github.com/rs/zerolog v1.31.0
go: downloading github.com/godbus/dbus/v5 v5.1.0
go: downloading github.com/gookit/goutil v0.6.15
go: downloading google.golang.org/protobuf v1.32.0
go: downloading golang.org/x/image v0.15.0
go: downloading github.com/google/gousb v1.1.2
go: downloading pault.ag/go/modprobe v0.1.2
go: downloading github.com/karalabe/usb v0.0.2
go: downloading golang.org/x/text v0.14.0
go: downloading golang.org/x/sys v0.15.0
go: downloading pault.ag/go/topsort v0.0.0-20160530003732-f98d2ad46e1a
go: downloading github.com/mattn/go-colorable v0.1.13
go: downloading github.com/mattn/go-isatty v0.0.19
go: downloading github.com/gookit/color v1.5.4
go: downloading github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e
go build -ldflags "-X 'github.com/pipe01/flydigictl/pkg/version.Version=0.0.1-dcc92da'" ./cmd/flydigictl
go: downloading github.com/spf13/cobra v1.8.0
go: downloading github.com/spf13/pflag v1.0.5
mv flydigid flydigictl /usr/bin
cp ./etc/flydigid.conf /etc/dbus-1/system.d
cp: cannot create regular file '/etc/dbus-1/system.d': No such file or directory
make: *** [Makefile:53: install] Error 1

csolisr avatar Jul 31 '25 15:07 csolisr

hello is this repo being manteined? i'll create a fork if it's not the case

VPradoB avatar Sep 06 '25 14:09 VPradoB

It's not being actively maintained but I'm happy to accept any pull requests

pipe01 avatar Sep 06 '25 15:09 pipe01

hello is this repo being manteined? i'll create a fork if it's not the case

steam has flydigi drivers built in. you’ll need to add this udev rule but otherwise it works with steam input as long as you’re using it dongle or wired in dinput mode

#Flydigi 2.4 GHz / Wired KERNEL=="hidraw*", ATTRS{idVendor}=="04b4", MODE="0660", TAG+="uaccess"

winghugs avatar Sep 06 '25 17:09 winghugs

@winghugs but can i configure the rumble, buttons, the leds and that kind of stuff?

VPradoB avatar Sep 06 '25 20:09 VPradoB

you can use the vader 3 pro. with bluetooth over bluez and xpadneo. i'm currently using it like that

VPradoB avatar Sep 06 '25 20:09 VPradoB