Try and fix gtk runtime
This commit is contained in:
parent
3fb7392aca
commit
a24962007b
2
.gitignore
vendored
2
.gitignore
vendored
@ -7,3 +7,5 @@ waycast_cache
|
||||
waycast.toml
|
||||
# Using locally to test .config, .cache, and data dir
|
||||
xdg
|
||||
# For when I have to test nix builds
|
||||
result
|
||||
|
@ -39,6 +39,7 @@
|
||||
nativeBuildInputs = with pkgs; [
|
||||
pkg-config
|
||||
makeWrapper
|
||||
wrapGAppsHook4
|
||||
];
|
||||
|
||||
buildInputs = with pkgs; [
|
||||
@ -56,10 +57,12 @@
|
||||
gtk4-layer-shell
|
||||
];
|
||||
|
||||
# Wrap binary to ensure icon themes are available
|
||||
postInstall = ''
|
||||
wrapProgram $out/bin/waycast \
|
||||
# wrapGAppsHook4 handles most GTK runtime setup automatically
|
||||
# Just ensure icon themes are available
|
||||
preFixup = ''
|
||||
gappsWrapperArgs+=(
|
||||
--prefix XDG_DATA_DIRS : "${pkgs.hicolor-icon-theme}/share:${pkgs.adwaita-icon-theme}/share"
|
||||
)
|
||||
'';
|
||||
|
||||
meta = with pkgs.lib; {
|
||||
|
Loading…
x
Reference in New Issue
Block a user