librepods icon indicating copy to clipboard operation
librepods copied to clipboard

Autostart exec path ignoring Nix wrappers

Open Cameo007 opened this issue 2 months ago • 2 comments

Hi, first I want to thank you for this amazing program! There are a lot of nice features already working and I am really happy to be able to control my AirPods on Linux.

I am currently packing librepods for Nixpkgs and noticed that the autostart path is not set correctly here. Nix is of course a bit special but maybe there is a better way to obtain the application path than

QString appPath = QCoreApplication::applicationFilePath();

https://github.com/kavishdevar/librepods/blob/main/linux/autostartmanager.hpp#L58

Using the path stated in the .desktop file leads to this error:

QQmlApplicationEngine failed to load component
qrc:/linux/Main.qml:4:1: module "QtQuick.Controls" is not installed

The problem is that Nix has wrappers around programs (like for runtime libraries or a qt wrapper). I patched it more or less in the package (it works technically; only the white title bar is missing) but I think if there is a way to fix it upstream that'd be better.

https://github.com/NixOS/nixpkgs/pull/444137

Cameo007 avatar Sep 30 '25 21:09 Cameo007

Hey! Sorry- I am not quite into linux development. Could you have a look at #225 and see if that's the solution?

kavishdevar avatar Oct 06 '25 12:10 kavishdevar

During build I see this erorr message

Detected locale "C" with character encoding "ANSI_X3.4-1968", which is not UTF-8.
Qt depends on a UTF-8 locale, and has switched to "C.UTF-8" instead.
If this causes problems, reconfigure your locale. See the locale(1) manual
for more information.

Could this maybe interfere somehwere?

Cameo007 avatar Oct 11 '25 13:10 Cameo007