Add ANBOX_NO_DESKTOP_SUBDIR env
This makes anbox place applications in the main application folder This is mostly a hack for ubuntu touch
This commit is contained in:
parent
4c6a7dc116
commit
e11afb46de
1 changed files with 2 additions and 0 deletions
|
|
@ -99,6 +99,8 @@ std::string anbox::SystemConfiguration::input_device_dir() const {
|
|||
|
||||
std::string anbox::SystemConfiguration::application_item_dir() const {
|
||||
static auto dir = xdg::data().home() / "applications" / "anbox";
|
||||
if (anbox::utils::get_env_value("ANBOX_NO_DESKTOP_SUBDIR").length() > 0)
|
||||
dir = xdg::data().home() / "applications";
|
||||
return dir.string();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue