mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-04-01 10:01:07 +02:00
Co-authored-by: Benjamin Demetz <50681275+Benji377@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
d1858de7a0
commit
c68fbfcb2d
5
.changes/validate-appimage.md
Normal file
5
.changes/validate-appimage.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"tauri": patch:bug
|
||||
---
|
||||
|
||||
Fix the validation of `std::env::current_exe` warn the user if AppImage is not mounted instead of panicking
|
||||
@@ -37,6 +37,7 @@ memchr = "2"
|
||||
semver = "1"
|
||||
infer = "0.12"
|
||||
dunce = "1"
|
||||
log = "0.4.20"
|
||||
|
||||
[target."cfg(target_os = \"linux\")".dependencies]
|
||||
heck = "0.4"
|
||||
|
||||
@@ -13,6 +13,8 @@ use std::{
|
||||
use semver::Version;
|
||||
use serde::{Deserialize, Deserializer, Serialize, Serializer};
|
||||
|
||||
use log::warn;
|
||||
|
||||
pub mod assets;
|
||||
pub mod config;
|
||||
pub mod html;
|
||||
@@ -202,7 +204,7 @@ impl Default for Env {
|
||||
.unwrap_or(true);
|
||||
|
||||
if !is_temp {
|
||||
panic!("`APPDIR` or `APPIMAGE` environment variable found but this application was not detected as an AppImage; this might be a security issue.");
|
||||
warn!("`APPDIR` or `APPIMAGE` environment variable found but this application was not detected as an AppImage; this might be a security issue.");
|
||||
}
|
||||
}
|
||||
env
|
||||
|
||||
Reference in New Issue
Block a user