mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2025-03-14 21:40:18 +00:00
linux: Add exclusion for RegisterMimeTypes for flathub builds
This commit is contained in:
parent
234fae4e28
commit
6fc1e21931
2 changed files with 10 additions and 0 deletions
|
@ -38,6 +38,11 @@ namespace Ryujinx.Ava
|
|||
[SupportedOSPlatform("linux")]
|
||||
static void RegisterMimeTypes()
|
||||
{
|
||||
if (ReleaseInformations.IsFlatHubBuild())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (!File.Exists(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".local", "share", "mime", "packages", "Ryujinx.xml")))
|
||||
{
|
||||
string mimeTypesFile = Path.Combine(ReleaseInformations.GetBaseApplicationDirectory(), "mime", "Ryujinx.xml");
|
||||
|
|
|
@ -77,6 +77,11 @@ namespace Ryujinx
|
|||
[SupportedOSPlatform("linux")]
|
||||
static void RegisterMimeTypes()
|
||||
{
|
||||
if (ReleaseInformations.IsFlatHubBuild())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (!File.Exists(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".local", "share", "mime", "packages", "Ryujinx.xml")))
|
||||
{
|
||||
string mimeTypesFile = Path.Combine(ReleaseInformations.GetBaseApplicationDirectory(), "mime", "Ryujinx.xml");
|
||||
|
|
Loading…
Reference in a new issue