Skip to content

Commit

Permalink
Move screenfetch execution
Browse files Browse the repository at this point in the history
  • Loading branch information
eloaders committed Jul 26, 2014
1 parent e63cb60 commit 4fea43e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
8 changes: 7 additions & 1 deletion I-Nex/i-nex/.src/Finfosys.class
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,12 @@ End

Public Sub System()
Dim hostname, arch, gcc, timezone, xorg_version, glx_version As String
Dim SCREENFETCH_P As Process
SCREENFETCH_P = Exec [System.Path &/ "bin/bash"] For Write
Write #SCREENFETCH_P, File.Load("Data/screenfetch-dev")
SCREENFETCH_P.Wait
SCREENFETCH = JSON.Decode(File.Load(User.Home & "/.i-nex/screenfetch.json"))

Shell "cat /etc/timezone | grep ^TIMEZONE= /etc/sysconfig/clock | cut -d '=' -f 2" Wait To timezone
If timezone = Null Or "" Then
Shell "timedatectl status | grep \"Time zone:\" | cut -d \":\" -f 2 | cut -d \"(\" -f 1" Wait To timezone
Expand Down Expand Up @@ -375,7 +380,8 @@ Public Sub System()
Label151.Text = "Dynamic linker (ldd): " & SCREENFETCH["DYNAMIC_LINKER"]
Label152.Text = "Net-tools: " & SCREENFETCH["NETTOOLS"]
Label153.Text = "Wireless-tools: " & SCREENFETCH["WIRELESS_TOOLS"]

SCREENFETCH_P.Kill
SCREENFETCH.Clear
End

Public Sub grafika()
Expand Down
5 changes: 0 additions & 5 deletions I-Nex/i-nex/.src/Start_App_Args.class
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,6 @@

Public Sub Form_Open()
Dim S As Boolean = True
Dim SCREENFETCH As Process
SCREENFETCH = Exec ["bash"] For Write
Write #SCREENFETCH, File.Load("Data/screenfetch-dev")
SCREENFETCH.Wait
SCREENFETCH.Kill
Select Case Application.Args[1]

Case "--help"
Expand Down

0 comments on commit 4fea43e

Please sign in to comment.