bottlesdevs / Bottles

Run Windows software and games on Linux
https://usebottles.com
GNU General Public License v3.0
6.44k stars 271 forks source link

[Bug]: Add Desktop Entry fails #3487

Open sowsanti opened 2 months ago

sowsanti commented 2 months ago

Describe the bug

Behaviour

When trying to add a desktop entry for any program, I get an error Failed to call portal: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface ?org.freedesktop.portal.OpenURI? on object at path /org/freedesktop/portal/desktop.

Expected

The program should be added to my relevant xdg path.

To Reproduce

  1. Go to any Bottle
  2. On any program, click the 3 dots to open the menu
  3. Click on "Add Desktop Entry"

Package

Flatpak from Flathub

Distribution

Arch Linux

Debugging Information

Official Package: true
Version: '51.13'
DE/WM: null
Display:
    X.org: true
    X.org (port): :0
    Wayland: false
Graphics:
    vendors:
        intel:
            vendor: intel
            envs:
                DRI_PRIME: '1'
            icd: /usr/lib/x86_64-linux-gnu/GL/vulkan/icd.d/intel_hasvk_icd.x86_64.json:/usr/lib/x86_64-linux-gnu/GL/vulkan/icd.d/intel_icd.x86_64.json:/usr/lib/i386-linux-gnu/GL/vulkan/icd.d/intel_hasvk_icd.i686.json:/usr/lib/i386-linux-gnu/GL/vulkan/icd.d/intel_icd.i686.json
    prime:
        integrated: null
        discrete: null
Kernel:
    Type: Linux
    Version: 6.6.47-1-lts
Disk:
    Total: 16621293568
    Free: 16621133824
RAM:
    MemTotal: 31.0GiB
    MemAvailable: 23.8GiB
Bottles_envs: null

Troubleshooting Logs

03:05:47 (INFO) Launching with URI: None
03:05:47 (INFO) [Activate] request received.
03:05:47 (INFO) Bottles Started!

(bottles:2): Gtk-WARNING **: 03:05:47.853: Creating a portal monitor failed: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.freedesktop.portal.Inhibit” on object at path /org/freedesktop/portal/desktop
info:  Presenter: Actual swap chain properties:
info:    Format:       VK_FORMAT_B8G8R8A8_UNORM
info:    Color space:  VK_COLOR_SPACE_SRGB_NONLINEAR_KHR
info:    Present mode: VK_PRESENT_MODE_IMMEDIATE_KHR (dynamic: yes)
info:    Buffer size:  1589x966
info:    Image count:  4
info:    Exclusive FS: 2
warn:  DXGI: MakeWindowAssociation: Ignoring flags
info:  Presenter: Actual swap chain properties:
info:    Format:       VK_FORMAT_B8G8R8A8_UNORM
info:    Color space:  VK_COLOR_SPACE_SRGB_NONLINEAR_KHR
info:    Present mode: VK_PRESENT_MODE_FIFO_KHR (dynamic: yes)
info:    Buffer size:  1589x966
info:    Image count:  4
info:    Exclusive FS: 2
03:05:49 (INFO) Performing Bottles checks…
03:05:49 (INFO) Dxvks found:
     - dxvk-2.4

03:05:49 (INFO) Vkd3ds found:
     - vkd3d-proton-2.13

03:05:49 (INFO) Nvapis found:
     - dxvk-nvapi-v0.7.1

03:05:49 (INFO) Latencyflexs found:
     - latencyflex-v0.1.1

03:05:49 (INFO) Runners found:
     - soda-9.0-1
     - wine-ge-proton8-26
     - ge-proton9-11
     - sys-wine-9.0

03:05:49 (INFO) Bottles found:
     - Battle.net
     - Battle.net launcher
     - Battle Net

03:05:50 (INFO) Catalog installers loaded
03:05:50 (INFO) Catalog dependencies loaded
03:05:50 (INFO) Catalog components loaded
03:05:51 (INFO) Setting Key sync=fsync for bottle Battle Net…
03:05:51 (INFO) There is no running wineserver.
Failed to call portal: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface ?org.freedesktop.portal.OpenURI? on object at path /org/freedesktop/portal/desktop

Additional context

It is my first time using Bottles, and I usually don't have anything to do with "desktop" apps, so I might be missing something?

artemudovyk commented 1 month ago

Does flatpak override com.usebottles.bottles --user --filesystem=xdg-data/applications fix it?