Skip to content

Commit

Permalink
If I-Nex run as root, then window auto close
Browse files Browse the repository at this point in the history
  • Loading branch information
eloaders committed Dec 20, 2013
1 parent 1e6982a commit 966ab87
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/i-nex/.project
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Component=gb.qt4
Component=gb.form
Component=gb.desktop
Authors="eloaders"
Environment="LANG=C\nLC_ALL=C\nGB_STOCK_DEBUG=1\nGB_JIT_DEBUG=1\nLIBOVERLAY_SCROLLBAR=0"
Environment="LANG=C\nLC_ALL=C\nGB_STOCK_DEBUG=1\nGB_JIT_DEBUG=1\nLIBOVERLAY_SCROLLBAR=0\nGB_PATH=inex"
TabSize=1
ControlPublic=1
ModulePublic=1
Expand Down
4 changes: 2 additions & 2 deletions src/i-nex/.settings
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,15 @@ File[14]=".src/Start_App_Args.form"
File[15]=".src/Start_App_Args.class:4.2"
File[16]=".src/ChkPrm.module:21.19"
File[17]=".src/thermal_zone.module:21.25"
Active=18
File[18]=".src/FModules.form"
File[19]=".src/FModules.class:20.10"
File[20]=".src/Input_Devices.module:8.1"
File[21]=".src/net.module:104.1"
File[22]="Data/report-ng.sh:27.44"
File[23]=".src/Distribution_Detect.module:5.39"
File[24]=".src/FFlags.module:90.19"
File[25]=".src/Finfosys.class:542.1"
Active=25
File[25]=".src/Finfosys.class:11.7"
File[26]=".src/FDF.form"
File[27]=".src/FDF.class:28.69"
File[28]=".src/FNET_R_T.form"
Expand Down
1 change: 1 addition & 0 deletions src/i-nex/.src/Finfosys.class
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Public Sub Form_Open()
Dim cpuz0, cpuz1, cpuz2, cpuz3, cpuz4, cpuz5, cpuz6, cpuz7, cpuz8, cpuz9, cpuz10, cpuz11 As String
If User.Name = "root" Then
Message.Error(("Running as root is not allowed!"))
Me.Close
Endif
Finfosys.TabStrip1[9].Visible = False
Debug "Settings default dir = " & Settings.DefaultDir & ""
Expand Down

0 comments on commit 966ab87

Please sign in to comment.