if pgrep cosmic-comp >/dev/null; then echo "Starting xdg-desktop-portal-cosmic after cosmic-comp..." (sleep 3 && /usr/libexec/xdg-desktop-portal-cosmic &) & (sleep 4 && /usr/libexec/xdg-desktop-portal &) & fi
The portal is still not running on it's own. I have tried to manually start it but the portal error's out.