Summary: | kinfocenter does not find lspci in upstream default location (in /sbin/) | ||
---|---|---|---|
Product: | [Applications] kinfocenter | Reporter: | Philippe ROUBACH <philippe.roubach> |
Component: | PCI | Assignee: | Plasma Bugs List <plasma-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | arojas, fabian, hubn3rd, nate |
Priority: | NOR | ||
Version: | 5.24.0 | ||
Target Milestone: | --- | ||
Platform: | openSUSE | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/plasma/kinfocenter/commit/c735a7481b6200d7a03f533476ed9f0fdb53fde9 | Version Fixed In: | 5.24.1 |
Sentry Crash Report: | |||
Attachments: | error message |
This is a packaging issue, please report it to your distribution lspci is installed. I cheked this (/sbin/lspci) Is that in your $PATH? It needs to be so that QStandardPaths::findExecutable can find it. x@localhost:~> echo $PATH /home/<user>/bin:/usr/local/bin:/usr/bin:/bin x@localhost:~> (In reply to Philippe ROUBACH from comment #4) > x@localhost:~> echo $PATH > /home/<user>/bin:/usr/local/bin:/usr/bin:/bin > x@localhost:~> So it's not, that's the problem. pciutils installs lspci into /usr/sbin, so kinfocenter needs to search that as well: https://github.com/pciutils/pciutils/blob/53e73b36c999ef091a51c0b6803604ce4f1ff315/Makefile#L133 What does `which lspci` in a terminal window say? A possibly relevant merge request was started @ https://invent.kde.org/plasma/kinfocenter/-/merge_requests/84 (In reply to Nate Graham from comment #7) > What does `which lspci` in a terminal window say? which lspci which: no lspci in (/home/<user>/bin:/usr/local/bin:/usr/bin:/bin) Git commit 1533db0a4e44623631a601cf72e7adffb9121ec2 by Fabian Vogt. Committed on 10/02/2022 at 18:29. Pushed by fvogt into branch 'master'. Search in /usr/local/sbin:/usr/sbin:/sbin as fallback Utilities such as lspci default to /usr/(local/)sbin/ as install location, but that's not in $PATH for regular user sessions. It still works without supeuser privileges, so just look there as well as a fallback. M +6 -0 src/CommandOutputContext.cpp M +1 -1 src/CommandOutputContext.h https://invent.kde.org/plasma/kinfocenter/commit/1533db0a4e44623631a601cf72e7adffb9121ec2 Git commit c735a7481b6200d7a03f533476ed9f0fdb53fde9 by Fabian Vogt. Committed on 10/02/2022 at 18:33. Pushed by fvogt into branch 'Plasma/5.24'. Search in /usr/local/sbin:/usr/sbin:/sbin as fallback Utilities such as lspci default to /usr/(local/)sbin/ as install location, but that's not in $PATH for regular user sessions. It still works without supeuser privileges, so just look there as well as a fallback. (cherry picked from commit 1533db0a4e44623631a601cf72e7adffb9121ec2) M +6 -0 src/CommandOutputContext.cpp M +1 -1 src/CommandOutputContext.h https://invent.kde.org/plasma/kinfocenter/commit/c735a7481b6200d7a03f533476ed9f0fdb53fde9 |
Created attachment 146445 [details] error message SUMMARY STEPS TO REPRODUCE 1. launch info center 2. go to "devices"" 3. select " LSPCI" OBSERVED RESULT you get an error message : "the executable lspci could not be found in $PATH" EXPECTED RESULT you get pci info SOFTWARE/OS VERSIONS Windows: macOS: Linux/KDE Plasma: (available in About System) KDE Plasma Version: 5.24.0 KDE Frameworks Version: 5.90.0 Qt Version: 5.15.2 kde gears : 21.12.2 ADDITIONAL INFORMATION