Adjust indentation of launcher storage
This commit is contained in:
parent
b7937afc3c
commit
f9d95172c4
1 changed files with 11 additions and 11 deletions
|
|
@ -71,18 +71,18 @@ void LauncherStorage::add(const Item &item) {
|
||||||
exec +=
|
exec +=
|
||||||
utils::string_format("--component=%s ", item.launch_intent.component);
|
utils::string_format("--component=%s ", item.launch_intent.component);
|
||||||
|
|
||||||
std::ofstream f(item_path.string());
|
std::ofstream desktop_item(item_path.string());
|
||||||
f << "[Desktop Entry]" << std::endl
|
desktop_item << "[Desktop Entry]" << std::endl
|
||||||
<< "Name=" << item.package << std::endl
|
<< "Name=" << item.package << std::endl
|
||||||
<< "Exec=" << exec << std::endl
|
<< "Exec=" << exec << std::endl
|
||||||
<< "Terminal=false" << std::endl
|
<< "Terminal=false" << std::endl
|
||||||
<< "Type=Application" << std::endl
|
<< "Type=Application" << std::endl
|
||||||
<< "Icon=" << item_icon_path.string() << std::endl;
|
<< "Icon=" << item_icon_path.string() << std::endl;
|
||||||
f.close();
|
desktop_item.close();
|
||||||
|
|
||||||
f = std::ofstream(item_icon_path.string());
|
std::ofstream icon(item_icon_path.string());
|
||||||
f.write(item.icon.data(), item.icon.size());
|
icon.write(item.icon.data(), item.icon.size());
|
||||||
f.close();
|
icon.close();
|
||||||
}
|
}
|
||||||
} // namespace application
|
} // namespace application
|
||||||
} // namespace anbox
|
} // namespace anbox
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue