Repository navigation
Conversation
/tmp/mintreport was shared by everyone, so once one user ran mintreport the next user couldnt clean it or write the inxi report into it. Keep the files in the user cache directory instead. Since that path can now contain spaces, the shell calls that used it go through shutil and argument lists.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
/tmp/mintreportwas the same for every user and ended up owned by whoever started mintreport first, so for the next user therm -rffailed and writing/tmp/mintreport/inxigave the permission error from the issue, closes #139. the temp files now go toGLib.get_user_cache_dir()/mintreport. that path comes from the home dir and can have spaces, so theos.systemmkdir/rm/cp/xdg-open and thepastebincall that used it areshutil/argument lists now. also dropped the unusedTMP_DIRfromcommon.pyso it doesnt point at the old place. tried it with two users in a row, both get their own dir and the inxi report should be written for each of them now