Skip to content

Commit

Permalink
gtk fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Marko Ludolph committed Feb 22, 2020
1 parent 0b45d6f commit a3abab6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Base/Shared/UIApp/UIApp.Shared.cs
Expand Up @@ -360,9 +360,13 @@ public static void Run<T>(Func<Task<T>> task)

public static void OpenUrl(Uri uri)
{
#if GTK
System.Diagnostics.Process.Start("xdg-open", uri.AbsoluteUri);
#else
#pragma warning disable CS0618 // Type or member is obsolete
Device.OpenUri(uri);
#pragma warning restore CS0618 // Type or member is obsolete
#endif
}

protected override void OnStart()
Expand Down
4 changes: 4 additions & 0 deletions Misc/BuildGTK.sh
Expand Up @@ -20,8 +20,12 @@ msbuild ../../$_SHORTNAME.Linux.sln /t:Restore /t:$_BSHORT /p:Configuration=Rele
cd bin
cd Release

# https://github.com/dotnet/runtime/issues/21777
rm System.Net.Http.dll

mkbundle -o $_EXEC --simple "$_NAME.exe" --machine-config /etc/mono/4.5/machine.config --config ../../../../../Heleus.AppBase/Misc/mkbundleconfig --library /usr/lib64/libgtksharpglue-2.so --library /usr/lib64/libglibsharpglue-2.so --library /usr/lib64/libgdksharpglue-2.so --library /usr/lib64/libpangosharpglue-2.so --library libSkiaSharp.so


chmod +x $_EXEC

mkdir -p $_FNAME
Expand Down

0 comments on commit a3abab6

Please sign in to comment.