[GH-ISSUE #214] Autostart exec path ignoring Nix wrappers #99

Open
opened 2026-03-02 12:03:25 +03:00 by kerem · 2 comments
Owner

Originally created by @Cameo007 on GitHub (Sep 30, 2025).
Original GitHub issue: https://github.com/kavishdevar/librepods/issues/214

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

Originally created by @Cameo007 on GitHub (Sep 30, 2025). Original GitHub issue: https://github.com/kavishdevar/librepods/issues/214 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](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](https://github.com/NixOS/nixpkgs/pull/444137)
Author
Owner

@kavishdevar commented on GitHub (Oct 6, 2025):

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

<!-- gh-comment-id:3371451702 --> @kavishdevar commented on GitHub (Oct 6, 2025): Hey! Sorry- I am not quite into linux development. Could you have a look at #225 and see if that's the solution?
Author
Owner

@Cameo007 commented on GitHub (Oct 11, 2025):

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?

<!-- gh-comment-id:3393310409 --> @Cameo007 commented on GitHub (Oct 11, 2025): 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?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/librepods#99
No description provided.