Skip to content

Commit

Permalink
Fixed a bug where get_user_home_dir() would not be found on Linux (Su…
Browse files Browse the repository at this point in the history
…tekhVRC#6)

* (fix) Resolved missing methods

+ Fixed a bug on Linux where get_user_home_dir() would not be resolved

* (tweak) Added platform config
  • Loading branch information
dfgHiatus authored Nov 16, 2023
1 parent d285798 commit 6c68b55
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/config.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#[cfg(target_os = "linux")]
use crate::vorutils::get_user_home_dir;
use crate::{
vorerr::VORAppError,
vorutils::{file_exists, path_exists}, pf::PacketFilter,
Expand Down
2 changes: 2 additions & 0 deletions src/ui.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#[cfg(target_os = "linux")]
use crate::vorutils::get_user_home_dir;
use crate::config::vor_root;
use crate::pf::PacketFilter;
use crate::routedbg::DebugPacket;
Expand Down

0 comments on commit 6c68b55

Please sign in to comment.