diff --git a/src/anbox/cmds/launch.cpp b/src/anbox/cmds/launch.cpp index f373c61..69830aa 100644 --- a/src/anbox/cmds/launch.cpp +++ b/src/anbox/cmds/launch.cpp @@ -93,7 +93,7 @@ anbox::cmds::Launch::Launch() const auto snap_path = utils::get_env_value("SNAP"); if (!snap_path.empty()) { const auto resource_path = fs::path(snap_path) / "usr" / "share" / "anbox"; - SystemConfiguration::instance().set_resource_path(resource_path.string()); + SystemConfiguration::instance().set_resource_path(resource_path); } std::shared_ptr ss; diff --git a/src/anbox/config.h b/src/anbox/config.h index 47a518e..0fce571 100644 --- a/src/anbox/config.h +++ b/src/anbox/config.h @@ -31,7 +31,7 @@ class SystemConfiguration { virtual ~SystemConfiguration() = default; void set_data_path(const std::string &path); - void set_resource_path(const boost::filesystem &path); + void set_resource_path(const boost::filesystem::path &path); boost::filesystem::path data_dir() const; std::string rootfs_dir() const;