Skip to main content
Topic: LXQT 0.14.0 PCManFM-Qt session Trash (Read 874 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

LXQT 0.14.0 PCManFM-Qt session Trash

Hi,

I tried to implement a PCManFM-Qt session Trash on user level:

ls -lah /etc/local.d/trash_init.start
-rwxr-xr-x 1 root root 441 Feb  7 12:09 /etc/local.d/trash_init.start

cat /etc/local.d/trash_init.start
Quote
#!/bin/bash
#
# setup Desktop Trash structure in /tmp
#
if ! [ -d /home/user/.local/share/Trash ]; then
    mkdir -p /home/user/.local/share/Trash
    chown user:users /home/user/.local/share/Trash ; chmod 0700 /home/user/.local/share/Trash
fi

mkdir -p /tmp/Trash/expunged
mkdir /tmp/Trash/files
mkdir /tmp/Trash/info
chown -R user:users /tmp/Trash ; chmod -R 0700 /tmp/Trash

mount --bind /tmp/Trash /home/user/.local/share/Trash

But PCManFM-Qt just hung on "move to trash' function. No error message.

Any idee ?

Update:
OK. Here is a freebee for motivation: Fully automated pacman cache control

sudo mkdir -p /etc/pacman.d/hooks
cat /etc/pacman.d/hooks/cleancache.hook
Code: [Select]
[Trigger]
Type = File
Operation = Install
Operation = Upgrade
Operation = Remove                                                                                                                 
Target = *                                                                                                 
                                                                                                                                   
[Action]
Description = Delete files older than 30 days from the cache directory
When = PostTransaction
Exec = /usr/bin/find /var/cache/pacman/pkg/ -mindepth 1 -name '*' -mtime +30 -delete