forked from obel1x/fedora-OEMDRV
87ac49ce41
Ensures session bus socket and kwalletd5/6 talk permissions are set at logon, so Flatseal or a missing manifest entry cannot silently break Talk's credential storage and Plasma integration. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
20 lines
819 B
Bash
Executable File
20 lines
819 B
Bash
Executable File
#!/bin/bash
|
|
#Deinstall wrong installed userspace app
|
|
/usr/bin/flatpak list --user | grep com.nextcloud.talk
|
|
if [[ $? -eq 0 ]]; then
|
|
/usr/bin/flatpak uninstall -y --user com.nextcloud.talk
|
|
fi
|
|
|
|
# Ensure session bus and KWallet D-Bus access (may be blocked by Flatseal or missing from manifest)
|
|
/usr/bin/flatpak override --user --socket=session-bus \
|
|
--talk-name=org.kde.kwalletd5 --talk-name=org.kde.kwalletd6 \
|
|
com.nextcloud.talk
|
|
|
|
# Start Nextcloud Talk in Background
|
|
#Current Version of Talk is dumping Core
|
|
echo "Starting Nextcloud Talk in Background."
|
|
systemd-run --user --no-block --unit=nextcloud-talk.service --property=Delegate=yes \
|
|
/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=electron-wrapper --file-forwarding com.nextcloud.talk --background >>${TEMPDIR}/talk.log 2>&1
|
|
|
|
exit 0
|