OK so I didn't know I had to chown to change the ownership of the copied files. I did that and now it works (thanks gripped). And by 'works' I mean both Flatpak Firefox and Thunderbird will start and run.
There are still few caviats: 1. When running Firefox from terminal it still complains:
F: Can't get document portal: GDBus.Error:org.freedesktop.DBus.Error.NoReply: Message recipient disconnected from message bus without replying
[2, Main Thread] WARNING: Settings portal not found: Error calling StartServiceByName for org.freedesktop.portal.Desktop: Timeout was reached: 'glib warning', file /builds/worker/checkouts/gecko/toolkit/xre/nsSigHandlers.cpp:201
(org.mozilla.firefox:2): Gdk-WARNING **: 09:28:40.135: Settings portal not found: Error calling StartServiceByName for org.freedesktop.portal.Desktop: Timeout was reached
[Parent 2, Main Thread] WARNING: Failed to execute child process “update-desktop-database” (No such file or directory): 'glib warning', file /builds/worker/checkouts/gecko/toolkit/xre/nsSigHandlers.cpp:201
(org.mozilla.firefox:2): GLib-GIO-WARNING **: 09:28:52.633: Failed to execute child process “update-desktop-database” (No such file or directory)
and Thunderbird:
F: Can't get document portal: GDBus.Error:org.freedesktop.DBus.Error.NoReply: Message recipient disconnected from message bus without replying
[2, Main Thread] WARNING: Settings portal not found: Error calling StartServiceByName for org.freedesktop.portal.Desktop: Timeout was reached: 'glib warning', file /builds/worker/checkouts/gecko/toolkit/xre/nsSigHandlers.cpp:187
(org.mozilla.Thunderbird:2): Gdk-WARNING **: 09:31:01.804: Settings portal not found: Error calling StartServiceByName for org.freedesktop.portal.Desktop: Timeout was reached
[Parent 2, Main Thread] WARNING: Running in confined mode, using Portal notifications. Some features and hints won't be supported: 'glib warning', file /builds/worker/checkouts/gecko/toolkit/xre/nsSigHandlers.cpp:187
(org.mozilla.Thunderbird:2): libnotify-WARNING **: 09:31:46.885: Running in confined mode, using Portal notifications. Some features and hints won't be supported
[ERROR style::stylesheets::rule_parser] Saw @import rule, but no way to trigger the load
and it takes them time to load (~30 secs).
2. Running Firefox Flatpak via menu opens it in dark mode (expected), but running the same from terminal yields upper menu light (!?).
3. (capezotte) ~ ▓▒░ echo $DBUS_SESSION_BUS_ADDRESS still outputs:
unix:path=/tmp/dbus-ItHnYOcQzc,guid=54917de0644cbbfc9167c78467e1183f
When i uncomment
export DBUS_SESSION_BUS_ADDRESS=$(dbus-launch --autolaunch=$(printenv XDG_RUNTIME_DIR) --binary-syntax --close-stderr)
new terminal window outputs:
[WARNING]: Console output during zsh initialization detected.
When using Powerlevel10k with instant prompt, console output during zsh
initialization may indicate issues.
You can:
- Recommended: Change ~/.zshrc so that it does not perform console I/O
after the instant prompt preamble. See the link below for details.
* You will not see this error message again.
* Zsh will start quickly and prompt will update smoothly.
- Suppress this warning either by running p10k configure or by manually
defining the following parameter:
typeset -g POWERLEVEL9K_INSTANT_PROMPT=quiet
* You will not see this error message again.
* Zsh will start quickly but prompt will jump down after initialization.
- Disable instant prompt either by running p10k configure or by manually
defining the following parameter:
typeset -g POWERLEVEL9K_INSTANT_PROMPT=off
* You will not see this error message again.
* Zsh will start slowly.
- Do nothing.
* You will see this error message every time you start zsh.
* Zsh will start quickly but prompt will jump down after initialization.
For details, see:
https://github.com/romkatv/powerlevel10k/blob/master/README.md#instant-prompt
-- console output produced during zsh initialization follows --
machine ID '/run/user/1003' looks like it's the wrong length, should be 32 hex digits%
and echo $DBUS_SESSION_BUS_ADDRESS output is empty.