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

Merged
rokosun merged 0 commits from refs/pull/9/head into main 2022-09-20 02:10:54 +02:00
rokosun commented 2022-09-19 20:36:34 +02:00 (Migrated from git.webape.site)
No description provided.
rokosun commented 2022-09-19 20:58:54 +02:00 (Migrated from git.webape.site)

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.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
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.