mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
..
This commit is contained in:
parent
f1613e8a30
commit
7ff78e6cdb
2 changed files with 3 additions and 3 deletions
|
|
@ -1,5 +1,5 @@
|
||||||
#[cfg(unix)]
|
#[cfg(unix)]
|
||||||
pub static USERS_CACHE: super::RoCell<uzers::UsersCache> = super::RoCell::new();
|
pub static USERS_CACHE: crate::RoCell<uzers::UsersCache> = crate::RoCell::new();
|
||||||
|
|
||||||
#[cfg(unix)]
|
#[cfg(unix)]
|
||||||
pub fn hostname() -> Result<String, std::io::Error> {
|
pub fn hostname() -> Result<String, std::io::Error> {
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
use std::{env, path::PathBuf};
|
use std::{env, path::PathBuf};
|
||||||
|
|
||||||
use crate::{fs::expand_path, USERS_CACHE};
|
use crate::fs::expand_path;
|
||||||
|
|
||||||
pub struct Xdg;
|
pub struct Xdg;
|
||||||
|
|
||||||
|
|
@ -48,7 +48,7 @@ impl Xdg {
|
||||||
#[cfg(unix)]
|
#[cfg(unix)]
|
||||||
let s = {
|
let s = {
|
||||||
use uzers::Users;
|
use uzers::Users;
|
||||||
format!("yazi-{}", USERS_CACHE.get_current_uid())
|
format!("yazi-{}", crate::USERS_CACHE.get_current_uid())
|
||||||
};
|
};
|
||||||
|
|
||||||
#[cfg(windows)]
|
#[cfg(windows)]
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue