Add hardcoded fallback mountpoints for asset detection on Linux.
This commit is contained in:
committed by
Oliver Brakmann
parent
ee221f3e0d
commit
9cee77ed8c
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user