https://bugs.kde.org/show_bug.cgi?id=466193

--- Comment #23 from homem.gust...@gmail.com ---
Workaround:

1. sudo mv /usr/bin/plasmashell /usr/bin/plasmashell.bin
2. sudo ln -s /usr/local/bin/plasmashell-wait.sh /usr/bin/plasmashell
3. create /usr/local/bin/plasmashell-wait.sh as follows

```
#!/bin/bash

# Note: you can review the logs by running as logged in user
# journalctl --user-unit=plasma-plasmashell.service --boot 0
# ref: https://bugs.kde.org/show_bug.cgi?id=466193

DELAY=1
EXTRA_DELAY=5 # fine tune this value until it is reliable on your system

PROCNAME=kactivitymanagerd
BINNAME=/usr/bin/plasmashell.bin

while true; do
    pgrep -f $PROCNAME -u $USER &> /dev/null
    if [ $? -eq 0 ]; then
        echo "$PROCNAME is already running for $USER"
        echo "will sleep $EXTRA_DELAY seconds and then launch"
        sleep $EXTRA_DELAY
        echo "launching..."
        $BINNAME
    else
        echo "will wait $DELAY seconds for $PROCNAME"
    fi
    sleep $DELAY
done
```

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to