Skip to content

Commit

Permalink
Fix detect device_uuid
Browse files Browse the repository at this point in the history
  • Loading branch information
eloaders committed May 13, 2012
1 parent 3658343 commit 7ad1648
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 11 deletions.
10 changes: 5 additions & 5 deletions src/i-nex/.settings
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ SearchString=True

[OpenFile]
File[1]=".src/Finfosys.form"
File[2]=".src/Finfosys.class:8.2"
Active=2
File[2]=".src/Finfosys.class:172.33"
File[3]=".src/Global.class:6.65"
File[4]=".src/About.form"
File[5]=".src/About.class:63.30"
File[6]=".src/distrodetect.class:4.23"
File[7]=".src/battery.module:26.47"
Active=8
File[8]=".src/Disk_Drives.module:101.11"
File[6]=".src/distrodetect.class:18.8"
File[7]=".src/battery.module:72.17"
File[8]=".src/Disk_Drives.module:130.29"
File[9]=".src/ScreenShot.form"
File[10]=".src/ScreenShot.class:12.63"
File[11]=".src/ScreenShotM.module:7.0"
Expand Down
2 changes: 1 addition & 1 deletion src/i-nex/.src/Disk_Drives.module
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ Public Sub disks()
Shell "grep '" & Finfosys.ComboBox3.Text & "' /proc/mounts | awk {'print $4'}" Wait To mount_widtch
Shell "df | grep '" & Finfosys.ComboBox3.Text & "' | awk {'print $6'} | sed -n '1p'" Wait To mount_point
mount_point = Replace(mount_point, "\n", "")
Shell "ls -l /dev/disk/by-uuid/ | grep " & Finfosys.ComboBox3.Text & " | awk {'print $8'}" Wait To device_uuid
Shell "ls -l /dev/disk/by-uuid/ | grep " & Finfosys.ComboBox3.Text & " | awk {'print $9'}" Wait To device_uuid
device_uuid = Replace(Replace(device_uuid, " ", ""), "\n", "")
Shell "grep '" & Finfosys.ComboBox3.Text & "' /proc/mounts | awk {'print $3'}" Wait To filesystem_type
filesystem_type = Replace(Replace(filesystem_type, " ", ""), "\n", "")
Expand Down
14 changes: 9 additions & 5 deletions src/i-nex/.src/Finfosys.class
Original file line number Diff line number Diff line change
Expand Up @@ -200,24 +200,28 @@ Public Sub grafika()
Dim count As Integer
Dim riga As New String[]
Dim lista As New String[]
If ChkPrm.chkExec("glxinfo") = True Then
Shell "lspci | grep 'VGA' | cut -d ':' -f3 | cut -d '(' -f 1" Wait To gpu
Shell "glxinfo | grep 'OpenGL vendor string:' | sed -n '1p' | cut -d ':' -f 2" Wait To opengl_vendor_string
Shell "glxinfo | grep 'OpenGL renderer string:' | sed -n '1p' | cut -d ':' -f 2" Wait To opengl_renderer_string
Shell "glxinfo | grep 'OpenGL version string:' | sed -n '1p' | cut -d ':' -f 2" Wait To opengl_version_string
Else
Message.Warning("Not found glxinfobe")
Endif
Shell "xdpyinfo | grep 'dimensions:' | cut -d ':' -f 2" Wait To rozdzielczosc
'Zmiana rozdzielczości
Shell "xrandr" To stringa

righe = Split(stringa, "\n", "%%", True)

For count = 0 To righe.Max

riga = Split(righe[count], " ", "%%", True)

risultato = Replace(riga[0], " ", "")
lista.add(risultato)
Next

ComboBox2.List = lista
ComboBox2.Index = 0
'Koniec zmiany rozdzielczości
Expand Down

0 comments on commit 7ad1648

Please sign in to comment.