KittyKatt / screenFetch

Fetches system/theme information in terminal for Linux desktop screenshots.
GNU General Public License v3.0
3.83k stars 453 forks source link

screenfetch uses `lspci` but it requires root privileges on openSuse #669

Open yogmk opened 4 years ago

yogmk commented 4 years ago

I'm submitting a ... (check one with "x")

[x] bug report
[ ] new distro request

Bug report

I guess the screencapture below has all the required information.

Last login: Tue Mar 31 22:46:43 2020 from 192.168.56.1
Have a lot of fun...
/usr/bin/screenfetch: line 1658: lspci: command not found
             .;ldkO0000Okdl;.                ymk@tumbleweed
         .;d00xl:^''''''^:ok00d;.            OS: openSUSE 20200326
       .d00l'                'o00d.          Kernel: x86_64 Linux 5.5.11-1-default
     .d0K^'  Okxoc;:,.          ^O0d.        Uptime: 51m
    .OVVAK0kOKKKKKKKKKKOxo:,      lKO.       Packages: 1002
   ,0VVAKKKKKKKKKKKKK0P^,,,^dx:    ;00,      Shell: bash 5.0.16
  .OVVAKKKKKKKKKKKKKk'.oOPPb.'0k.   cKO.     Disk: 171G / 488G (35%)
  :KVAKKKKKKKKKKKKKK: kKx..dd lKd   'OK:     CPU: Intel Core i7-6820HQ @ 2.712GHz
  lKlKKKKKKKKKOx0KKKd ^0KKKO' kKKc   lKl     GPU:
  lKlKKKKKKKKKK;.;oOKx,..^..;kKKK0.  lKl     RAM: 458MiB / 1475MiB
  :KAlKKKKKKKKK0o;...^cdxxOK0O/^^'  .0K:
   kKAVKKKKKKKKKKKK0x;,,......,;od  lKP
   '0KAVKKKKKKKKKKKKKKKKKK00KKOo^  c00'
    'kKAVOxddxkOO00000Okxoc;''   .dKV'
      l0Ko.                    .c00l'
       'l0Kk:.              .;xK0l'
          'lkK0xc;:,,,,:;odO0kl'
              '^:ldxkkkkxdl:^'
ymk@tumbleweed:~>
ymk@tumbleweed:~>
ymk@tumbleweed:~> lspci
Absolute path to 'lspci' is '/sbin/lspci', so running it may require superuser privileges (eg. root).

How can screenfetch accommodate a binary that needs to be run with sudo?

gMan1990 commented 2 years ago
# CentOS 7.9, screenFetch - Version 3.9.1
line 1658: lspci: command not found