Don't fail if Steam userdata can't be read
This commit is contained in:
@@ -437,7 +437,8 @@ std::vector<wivrn::steam::application> wivrn::steam::list_applications()
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Is it a good idea to just iterate over all users?
|
// Is it a good idea to just iterate over all users?
|
||||||
for (auto const & entry: std::filesystem::directory_iterator{root / "userdata"})
|
std::error_code ec;
|
||||||
|
for (auto const & entry: std::filesystem::directory_iterator{root / "userdata", ec})
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
read_steam_shortcuts(entry.path() / "config/shortcuts.vdf", res, shortcut_icons);
|
read_steam_shortcuts(entry.path() / "config/shortcuts.vdf", res, shortcut_icons);
|
||||||
|
|||||||
Reference in New Issue
Block a user