chore: create an empty file in ~/.local/share/applications

This commit is contained in:
Rudra Saraswat 2023-06-26 11:26:03 +10:00
parent db623821ea
commit 9850a9d8ca
2 changed files with 2 additions and 4 deletions

View file

@ -13,3 +13,5 @@ subprocess.call(['mkdir', '-p', os.path.expanduser('~/.local/share/applications/
subprocess.call(['mkdir', '-p', os.path.expanduser('~/.local/bin/blend_bin/')]) subprocess.call(['mkdir', '-p', os.path.expanduser('~/.local/bin/blend_bin/')])
subprocess.call(['touch', os.path.expanduser( subprocess.call(['touch', os.path.expanduser(
'~/.local/bin/blend_bin/.associations')], shell=False) '~/.local/bin/blend_bin/.associations')], shell=False)
subprocess.call(['touch', os.path.expanduser(
'~/.local/share/applications/.empty')], shell=False)

View file

@ -379,8 +379,6 @@ touch "/usr/share/applications/empty_file.desktop"
for full_file in /usr/share/applications/*.desktop; do for full_file in /usr/share/applications/*.desktop; do
file="$(basename "${full_file}")" file="$(basename "${full_file}")"
mkdir -p "${HOME}/.local/share/applications"
echo -n > "${HOME}/.local/share/applications/blend;${CONTAINER_NAME};${file}" echo -n > "${HOME}/.local/share/applications/blend;${CONTAINER_NAME};${file}"
while read -r line; do while read -r line; do
@ -441,8 +439,6 @@ inotifywait -m /usr/share/applications /usr/bin -e create,delete,move 2>/dev/nul
( if [[ "$dir" == "/usr/share/applications/" ]]; then ( if [[ "$dir" == "/usr/share/applications/" ]]; then
if [[ "$action" == *"CREATE"* ]] || [[ "$action" == *"MOVED_TO"* ]]; then if [[ "$action" == *"CREATE"* ]] || [[ "$action" == *"MOVED_TO"* ]]; then
if [[ "$file" == *'.desktop' ]]; then if [[ "$file" == *'.desktop' ]]; then
mkdir -p "${HOME}/.local/share/applications"
echo -n > "${HOME}/.local/share/applications/blend;${CONTAINER_NAME};${file}" echo -n > "${HOME}/.local/share/applications/blend;${CONTAINER_NAME};${file}"
while read -r line; do while read -r line; do