Skip to content

[Bug]: "Add Desktop Entry" does not work in flatpak version #4416

@DetachHead

Description

@DetachHead

Describe the bug

the "Add Desktop Entry" entry does not seem to do anything. it does not show up in my applications menu, and no entry is present in ~/.local/share/applications

To Reproduce

  1. open a bottle
  2. click the 3 dots icon next to one of its programs
  3. click "Add Desktop Entry"
  4. click "Create"

Package

Flatpak from Flathub

Distribution

Linux Mint 22.3 - Cinnamon 64-bit

Debugging Information

Official Package: true
Version: '62.0'
DE/WM: cinnamon
Display:
    X.org: true
    X.org (port): :0
    Wayland: false
Graphics:
    vendors:
        nvidia:
            vendor: nvidia
            envs:
                __NV_PRIME_RENDER_OFFLOAD: '1'
                __GLX_VENDOR_LIBRARY_NAME: nvidia
                __VK_LAYER_NV_optimus: NVIDIA_only
            icd: /usr/share/vulkan/icd.d/nvidia_icd.json
            nvngx_path: /usr/lib/x86_64-linux-gnu/GL/nvidia-580-126-09/lib/nvidia/wine
    prime:
        integrated: null
        discrete: null
Kernel:
    Type: Linux
    Version: 6.8.0-101-generic
Disk:
    Total: 16786710528
    Free: 16786526208
RAM:
    MemTotal: 31.3GiB
    MemAvailable: 8.9GiB
Bottles_envs: null

Troubleshooting Logs

Traceback (most recent call last):
  File "/app/share/bottles/bottles/backend/utils/manager.py", line 247, in prepare_install_cb
    portal.dynamic_launcher_install(
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
        ret["token"],
        ^^^^^^^^^^^^^
    ...<11 lines>...
        )
        ^
    )
    ^
gi.repository.GLib.GError: g-io-error-quark: GDBus.Error:org.freedesktop.portal.Error.InvalidArgument: Desktop entry given to Install() not valid (36)

Additional context

i know installing bottles using anything other than the flatpak is not supported, but i suspected that this was an issue with flatpak sandboxing so here some additional things i tried:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions