clairvoyant: Add hideUnsupportedVersionBanner option
Clairvoyant v3.1.3 introduced a non-dismissble banner stating that this version of the app is unsupported, which is shown when the app detects that it is not running as a Flatpak. This change adds the "hideUnsupportedVersionBanner" option, disabled by default, which makes it look like the app is running as a Flatpak.
This commit is contained in:
parent
e0905a878f
commit
4beb6898f8
1 changed files with 8 additions and 0 deletions
|
@ -8,6 +8,8 @@
|
|||
, stdenv
|
||||
, vala
|
||||
, wrapGAppsHook4
|
||||
# Clairvoyant shows a non-dismissable banner recommending the use of the Flatpak version
|
||||
, hideUnsupportedVersionBanner ? false
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
|
@ -34,6 +36,12 @@ stdenv.mkDerivation (finalAttrs: {
|
|||
libadwaita
|
||||
];
|
||||
|
||||
preFixup = lib.optionalString hideUnsupportedVersionBanner ''
|
||||
gappsWrapperArgs+=(
|
||||
--set container true
|
||||
)
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
changelog = "https://github.com/cassidyjames/clairvoyant/releases/tag/${finalAttrs.version}";
|
||||
description = "Ask questions and get psychic answers";
|
||||
|
|
Loading…
Reference in a new issue