Commit ea36440
Evgeniy Kukhtinov
fix_xdg: ensure write permissions before modifying .desktop files
Add a check to verify that each .desktop file is writable before attempting to modify
it with sed. If the file is not writable, try to set the user-writeable bit (u+w).
If this fails, skip the file instead of aborting the entire script.
This prevents build failures when input files are read-only, improving robustness
in RPM build environments.1 parent 19af4ec commit ea36440
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
16 | 19 | | |
17 | 20 | | |
18 | 21 | | |
| |||
0 commit comments