copyq: add option to disable XWayland
This commit is contained in:
parent
b7a7cd5dd1
commit
10e99c43cd
7 changed files with 70 additions and 1 deletions
|
|
@ -25,6 +25,13 @@ in {
|
|||
otherwise the service may never be started.
|
||||
'';
|
||||
};
|
||||
|
||||
forceXWayland = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = true;
|
||||
example = false;
|
||||
description = "Force the CopyQ to use the X backend on wayland";
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
|
|
@ -45,7 +52,7 @@ in {
|
|||
Service = {
|
||||
ExecStart = "${cfg.package}/bin/copyq";
|
||||
Restart = "on-failure";
|
||||
Environment = [ "QT_QPA_PLATFORM=xcb" ];
|
||||
Environment = lib.optional cfg.forceXWayland "QT_QPA_PLATFORM=xcb";
|
||||
};
|
||||
|
||||
Install = { WantedBy = [ cfg.systemdTarget ]; };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue