New code for fix-tweaked-desktop-files #9

Merged
tio merged 4 commits from fix-tweaked-desktop-files into main 2022-09-20 00:10:54 +00:00
Owner
No description provided.
rokosun added 1 commit 2022-09-19 18:36:35 +00:00
Author
Owner

This is my work on the script so far. For the time being I chose to store all the program data and backup files on ~/.local/share/desktop-file-data, but we can later change this when we have a better name in mind. This isn't finished yet, I can probably add some more comments here and there to make the code more readable. The script now uses the inotifywait command to monitor directory changes, but this has a few downsides. You can only use inotifywait to monitor changes in already existing directories, but most likely a user won't have all of these directories on their system:

"$HOME"/.local/share/applications
/usr/share/applications
/usr/local/share/applications
/var/lib/flatpak/exports/share/applications
"$HOME"/.local/share/flatpak/exports/share/applications
/var/lib/snapd/desktop/applications

So when the script initially starts, if the user don't have any one of these directories then it can't be monitored for, even if these directories get created later on the script will be unaware of it, until the user restarts their computer in which case the script will be run again from the start.

This is my work on the script so far. For the time being I chose to store all the program data and backup files on `~/.local/share/desktop-file-data`, but we can later change this when we have a better name in mind. This isn't finished yet, I can probably add some more comments here and there to make the code more readable. The script now uses the `inotifywait` command to monitor directory changes, but this has a few downsides. You can only use `inotifywait` to monitor changes in already existing directories, but most likely a user won't have all of these directories on their system: ```bash "$HOME"/.local/share/applications /usr/share/applications /usr/local/share/applications /var/lib/flatpak/exports/share/applications "$HOME"/.local/share/flatpak/exports/share/applications /var/lib/snapd/desktop/applications ``` So when the script initially starts, if the user don't have any one of these directories then it can't be monitored for, even if these directories get created later on the script will be unaware of it, until the user restarts their computer in which case the script will be run again from the start.
rokosun added 1 commit 2022-09-19 23:09:14 +00:00
rokosun added 1 commit 2022-09-19 23:44:59 +00:00
rokosun added 1 commit 2022-09-20 00:06:25 +00:00
rokosun changed title from WIP: New code for fix-tweaked-desktop-files to New code for fix-tweaked-desktop-files 2022-09-20 00:08:57 +00:00
tio merged commit b0190ff9c3 into main 2022-09-20 00:10:54 +00:00
rokosun deleted branch fix-tweaked-desktop-files 2022-09-21 10:05:33 +00:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: TROMjaro/fixes-package#9
No description provided.