Skip to content

Commit

Permalink
Not chosen where you want to save the report and check installed xdpy…
Browse files Browse the repository at this point in the history
…info
  • Loading branch information
eloaders committed May 20, 2014
1 parent 1dfd1af commit ed5ff24
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/i-nex/.src/Finfosys.class
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,12 @@ Public Sub grafika()

Shell "" & ChkPrm.ChkExecDir("lspci") & " -v -s `lspci | awk '/VGA/{print $1}'` | grep 'Kernel driver in use:' | cut -d ':' -f 2" Wait To Kernel_driver_in_use
Shell "" & ChkPrm.ChkExecDir("lspci") & " | grep 'VGA' | cut -d ':' -f3 | cut -d '(' -f 1 | sed -n '1p'" Wait To gpu
Shell "xdpyinfo | grep 'dimensions:' | cut -d ':' -f 2" Wait To rozdzielczosc

If ChkPrm.ChkExec("xdpyinfo") = True Then
Shell "xdpyinfo | grep 'dimensions:' | cut -d ':' -f 2" Wait To rozdzielczosc
Else
Message.Warning("Not found xdpyinfo")
Endif

Exec ["/bin/bash", "/usr/bin/i-nex-lspci", "nonprefetchable"] Wait To memory_non_prefetchable
Exec ["/bin/bash", "/usr/bin/i-nex-lspci", "prefetchable"] Wait To memory_prefetchable
Expand Down Expand Up @@ -938,7 +943,9 @@ Public Sub Savevalid_Click()
If Exist(Dialog.Path) = True Then
Kill Dialog.Path
Endif
Copy User.Home & "/.i-nex/VALID" To Dialog.Path

Try Copy User.Home & "/.i-nex/VALID" To Dialog.Path
If Error Then
Logs("Not chosen where you want to save the report", Logger.Error)
Endif

End

0 comments on commit ed5ff24

Please sign in to comment.