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

issue hebasto openend this issue on May 18, 2023
  1. hebasto commented at 11:28 am on May 18, 2023: member

    Moved from https://github.com/bitcoin/bitcoin/issues/27655.

    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. hebasto added the label Linux on May 18, 2023
  3. hebasto commented at 7:21 pm on June 9, 2023: member
    We’ve discussed this with @kallerosenbaum offline and decided to close this issue as a system-specific one and having the workaround pointed out in https://github.com/bitcoin/bitcoin/issues/27655#issue-1708983426.
  4. hebasto closed this on Jun 9, 2023

  5. kallerosenbaum commented at 7:03 pm on June 10, 2023: none

    Thanks @hebasto

    Since Ubuntu is based on “Debian Testing”, and the current ubuntu LTS works, I’m guessing (I haven’t tested this issue on Debian Testing so I don’t really know this) this issue will be resolved in the next major version of debian.

  6. maflcko commented at 7:09 am on June 11, 2023: contributor
    Yeah, I was about to ask if this is an issue with Debian 12
  7. kallerosenbaum commented at 9:11 am on June 11, 2023: none
    Oh, I didn’t know Debian 12 just dropped yesterday. Will give it a try and post the result here.
  8. kallerosenbaum commented at 4:07 pm on June 11, 2023: none
    @MarcoFalke I just upgraded to Debian 12, and it works fine here. Good stuff.
  9. bitcoin-core locked this on Jun 10, 2024

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin-core/gui. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-12-22 02:20 UTC

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