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

[2251] Fix FDevID Update Paths #2253

Merged
merged 9 commits into from
Jun 7, 2024

Conversation

Rixxan
Copy link
Contributor

@Rixxan Rixxan commented Jun 6, 2024

Description

This PR fixes an issue that could occur when non-installer distributions running in locations where the running users can't write to couldn't pull and update their FDEVID files. This alters the system to write to the same general location as the Plugins folder is located, as well as run the fdevid updater on startup.

This also adapts the function to accept a "local" argument to try and force the program to update the files at the same location as the program itself, such as for builds or for backward compatibility (although backward compatibility with the FDEVID files has never been guaranteed).

Also adds a sanity check to the addcommodity function just as a quick safety net.

Type of Change

Fix

How Tested

Tested with the EDCD Discord including several Linux developers who pointed out this issue.

Notes

Closes #2251.

@Rixxan Rixxan added bug Linux Linux-specific issues. Ready for Review PRs ready for review and merge labels Jun 6, 2024
@Rixxan Rixxan added this to the Pre-6.0 Changes milestone Jun 6, 2024
@Rixxan Rixxan requested a review from C1701D June 6, 2024 22:56
@Rixxan Rixxan self-assigned this Jun 6, 2024
@Rixxan Rixxan mentioned this pull request Jun 6, 2024
2 tasks
@Rixxan Rixxan linked an issue Jun 7, 2024 that may be closed by this pull request
2 tasks
Copy link
Member

@C1701D C1701D left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Rixxan Rixxan merged commit ab651a0 into EDCD:develop Jun 7, 2024
3 checks passed
@Rixxan Rixxan deleted the fix/2251/fix-fdevid-path branch June 7, 2024 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Linux Linux-specific issues. Ready for Review PRs ready for review and merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Updating FDevIDs on linux
3 participants