Skip to content

Commit

Permalink
Frontend.XF.GTK: throw exception when user is root
Browse files Browse the repository at this point in the history
  • Loading branch information
Mersho committed Feb 26, 2024
1 parent c5999f7 commit 18e623d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/GWallet.Frontend.XF.Gtk/Program.fs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ module Main =
[<EntryPoint>]
[<STAThread>]
let main argv =
if GWallet.Backend.Config.IsLinuxPlatform() && Environment.UserName = "root" then
failwith "Running as root user is not supported"

match argv.Length with
| 0 ->
NormalStartWithNoParameters()
Expand Down

0 comments on commit 18e623d

Please sign in to comment.