chromium,chromedriver: 129.0.6668.91 -> 129.0.6668.100
[NixPkgs.git] / pkgs / by-name / ve / veloren / fix-assets-path.patch
blob8973c74b8cd4eb47f3e4d7f3739f2b139dc9ad8b
1 commit 3048885aa749774b5677ab8df8f1a3eeff125d7a
2 Author: rnhmjoj <rnhmjoj@inventati.org>
3 Date: Tue Aug 6 08:36:38 2024 +0200
5 Fix assets path on NixOS
7 diff --git a/common/assets/src/lib.rs b/common/assets/src/lib.rs
8 index 03746dc4..c69d607b 100644
9 --- a/common/assets/src/lib.rs
10 +++ b/common/assets/src/lib.rs
11 @@ -400,6 +400,13 @@ lazy_static! {
15 + // 5. NixOS path
16 + if let Some(executable) = std::env::args().nth(0).map(PathBuf::from) {
17 + if let Some(package) = executable.ancestors().nth(2) {
18 + paths.push(package.join("share/veloren"));
19 + }
20 + }
22 tracing::trace!("Possible asset locations paths={:?}", paths);
24 for mut path in paths.clone() {