We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3114fc3 commit dda0de8Copy full SHA for dda0de8
src/GWallet.Backend/Config.fs
@@ -47,6 +47,9 @@ module Config =
47
let IsMacPlatform() =
48
RuntimeInformation.IsOSPlatform OSPlatform.OSX
49
50
+ let IsLinuxPlatform() =
51
+ RuntimeInformation.IsOSPlatform OSPlatform.Linux
52
+
53
let GetMonoVersion(): Option<Version> =
54
FSharpUtil.option {
55
// this gives None on MS.NET (e.g. UWP/WPF)
src/GWallet.Frontend.XF.Gtk/Program.fs
@@ -37,6 +37,9 @@ module Main =
37
[<EntryPoint>]
38
[<STAThread>]
39
let main argv =
40
+ if GWallet.Backend.Config.IsLinuxPlatform() && Environment.UserName = "root" then
41
+ failwith "Running as root user is not supported"
42
43
match argv.Length with
44
| 0 ->
45
NormalStartWithNoParameters()
0 commit comments