From 9cee77ed8cec81353dba69ba8b5bc88479eb503b Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Tue, 4 Dec 2018 21:36:21 +0000 Subject: [PATCH] Add hardcoded fallback mountpoints for asset detection on Linux. --- .../Logic/Installation/InstallFromDiscLogic.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/OpenRA.Mods.Common/Widgets/Logic/Installation/InstallFromDiscLogic.cs b/OpenRA.Mods.Common/Widgets/Logic/Installation/InstallFromDiscLogic.cs index a54eb19501..1f81aa8760 100644 --- a/OpenRA.Mods.Common/Widgets/Logic/Installation/InstallFromDiscLogic.cs +++ b/OpenRA.Mods.Common/Widgets/Logic/Installation/InstallFromDiscLogic.cs @@ -118,6 +118,18 @@ namespace OpenRA.Mods.Common.Widgets.Logic .Where(IsValidDrive) .Select(v => v.RootDirectory.FullName); + if (Platform.CurrentPlatform == PlatformType.Linux) + { + // Outside of Gnome, most mounting tools on Linux don't set DriveType.CDRom + // so provide a fallback by allowing users to manually mount images on known paths + volumes = volumes.Concat(new[] + { + "/media/openra", + "/media/" + Environment.UserName + "/openra", + "/mnt/openra" + }); + } + foreach (var kv in sources) { message = "Searching for " + kv.Value.Title;