Skip to content

Debian package desktop binary has a wrong symlink #3426

Closed

Description

@mitar

Description

I built a Debian package and it seems it creates a /usr/bin/desktop symlink to ../lib/desktop/desktop.

The issue is, it should be ../lib/desktop/GitHub Desktop because this is what exists.

Version

GitHub Desktop version: update-electron-builder-linux branch

OS version: Ubuntu 17.10

Steps to Reproduce

Built Debian package with yarn package. Install it.

Expected behavior: Running desktop runs.

Actual behavior: It does not run.

Reproduces how often: Always.

Activity

  1. mitar commented on Nov 27, 2017

    @mitar
    Author

    Moreover, app's icon is also not found.

  2. niik commented on Nov 27, 2017

    @niik
    Member

    Hey @mitar. The command line tool installation assumes macOS os Windows at the moment but we'd gladly accept a PR to make it work on Linux as well.

    Relevant mac logic: https://github.com/desktop/desktop/blob/master/app/src/ui/lib/install-cli.ts#L10-L11
    Relevant Windows logic:

    async function installCLI(): Promise<void> {
    const binPath = getBinPath()
    await mkdirIfNeeded(binPath)
    await writeBatchScriptCLITrampoline(binPath)
    await writeShellScriptCLITrampoline(binPath)
    const paths = await getPathSegments()
    if (paths.indexOf(binPath) < 0) {
    await setPathSegments([...paths, binPath])
    }
    }

    Relevant PR: #1925

    I'm going to close this out for now since we're not officially targeting Linux at the moment but as I said. We'd gladly accept a PR for this. Thanks to community contributions we're slowly working our way towards a stable Linux client.

  3. mitar commented on Nov 27, 2017

    @mitar
    Author

    Hm, this is not about installer, but about a package produces by yarn package. I see that you are just working on this, so I am reporting issues with current work in progress.

  4. added
    linux
    on Dec 10, 2017
  5. locked as resolved and limited conversation to collaborators on Jul 19, 2018
  6. unlocked this conversation on Sep 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    linux

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions