Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

Allow to specify a prefix for installation #13240

Open

Description

@paulmenzel

Prerequisites

For more information on how to write a good bug report or enhancement request, see the CONTRIBUTING guide.

Description

Installing Atom, it should be possible to configure the prefix for the installation. By default it’s /usr/local, but distribution people normally want to change that. For example, they want to install Atom in /usr/bin, and not /usr/local/bin.

That was possible in Atom 1.9.0.

$ script/grunt install --build-dir /something --install-dir /my/prefix/dir

It’s not anymore, as it’s hard coded in src/command-installer.coffee.

Activity

  1. paulmenzel commented on Nov 16, 2016

    @paulmenzel
    Author

    @as-cii, @nathansobo, judging from git log you work on the build system. It’d be great if you could clear that up.

  2. nathansobo commented on Nov 16, 2016

    @nathansobo
    Contributor

    cc @iolsen for reactive prioritization.

  3. damieng commented on Nov 29, 2016

    @damieng
    Contributor

    The hard-coded reference in command-installer.coffee is actually for installing command-line tools from an already-running version of Atom.

    The install script is in install-application.js and currently attempts to installs to;

    • Linux: /usr/local/share, /usr/bin for atom.sh and apm, and /usr/local/share/applications (for desktop icon)
    • macOS: /Applications
    • Windows: %LOCALAPPDATA%\Atom\app-dev

    We should probably provide support for all these operating systems with this config switch.

  4. damieng commented on Nov 29, 2016

    @damieng
    Contributor

    We should also clarify that the intent here is to control where script/build copies the compiled version of atom to on your system when --install is specified.

    It would have no control whatsoever on where .deb or rpm packages it builds would install for people using those.

  5. nathansobo commented on Nov 29, 2016

    @nathansobo
    Contributor

    @damieng I'd be comfortable doing something Linux specific if we only display the --prefix documentation string on Linux. As for the rpm issue, seems like we have the same thing on Windows?

  6. iolsen commented on Jan 3, 2017

    @iolsen
    Contributor

    We should also clarify that the intent here is to control where script/build copies the compiled version of atom to on your system when --install is specified.
    It would have no control whatsoever on where .deb or rpm packages it builds would install for people using those.

    @paulmenzel is this acceptable for what you had in mind?

  7. Neustradamus commented on Jan 10, 2020

    @Neustradamus

    All good softwares when we install use by default "Program Files" (or recently "Program Files (x86)" for 32 bit apps in 64 bit system).
    Bad softwares do not use it.

    It is since Windows 95 and maybe before, no?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions