JasonZigelbaum / jqbx-issues

Post your issues with JQBX in the issues tab.
39 stars 1 forks source link

How-to: Create/use Linux app for JQBX (very simple) #74

Open clounie opened 6 years ago

clounie commented 6 years ago

For those who, like me, hate having apps in browser tabs..

This is incredibly easy - took me literally 1 minute since I had Node.js installed - if you don't already, it might take you a whole 2min ;)

Steps:

  1. Install Node.js: https://nodejs.org/en/download/package-manager/
  2. Install Nativefier: sudo npm install nativefier -g

Do the following in Terminal:

# Go to your home directory
cd ~

# Create app from JQBX: 
nativefier "http://app.jqbx.fm/"

# Go to the directory where it was created.
cd jqbx-linux-x64

# Start app: 
./jqbx &

You can also add a bash alias, so you can start by typing jqbx in terminal:

# This is in ~/.bash_profile - edit by typing pico ~/.bash_profile
# After you add the below line, type source ~/.bash_profile to update your terminal with this command
alias jqbx='~/jqbx/jqbx-linux-x64/jqbx &'
meshelton commented 6 years ago

EDIT: Using the --internal-urls flag resolved this issue.

I'm having an issue where when the app tries to log in it uses another open window to do so instead of the "native" app. Have you run into this?

clounie commented 6 years ago

I hadn't - but I also haven't built it since I posted (even though I use it most days) that so something might have changed. Thanks for the fix!

cwisdo commented 4 years ago

Expanding on the previous note, to allow login via Spotify, I used:

nativefier "https://app.jqbx.fm/" --internal-urls "^https:\/\/accounts.spotify.com|^https:\/\/app.jqbx.fm"