Skip to content

Commit

Permalink
fix: use /etc/edition-tag instead of /etc/version-tag
Browse files Browse the repository at this point in the history
Signed-off-by: SoulHarsh007 <harsh.peshwani@outlook.com>
  • Loading branch information
SoulHarsh007 committed Oct 27, 2024
1 parent f28eca3 commit 3175d7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ static G_SAVE_JSON: Lazy<Mutex<serde_json::Value>> = Lazy::new(|| {
static mut G_HELLO_WINDOW: Option<Arc<HelloWindow>> = None;

fn version_compat_check(message: String) {
let version_tag = fs::read_to_string("/etc/version-tag").unwrap_or_else(|_| "desktop".to_string());
let version_tag = fs::read_to_string("/etc/edition-tag").unwrap_or_else(|_| "desktop".to_string());

if version_tag == "handheld" {
let handheld_profiles = chwd::profile::parse_profiles(&format!("{}/handhelds/profiles.toml", chwd::consts::CHWD_PCI_CONFIG_DIR)).unwrap();
Expand Down

0 comments on commit 3175d7f

Please sign in to comment.