Add the new snapd path (fix #226)

This commit is contained in:
Roey Darwish Dror
2019-09-10 22:59:08 +03:00
parent f88095b764
commit 1a852250ff

View File

@@ -344,7 +344,7 @@ pub fn run_snap(sudo: Option<&PathBuf>, run_type: RunType) -> Result<(), Error>
let sudo = require_option(sudo)?;
let snap = require("snap")?;
if !PathBuf::from("/var/snapd.socket").exists() {
if !PathBuf::from("/var/snapd.socket").exists() && !PathBuf::from("/run/snapd.socket").exists() {
Err(ErrorKind::SkipStep)?;
}
print_separator("snap");