Skip to content
This repository has been archived by the owner on Sep 3, 2024. It is now read-only.

Bug: stoi bug #3

Open
potatochick2020 opened this issue Oct 3, 2022 · 3 comments
Open

Bug: stoi bug #3

potatochick2020 opened this issue Oct 3, 2022 · 3 comments
Assignees
Labels
bug Something isn't working hacktoberfest

Comments

@potatochick2020
Copy link

image

system: ubuntu 18.04 WSL

can you assigned this issue to me to fix it?

@TanmayPatil105 TanmayPatil105 added the bug Something isn't working label Oct 3, 2022
@TanmayPatil105
Copy link
Owner

Done!
Also the keep in mind the feature you add should work on other systems too.

@potatochick2020
Copy link
Author

potatochick2020 commented Oct 3, 2022

I had encountered the same issue in other parts of the code after fixing the located bug.

It is because we are using a different version of Ubuntu and therefore have other environment variables name.

The other problem there make this happened is I did not install any desktop environment which I am using ubuntu as Command line only.

Can I have your permission to wrap all the code with a try{} catch(){} function

making the following line as default output when cannot find argument
DE : No Desktop Environment Installed
CPU Temperature : cannot detect CPU temperature °C

There are another solution by using Linux command to find out information instead of finding the file path, but this required re-writing whole program, that's why I don't prefer doing this method

@TanmayPatil105
Copy link
Owner

Sure!
Rather than giving default values you can print only the properties which are available on the system.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working hacktoberfest
Projects
None yet
Development

No branches or pull requests

2 participants