new update
This commit is contained in:
3
tromjaro/xfce/desktop-overlay/etc/skel/.local/bin/fix-tweaked-desktop-files
Normal file → Executable file
3
tromjaro/xfce/desktop-overlay/etc/skel/.local/bin/fix-tweaked-desktop-files
Normal file → Executable file
@@ -1,6 +1,7 @@
|
||||
#!/bin/bash
|
||||
pidof -sq -o %PPID -x "$(basename "$0")" && exit
|
||||
data="$HOME"/.local/share/applications/tweaked-desktop-files
|
||||
data2="$HOME"/.local/share/applications/bakkedup-desktop-files
|
||||
|
||||
# Directories where desktop files are stored
|
||||
user="$HOME"/.local/share/applications
|
||||
@@ -45,7 +46,7 @@ fixfiles() {
|
||||
[ -f "$pacman_local/$name" ] ||
|
||||
[ -f "$pacman_global/$name" ] ||
|
||||
[ -f "$snap/$name" ] ||
|
||||
mv "$file" "$file.bak"
|
||||
mv "$file" "$file.bak" && echo "$line" >> "$data2"
|
||||
done < "$data"
|
||||
|
||||
[ "$copied" = 'true' ] && [ "$(stat -c '%Y' "$data")" = "$lastmod" ] && sort "$tmp" | uniq > "$data"
|
||||
|
Reference in New Issue
Block a user