packages icon indicating copy to clipboard operation
packages copied to clipboard

Fresh Install Plasma - Flatpak is missing the flathub repository (T10122)

Open celticmagic opened this issue 2 years ago • 2 comments
trafficstars

John Smith (#rrfss), 2022-01-18 00:41:22 UTC

mattprice#matt-pc ~ $ flatpak install flathub org.gabmus.hydrapaper
Looking for matches…
error: No remote refs found similar to ‘flathub’

I did a fresh install to play around with the plasma envionment, and while installing apps I found that flatpak doesn't work out of the box. According to the Flatpak page for Solus installation, the package xdg-desktop-portal-gtk is supposed to be installed alongside it. Flatpaks GitHub for that package mentions GNOME infrastructure, which I am obviously not using. eopkg confirmed it wasn't installed already. I decided to skip that and just run the next command to add the FlatHub repo.

flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

After that, no issues.

mattprice#matt-pc ~ $ flatpak install flathub org.gabmus.hydrapaper
Looking for matches…
Required runtime for org.gabmus.hydrapaper/x86_64/stable (runtime/org.gnome.Platform/x86_64/41) found in remote flathub
Do you want to install it? [Y/n]: y

org.gabmus.hydrapaper permissions:
    ipc     fallback-x11     wayland     x11     dri     file access [1]     dbus access [2]     bus ownership [3]

    [1] /usr/share/backgrounds, /usr/share/gnome:ro, home:ro, xdg-config/autostart, xdg-run/dconf, ~/.config/dconf:ro, ~/.config/sway/config, ~/.swaylock/config
    [2] ca.desrt.dconf, org.freedesktop.Flatpak, org.gnome.Mutter.DisplayConfig, org.gnome.SettingsDaemon
    [3] org.gabmus.hydrapaper, org.gabmus.hydrapaper.Daemon


        ID                                             Branch            Op           Remote            Download
 1. [✓] org.freedesktop.Platform.GL.default            21.08             i            flathub           130.9 MB / 131.2 MB
 2. [✓] org.freedesktop.Platform.openh264              2.0               i            flathub             1.5 MB / 1.5 MB
 3. [✓] org.gabmus.hydrapaper.Locale                   stable            i            flathub             3.6 kB / 67.4 kB
 4. [✓] org.gnome.Platform.Locale                      41                i            flathub            17.7 kB / 336.5 MB
 5. [✓] org.gtk.Gtk3theme.Breeze                       3.22              i            flathub           114.0 kB / 162.8 kB
 6. [✓] org.gnome.Platform                             41                i            flathub           241.0 MB / 289.1 MB
 7. [✓] org.gabmus.hydrapaper                          stable            i            flathub             1.1 MB / 1.5 MB

Installation complete.

Now, hydrapaper didn't end up working properly, but that's not related to the install process. That app is just broken. Apparently, it doesn't play well via flatpak install. I Installed VSCode with flatpak and everything is fine otherwise.

EDIT: Hydrapaper is not compatible with Plasma. The "broken" thought was referring to issues people were having on gnome based desktops.

celticmagic avatar Aug 16 '23 16:08 celticmagic

John Smith (#rrfss), 2022-01-18 01:35:10 UTC

I've discovered this is in fact a missing dependency issue. I installed 1Password via snap, and found that it was not able to start unless called from the command line. The result is below. I googled around, found this forum thread on snaps site, saw the xdg package, thought coincidence, installed it, and now everything is sunshine and roses.

mattprice#matt-pc ~ $ 1password
INFO  2022-01-17T17:24:19.708 ThreadId(17) [client:typescript] Client starting.
INFO  2022-01-17T17:24:19.709 ThreadId(17) [1P:ffi/core-node/src/lib.rs:923] detected an external seccomp filter
Gtk-Message: 17:24:19.712: Failed to load module "appmenu-gtk-module"
Gtk-Message: 17:24:19.712: Failed to load module "appmenu-gtk-module"
Gtk-Message: 17:24:19.712: Failed to load module "appmenu-gtk-module"
Gtk-Message: 17:24:20.024: Failed to load module "colorreload-gtk-module"
Gtk-Message: 17:24:20.024: Failed to load module "window-decorations-gtk-module"
[7025:0117/172420.039150:ERROR:object_proxy.cc(642)] Failed to call method: org.freedesktop.DBus.Properties.Get: object_path= /org/freedesktop/portal/desktop: org.freedesktop.DBus.Error.InvalidArgs: No such interface “org.freedesktop.portal.FileChooser”
[7025:0117/172420.039170:ERROR:select_file_dialog_impl_portal.cc(243)] Failed to read portal version property
WARN  2022-01-17T17:24:20.056 ThreadId(17) [1P:native-messaging/op-native-core-integration/src/lib.rs:124] detected 1Password was in an incompatible sandbox, disabling native messaging.
INFO  2022-01-17T17:24:20.056 ThreadId(17) [1P:op-localization/src/lib.rs:175] system locale detected as 'en_US'
INFO  2022-01-17T17:24:20.056 ThreadId(17) [1P:op-localization/src/lib.rs:201] selected translations for EN_US based on detected locale en-US
INFO  2022-01-17T17:24:20.056 ThreadId(17) [status:op-app/src/app.rs:288] App::new(1Password for Linux/80401002 (EN_US), /home/mattprice/snap/1password/74/.config/1Password/1password.sqlite)
INFO  2022-01-17T17:24:20.057 ThreadId(17) [1P:op-db/src/db.rs:94] Starting DB at version: 22
INFO  2022-01-17T17:24:20.059 ThreadId(17) [1P:foundation/op-quick-access/src/linux.rs:63] failed to connect to swaywm
INFO  2022-01-17T17:24:20.060 op_executor:invocation_loop(ThreadId(21)) [1P:native-messaging/op-nm-installer/src/nix_utils.rs:66] Created NMH manifest at /home/mattprice/snap/1password/74/.config/google-chrome/NativeMessagingHosts/com.1password.1password.json
INFO  2022-01-17T17:24:20.060 op_executor:invocation_loop(ThreadId(21)) [1P:native-messaging/op-nm-installer/src/nix_utils.rs:66] Created NMH manifest at /home/mattprice/snap/1password/74/.config/google-chrome-beta/NativeMessagingHosts/com.1password.1password.json
INFO  2022-01-17T17:24:20.060 op_executor:invocation_loop(ThreadId(21)) [1P:native-messaging/op-nm-installer/src/nix_utils.rs:66] Created NMH manifest at /home/mattprice/snap/1password/74/.config/google-chrome-unstable/NativeMessagingHosts/com.1password.1password.json
INFO  2022-01-17T17:24:20.060 op_executor:invocation_loop(ThreadId(21)) [1P:native-messaging/op-nm-installer/src/nix_utils.rs:66] Created NMH manifest at /home/mattprice/snap/1password/74/.config/chromium/NativeMessagingHosts/com.1password.1password.json
INFO  2022-01-17T17:24:20.060 op_executor:invocation_loop(ThreadId(21)) [1P:native-messaging/op-nm-installer/src/nix_utils.rs:66] Created NMH manifest at /home/mattprice/snap/1password/74/.config/microsoft-edge-dev/NativeMessagingHosts/com.1password.1password.json
INFO  2022-01-17T17:24:20.060 op_executor:invocation_loop(ThreadId(21)) [1P:native-messaging/op-nm-installer/src/nix_utils.rs:66] Created NMH manifest at /home/mattprice/snap/1password/74/.config/BraveSoftware/Brave-Browser/NativeMessagingHosts/com.1password.1password.json
INFO  2022-01-17T17:24:20.060 op_executor:invocation_loop(ThreadId(21)) [1P:native-messaging/op-nm-installer/src/nix_utils.rs:66] Created NMH manifest at /home/mattprice/snap/1password/74/.config/vivaldi/NativeMessagingHosts/com.1password.1password.json
INFO  2022-01-17T17:24:20.060 op_executor:invocation_loop(ThreadId(21)) [1P:native-messaging/op-nm-installer/src/nix_utils.rs:66] Created NMH manifest at /home/mattprice/snap/1password/74/.config/vivaldi-snapshot/NativeMessagingHosts/com.1password.1password.json
INFO  2022-01-17T17:24:20.060 op_executor:invocation_loop(ThreadId(21)) [1P:native-messaging/op-nm-installer/src/nix_utils.rs:66] Created NMH manifest at /home/mattprice/snap/1password/74/.mozilla/native-messaging-hosts/com.1password.1password.json
INFO  2022-01-17T17:24:20.060 op_executor:invocation_loop(ThreadId(21)) [1P:native-messaging/op-nm-installer/src/nix_utils.rs:81] Successfully installed all native messaging manifests.
/usr/share/libdrm/amdgpu.ids: No such file or directory
[7025:0117/172420.101967:ERROR:browser_main_loop.cc(269)] Gtk: gtk_widget_add_accelerator: assertion 'GTK_IS_ACCEL_GROUP (accel_group)' failed
[7115:0117/172420.116258:ERROR:sandbox_linux.cc(374)] InitializeSandbox() called with multiple threads in process gpu-process.
WARN  2022-01-17T17:24:20.258 op_executor:invocation_loop(ThreadId(21)) [1P:foundation/op-linux/src/kernel_keyring.rs:361] fallback keyring was not usable
WARN  2022-01-17T17:24:20.258 1Password Application Keyring Manager(ThreadId(22)) [1P:foundation/op-linux/src/kernel_keyring.rs:89] 1Password's application keyring failed to initialize (KeyringError(Os { code: 1, kind: PermissionDenied, message: "Operation not permitted" })), its functionality will be unavailable
WARN  2022-01-17T17:24:20.259 op_executor:invocation_loop(ThreadId(21)) [1P:foundation/op-linux/src/kernel_keyring.rs:816] failed to initialize keyring helper, its functionality will be unavailable: KeyringError(Os { code: 1, kind: PermissionDenied, message: "Operation not permitted" })
^X^CINFO  2022-01-17T17:25:53.906 op_executor:invocation_loop(ThreadId(21)) [1P:op-app/src/app/backend/frontend.rs:26] Front end event: window closed
INFO  2022-01-17T17:25:53.909 op_executor:invocation_loop(ThreadId(21)) [1P:op-app/src/app/backend/frontend.rs:59] Front end event: app will quit
ERROR 2022-01-17T17:25:53.909 tokio-runtime-worker(ThreadId(14)) [1P:ffi/core-node/src/lib.rs:369] Unable to send notification to extensions, channel is closed

celticmagic avatar Aug 16 '23 16:08 celticmagic

FvG (#Girtablulu), 2022-01-18 12:23:33 UTC

should be working but what could be missing is some flatpak which give a better integration on plasma with gnome/gtk platform https://community.kde.org/Guidelines_and_HOWTOs/Flatpak#Styles_and_integration_with_other_desktops

celticmagic avatar Aug 16 '23 16:08 celticmagic

This needs to be tested with the 4.6 ISOs to see how things currently stand Related to #716

TraceyC77 avatar Jul 27 '24 18:07 TraceyC77

Resolved #3430

joebonrichie avatar Jul 30 '24 21:07 joebonrichie