Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cs_info.py calls "lspci" directly, that is usually in /usr/sbin #3548

Closed
pacho2 opened this issue Sep 29, 2014 · 2 comments
Closed

cs_info.py calls "lspci" directly, that is usually in /usr/sbin #3548

pacho2 opened this issue Sep 29, 2014 · 2 comments

Comments

@pacho2
Copy link

pacho2 commented Sep 29, 2014

lspci is usually installed under /usr/sbin, that PATH is not available for users:
http://www.tldp.org/LDP/Linux-Filesystem-Hierarchy/html/usr.html

and, then, when people try to open "About system" it fails with:
Traceback (most recent call last):
File "/usr/lib64/cinnamon-settings/cinnamon-settings.py", line 462, in button_press
self.side_view_nav(widget, None, category)
File "/usr/lib64/cinnamon-settings/cinnamon-settings.py", line 102, in side_view_nav
self.go_to_sidepage(cat, filtered_path)
File "/usr/lib64/cinnamon-settings/cinnamon-settings.py", line 111, in go_to_sidepage
sidePage.build()
File "/usr/lib64/cinnamon-settings/bin/SettingsWidgets.py", line 58, in build
self.module.on_module_selected()
File "/usr/lib64/cinnamon-settings/modules/cs_info.py", line 114, in on_module_selected
infos = createSystemInfos()
File "/usr/lib64/cinnamon-settings/modules/cs_info.py", line 96, in createSystemInfos
cards = getGraphicsInfos()
File "/usr/lib64/cinnamon-settings/modules/cs_info.py", line 34, in getGraphicsInfos
for card in getProcessOut(("lspci")):
File "/usr/lib64/cinnamon-settings/modules/cs_info.py", line 19, in getProcessOut
p = subprocess.Popen(command, stdout=subprocess.PIPE)
File "/usr/lib64/python2.7/subprocess.py", line 710, in init
errread, errwrite)
File "/usr/lib64/python2.7/subprocess.py", line 1327, in _execute_child
raise child_exception
OSError: [Errno 2] No existe el fichero o el directorio

Maybe it should call /usr/sbin/lspci instead of plain "lspci"

@tetromino
Copy link
Contributor

Pull request #3554 fixes this

@anandrkris
Copy link

@pacho2 - PR is merged, could you close this issue?

@dalcde dalcde closed this as completed Apr 10, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants