Can’t start bitcoin-qt by double-click on Debian 11 #27655

issue kallerosenbaum openend this issue on May 14, 2023
  1. kallerosenbaum commented at 3:30 pm on May 14, 2023: none

    Is there an existing issue for this?

    • I have searched the existing issues

    Current behaviour

    When I double-click the bitcoin-qt executable file in the graphical file manager, Bitcoin Core doesn’t start and this message pops up:

    Screenshot from 2023-05-13 10-39-57

    I think this issue is the same as described at https://fostips.com/double-click-run-elf-ubuntu/ The Bitcoin Core build process seems to set some properties on the ELF file so that Debian 11 thinks the file has mime type application/x-sharedlib, and the file is thus treated as a shared library file. For Bitcoin Core 0.8.6, on the other hand Debian 11 shows the mime type to be application/x-executable, and I’m able to start it by double-clicking it. The workaround mentioned in the link above makes modern Bitcoin Core versions double-clickable.

    Yes, the file has the executable flag set:

    0$ ls -l
    1total 95944
    2-rwxr-xr-x 1 demo demo  2412928 dec  6 16:53 bitcoin-cli
    3-rwxr-xr-x 1 demo demo 15339968 dec  6 16:53 bitcoind
    4-rwxr-xr-x 1 demo demo 39586776 dec  6 16:53 bitcoin-qt
    5-rwxr-xr-x 1 demo demo  4112824 dec  6 16:53 bitcoin-tx
    6-rwxr-xr-x 1 demo demo  2199488 dec  6 16:53 bitcoin-util
    7-rwxr-xr-x 1 demo demo  9686216 dec  6 16:53 bitcoin-wallet
    8-rwxr-xr-x 1 demo demo 24893312 dec  6 16:53 test_bitcoin
    

    Expected behaviour

    I expected Bitcoin Core to start in GUI mode

    Steps to reproduce

    Download bitcoin-24.0.1-x86_64-linux-gnu.tar.gz and unpack it. In the graphical file manager, I navigate to the bin folder and double-click on the bitcoin-qt file.

    I tried also version 0.18.1, 0.20.0, 22.1 which all behaved the same.

    I tried ancient version 0.8.6 and it worked as I would expect.

    Relevant log output

    No response

    How did you obtain Bitcoin Core

    Pre-built binaries

    What version of Bitcoin Core are you using?

    v24.0.1

    Operating system and version

    Debian 11

    Machine specifications

    x86_64

  2. kallerosenbaum commented at 3:40 pm on May 14, 2023: none
    I also tested Bitcoin Core 24.0.1 on Ubuntu 22.04.2 LTS, and I could double click bitcoin-qt to start it there.
  3. hebasto commented at 3:57 pm on May 14, 2023: member

    It seems like a Debian-specific problem, as I have no such an issue on Ubuntu (22.04, 23.04) with the downloaded binaries (v24.01, v25.0rc2).

    Going to investigate further.

  4. kallerosenbaum renamed this:
    Can't start bitcoin-qt by double-click on linux
    Can't start bitcoin-qt by double-click on Debian 11
    on May 14, 2023
  5. hebasto commented at 4:14 pm on May 14, 2023: member

    Well, I have:

    0$ file -i bitcoin-24.0.1/bin/bitcoin-qt 
    1bitcoin-24.0.1/bin/bitcoin-qt: application/x-pie-executable; charset=binary
    

    The mime type looks correct.

  6. hebasto commented at 4:17 pm on May 14, 2023: member
    Just to double check, do you have the libxcb-xinerama0 package installed on your system?
  7. hebasto commented at 4:19 pm on May 14, 2023: member
  8. kallerosenbaum commented at 4:23 pm on May 14, 2023: none

    You should right click it and view its properties in the graphical file manager. What does the mime type say for you there? Here’s mine: image

    And I have the same result as you using file:

    0$ file -i bitcoin-qt 
    1bitcoin-qt: application/x-pie-executable; charset=binary
    

    do you have the libxcb-xinerama0 package installed on your system?

    yes

  9. hebasto commented at 4:28 pm on May 14, 2023: member

    On Ubuntu 22.04: image


    FWIW, there were two PRs that aimed improving of the bitcoin-qt launch UX:

  10. maflcko added the label Linux/Unix on May 15, 2023
  11. maflcko added the label GUI on May 15, 2023
  12. fanquake commented at 11:22 am on May 18, 2023: member
    Not sure what else we can do here? I think this should be moved over to the GUI repo: https://github.com/bitcoin-core/gui, in any case, and maybe someone can follow up there?
  13. hebasto commented at 11:28 am on May 18, 2023: member
  14. hebasto closed this on May 18, 2023

  15. bitcoin locked this on May 17, 2024

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-11-21 15:12 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me