mirror of
https://github.com/pbek/QOwnNotes.git
synced 2025-06-28 21:09:52 +00:00
nix: add script to wrap Qt5 app
This commit is contained in:
parent
3ad08e6150
commit
5486aea1b3
1 changed files with 13 additions and 0 deletions
13
scripts/nix-wrap-run-qt5-app.sh
Executable file
13
scripts/nix-wrap-run-qt5-app.sh
Executable file
|
@ -0,0 +1,13 @@
|
|||
#!/usr/bin/env bash
|
||||
###
|
||||
# If the app is built in CLion it needs to be wrapped to not get the error:
|
||||
# > Warning: Could not find the Qt platform plugin "xcb"
|
||||
###
|
||||
|
||||
rm .QOwnNotes-wrapped* || true
|
||||
nix-shell -p libsForQt5.qt5.wrapQtAppsHook --run "wrapQtApp QOwnNotes"
|
||||
./QOwnNotes "$@"
|
||||
exit_status=$?
|
||||
rm ./QOwnNotes
|
||||
|
||||
exit $exit_status
|
Loading…
Add table
Add a link
Reference in a new issue