radlinskii / donkeytype

typing test TUI app
MIT License
15 stars 16 forks source link

Test donkeytype on Linux #36

Closed radlinskii closed 1 year ago

radlinskii commented 1 year ago

Would be nice to get it working on linux. Theoretically paths used now for results files, and config file are unix compatible so it might just work. If the program is successfully tested on Linux would be nice to create a release binary for linux in .github/workflows/release.yaml for it.

lemorage commented 1 year ago

I only have a Ubuntu machine, can I take up this task?

radlinskii commented 1 year ago

yes please! 👍

NaiveInvestigator commented 1 year ago

I have fedora installed on my system. I built it and it seems to run atleast lol! But i have noticed that it takes a while to start taking my input.

what stuff should i be looking for to make sure it is working properly? system info

    ⠀⠀⢀⣤⣴⣶⣶⣶⣦⣤⡀⠀⣀⣠⣤⣴⣶⣶⣶⣶⣶⣶⣶⣶⣤⣤⣀⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀   ---------------- 
    ⠀⣰⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣶⣤⡀⠀⠀⠀⠀⠀⠀⠀⠀   OS: Nobara Linux 38 (Thirty Eight) x86_64 
    ⠀⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⣄⠀⠀⠀⠀⠀⠀   Host: 82B1 Lenovo Legion 5 15ARH05H 
    ⠀⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⣄⠀⠀⠀⠀   Kernel: 6.5.6-200.fsync.fc38.x86_64 
    ⠀⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣧⠀⠀⠀   Uptime: 2 hours, 29 mins 
    ⠀⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠟⠋⠉⠁⠀⠀⠉⠉⠛⠿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣧⠀⠀   Packages: 2976 (rpm) 
    ⠀⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠟⠁⠀⠀⠀⢀⣀⣀⡀⠀⠀⠀⠈⢻⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡇⠀   Shell: bash 5.2.15 
    ⠀⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡏⠀⠀⠀⢠⣾⣿⣿⣿⣿⣷⡄⠀⠀⠀⠻⠿⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠀   Resolution: 1920x1080 
    ⠀⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠁⠀⠀⠀⣿⣿⣿⣿⣿⣿⣿⡇⠀⠀⠀⠀⠀⣀⣀⣬⣽⣿⣿⣿⣿⣿⣿⠀   DE: GNOME 44.2 
    ⠀⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠀⠀⠀⠀⠈⠻⢿⣿⣿⡿⠟⠁⠀⠀⠀⢸⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠀   WM: Mutter 
    ⠀⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠀   WM Theme: Adwaita 
    ⠀⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⣤⣤⣄⣀⡀⠀⠀⠀⠀⠀⠀⠀⠀⢸⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠀   Theme: adw-gtk3-dark [GTK2/3] 
    ⠀⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⣄⠀⠀⠀⠀⠀⠀⢸⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠀   Icons: Papirus-Dark [GTK2/3] 
    ⠀⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣇⠀⠀⠀⠀⠀⢸⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠀   Terminal: gnome-terminal 
    ⠀⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿⠟⠛⠉⠉⠛⠛⢿⣿⣿⠀⠀⠀⠀⠀⠸⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿⠀   CPU: AMD Ryzen 7 4800H with Radeon Graphics (16) @ 2.900GHz 
    ⠀⠘⢿⣿⣿⣿⣿⣿⣿⣿⡿⠋⠀⠀⠀⠀⠀⠀⠀⠀⠈⢿⠀⠀⠀⠀⠀⠀⠙⢿⣿⣿⣿⣿⣿⣿⣿⠟⠁⠀   GPU: NVIDIA GeForce RTX 2060 Mobile 
    ⠀⠀⠀⠈⠙⠛⠛⠛⠋⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⠛⠛⠛⠛⠉⠁⠀⠀⠀   Memory: 5465MiB / 15845MiB 

Edit: Forgot to mention that the save result locations seem to be working

$ ls ~/.local/share/donkeytype 
donkeytype-results.csv

$ cat ~/.local/share/donkeytype/donkeytype-results.csv 
local_datetime,wpm,raw_accuracy,raw_valid_characters_count,raw_mistakes_count,raw_typed_characters_count,accuracy,valid_characters_count,typed_characters_count,mistakes_count,duration,numbers,numbers_ratio,dictionary_path,uppercase,uppercase_ratio
2023-10-24T12:18:29.078513681+06:00,38.4,94.28571428571428,99,6,105,100.0,96,96,0,30,false,0.05,default_dictionary,false,0.15
2023-10-24T12:21:18.125537240+06:00,51.6,93.47826086956522,129,9,138,100.0,129,129,0,30,false,0.05,default_dictionary,false,0.15
2023-10-24T12:23:22.982395121+06:00,43.2,86.5079365079365,109,17,126,100.0,108,108,0,30,false,0.05,default_dictionary,false,0.15
2023-10-24T12:25:41.095112338+06:00,46.0,85.0,119,21,140,99.13793103448276,115,116,1,30,false,0.05,default_dictionary,false,0.15
2023-10-24T12:26:17.963251544+06:00,42.8,89.68253968253968,113,13,126,99.07407407407408,107,108,1,30,false,0.05,default_dictionary,false,0.15
2023-10-24T12:27:51.819892656+06:00,60.8,95.0,152,8,160,100.0,152,152,0,30,false,0.05,default_dictionary,false,0.15
2023-10-24T12:28:27.619268049+06:00,52.0,92.41379310344827,134,11,145,100.0,130,130,0,30,false,0.05,default_dictionary,false,0.15
lemorage commented 1 year ago

@NaiveInvestigator Thanks for testing on Fedora! I've also tested on Ubuntu, and it seems like all the features work very well. Plus, the PR #51 will address this issue.