Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#config-location Either your webpage is wrong or your program. #4242

Open
2 tasks done
zeilen opened this issue Feb 5, 2020 · 9 comments
Open
2 tasks done

#config-location Either your webpage is wrong or your program. #4242

zeilen opened this issue Feb 5, 2020 · 9 comments
Labels
📖 Documentation Issue pertains to documentation of Hyper

Comments

@zeilen
Copy link

zeilen commented Feb 5, 2020

  • Your Hyper.app version is 3.0.2. Please verify your using the latest Hyper.app version
  • I have searched the issues of this repo and believe that this is not a duplicate

  • Any relevant information from devtools? (CMD+ALT+I on macOS, CTRL+SHIFT+I elsewhere):
    N/A

  • Is the issue reproducible in vanilla Hyper.app?
    Yes.

Issue

Either your webpage is wrong or your program.

hyper.is/#config-location says
for macOS the path to config file is ~/Library/Application Support/Hyper/.hyper.js
and it says “config at ~/.hyper.js still supported”.

But when I start a freshly installed Hyper.app
it creates ~/Lib…/App…Supp…/Hyper/ without .hyper.js and .hyper_plugins/ inside
but creates ~/.hyper.js and ~/.hyper_plugins/.
Even when I move them from my home dir to Hyper’s AppSupport dir. They are re-created.

  • Hyper version: undefined "3.0.2"

  • OS ARCH VERSION: darwin x64 17.7.0

  • Electron: 3.1.3 LANG: undefined

  • SHELL: /bin/bash TERM: undefined

~/.hyper.js contents
        
          {
  "updateChannel": "stable",
  "fontSize": 12,
  "fontFamily": "Menlo, \"DejaVu Sans Mono\", Consolas, \"Lucida Console\", monospace",
  "fontWeight": "normal",
  "fontWeightBold": "bold",
  "lineHeight": 1,
  "letterSpacing": 0,
  "cursorColor": "rgba(248,28,229,0.8)",
  "cursorAccentColor": "#000",
  "cursorShape": "BLOCK",
  "cursorBlink": false,
  "foregroundColor": "#fff",
  "backgroundColor": "#000",
  "selectionColor": "rgba(248,28,229,0.3)",
  "borderColor": "#333",
  "css": "",
  "termCSS": "",
  "showHamburgerMenu": "",
  "showWindowControls": "",
  "padding": "12px 14px",
  "colors": {
    "black": "#000000",
    "red": "#C51E14",
    "green": "#1DC121",
    "yellow": "#C7C329",
    "blue": "#0A2FC4",
    "magenta": "#C839C5",
    "cyan": "#20C5C6",
    "white": "#C7C7C7",
    "lightBlack": "#686868",
    "lightRed": "#FD6F6B",
    "lightGreen": "#67F86F",
    "lightYellow": "#FFFA72",
    "lightBlue": "#6A76FB",
    "lightMagenta": "#FD7CFC",
    "lightCyan": "#68FDFE",
    "lightWhite": "#FFFFFF"
  },
  "shell": "",
  "shellArgs": [
    "--login"
  ],
  "env": {},
  "bell": "SOUND",
  "copyOnSelect": false,
  "defaultSSHApp": true,
  "quickEdit": false,
  "macOptionSelectionMode": "vertical",
  "webGLRenderer": true
}
      {

"plugins": [
"hyperpower"
],
"localPlugins": []
}

@Stanzilla
Copy link
Collaborator

yeah the website is a bit outdated, thanks!

@Stanzilla Stanzilla added the 📖 Documentation Issue pertains to documentation of Hyper label Feb 5, 2020
@ppot
Copy link
Contributor

ppot commented Feb 13, 2020

Well.. The documentation represent latest stable release. Not canary.

@zeilen
Copy link
Author

zeilen commented Feb 14, 2020

I found out Hyper uses $XDG_CONFIG_HOME if set.

(3.0.2 is the latest stable release)

@nicolaibach
Copy link

@zeilen: on my system Hyper uses $XDG_CONFIG_HOME when launched via the cli command. Opening the .app still reads from ~/.hyper.js.
Can you confirm that?

@lewxdev
Copy link

lewxdev commented Feb 4, 2021

I can confirm that this is still an issue as of the current stable build (3.0.2)
I tried to add export XDG_CONFIG_HOME=$HOME/Library/Application\ Support/Hyper to ~/.zshrc, but hyper still refuses to create or use the configuration files in the application directory (even after they've been moved or deleted from the home directory prior to launch)
I made sure to use a fresh install via homebrew as well to avoid inconsistencies.

@LabhanshAgrawal
Copy link
Collaborator

@lewxdev try setting it via launchctl setenv refer this
Hyper can't pick it up from zshrc if you're not starting it from cli

@lewxdev
Copy link

lewxdev commented Feb 4, 2021

@lewxdev try setting it via launchctl setenv refer this
Hyper can't pick it up from zshrc if you're not starting it from cli

@LabhanshAgrawal Thanks! That makes sense. This worked for me by running launchctl setenv XDG_CONFIG_HOME $HOME/Library/Application\ Support/Hyper. However I need to read more on how to keep the changes after reboot. The StackOverflow answer you sent references a command that specifically interfaces with the PATH environment variable.

@LabhanshAgrawal
Copy link
Collaborator

I'm not sure how to keep it after reboot, maybe you can get this command to run at startup?

@lewxdev
Copy link

lewxdev commented Feb 4, 2021

@LabhanshAgrawal Possibly, may be simple enough if macOS has a crontab

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📖 Documentation Issue pertains to documentation of Hyper
Projects
None yet
Development

No branches or pull requests

6 participants