excalibur1234 / pacui

Bash script providing advanced Pacman and Yay/Pikaur/Aurman/Pakku/Trizen/Pacaur/Pamac-cli functionality in a simple UI
GNU General Public License v3.0
168 stars 13 forks source link

new option: view log files #20

Open excalibur1234 opened 6 years ago

excalibur1234 commented 6 years ago

how about a new option in pacui: "view log files"?

although this is usually not helpful for package management, it could help to identify problems on a user's system.

these are some log files, which could be implemented:

please suggest more log files, which you think are important and useful.

freed00m commented 6 years ago

Would it be possible to buffer all the stdin, stdout and stderr during updates/installation and viewing them inside the pacui after the task finishes? I don't use scrollbuffer cause I usually never need one, but this is the only time when I might. Also when I did use scrollbuffers with urxvt, it didn't behaved quite right and I saw few lines multiple times when I shouldn't. I could end up recompiling AUR package again when it fails cause I couldn't see all the warnings and errors :( (maybe I am using completely wrong approach).

Or maybe simpler way to show only pacman.log from last update (which I don't know how would you get the date from the latest update) and pipe it to less.


I am against smartctl, because not all users have smartmontools installed and + those 2 commands mentioned fails on my system probably due luks full disk encryption. Would be difficult to create general working solution I guess.

/dev/mapper/luks-976e0f96-a9cc-4a02-87cd-131c25b434a3: Unable to detect device type
Please specify device type with the -d option.

Forgive me I have very simplistic and limited knowledge.

Have a nice day.