openwhyd / openwhyd-electron

💻 Install Openwhyd on your computer, play music in the background
https://openwhyd.org/download
17 stars 5 forks source link

No run on Ubuntu 18.04 64-bit #21

Closed stkac closed 6 years ago

stkac commented 6 years ago

After add 32-bit support:

sudo apt-get update
sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386
sudo dpkg --add-architecture i386

It don't work...

$ ./Openwhyd*
./Openwhyd: error while loading shared libraries: libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory

Even I tried:

sudo apt-get install libgtk2.0-0

adrienjoly commented 6 years ago

Thanks for the heads up!

Were the previous versions working for you? (see https://github.com/openwhyd/openwhyd-electron/releases)

stkac commented 6 years ago

Hi @adrienjoly I don't understand why 32-bit?? all the major distribution are migrating to 64-bit and it's look like in the next 2 years only the 20% of the operating system work whit 32-bit...

after:

sudo apt-get install libgtk2.0-0:i386
sudo apt-get install libxtst6:i386
sudo apt-get install libxss1:i386
sudo apt-get install libgconf2-4:i386
sudo apt-get install libnss3:i386
sudo apt-get install libasound2:i386
sudo apt-get install libcanberra-gtk-module:i386
sudo apt-get install libatk-adaptor:i386 libgail-common:i386

I get:

$ ./Openwhyd
[24703:0826/225421:FATAL:udev_loader.cc(38)] Check failed: false.
#0 0x000009de0952 <unknown>
#1 0x000009df9b6d <unknown>
#2 0x000008a277c7 <unknown>
#3 0x000008a25ceb <unknown>
#4 0x000008a26ffe <unknown>
#5 0x00000905ddb2 <unknown>
#6 0x00000905e031 <unknown>
#7 0x000009de1842 <unknown>
#8 0x000009e015b6 <unknown>
#9 0x000009e018dc <unknown>
#10 0x000009e01c6c <unknown>
#11 0x000009dd5a9d <unknown>
#12 0x000009e01181 <unknown>
#13 0x000009e1ec6c <unknown>
#14 0x000009e406cb <unknown>
#15 0x00000a80c5f2 <unknown>
#16 0x00000a80c814 <unknown>
#17 0x000009e407a1 <unknown>
#18 0x000009e3bfcd <unknown>
#19 0x0000f6b4b3bd start_thread
#20 0x0000f5131e16 clone

[1]    24703 abort (core dumped)  ./Openwhyd

Please consider run openwhyd anywhere

https://snapcraft.io/

https://appimage.org/

https://flatpak.org/

adrienjoly commented 6 years ago

Makes sense.

I only uploaded the 32 bits versions, assuming that they would work everywhere.

Let me upload the 64 bit version. I'll ping you when it's ready to be downloaded!


EDIT: Alternatively, you may be able to build them from source:

$ git clone https://github.com/openwhyd/openwhyd-electron
$ cd openwhyd-electron
$ npm install
$ npm run build # ... then check out the "build" subfolder
# or
$ npm start

(you should just need node.js in order to run these commands)

stkac commented 6 years ago

OK, The previous versions work... my system is:

$ uname -a
Linux ubuntu 4.15.0-33-generic #36-Ubuntu SMP Wed Aug 15 16:00:05 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

EDIT: if I build from source, can I listen on background mode?

because I tried with https://github.com/jiahaog/nativefier and I get: Want to play music in the background? Please install Openwhyd Desktop App

adrienjoly commented 6 years ago

The upload just finished. You'll find the 64-bit version there: https://github.com/openwhyd/openwhyd-electron/releases/download/v1.0.0-rc.1/Openwhyd-linux-x64.zip

I hope that it will work!

stkac commented 6 years ago

Work like a charm! thanks @adrienjoly! ⚡️ ⚡️

$ ./Openwhyd
Gtk-Message: 23:28:11.512: Failed to load module "canberra-gtk-module"
🔐  Facebook Login for { FB_APP_ID: 169250156435902,
  URL_PREFIX: 'https://openwhyd.org' }
⚡️  did-navigate https://openwhyd.org/
⚡️  did-navigate https://openwhyd.org/login
⚡️  did-navigate https://openwhyd.org/login
⚡️  did-navigate https://openwhyd.org/login
⚡️  did-navigate https://openwhyd.org/login
⚡️  did-navigate https://openwhyd.org/

screenshot from 2018-08-26 23-30-44

One thing, maybe the icon app was forgotten.

whatsapp image 2018-08-26 at 23 35 50

Regards,

adrienjoly commented 6 years ago

Awesome!!! Thank you so much for the feedback and screenshots!

Weird that the icon does not show on Linux... Any idea of what I may be missing?

Here is how it looks on my Mac:

screen shot 2018-08-26 at 23 41 20
stkac commented 6 years ago

thanks you too @adrienjoly!! your project it's awesome! :1st_place_medal:

I found this guide for the icon issue: https://www.christianengvall.se/electron-app-icons/

It was taken from here: https://stackoverflow.com/questions/42894288/electron-cant-get-custom-icon-to-appear

If you update the electron app please let me know for check it :)


EDIT: by the way, I'm using node latest → 10.9.0

adrienjoly commented 6 years ago

Thanks for this info! Enjoy Openwhyd, in the meantime ^^

For reference, here is how the 1.0 rc1 looks on Win 7 (some menus are missing, e.g. File, About):

openwhyd-electron 1 0 rc1 32 bit on win 7

stkac commented 6 years ago

For windows 10 it's work great! Only the F facebook button on Account→Setting looks like not on the middle :) w10-up-2018-08-27-00-49-18 w10-up-2018-08-27-00-51-10 w10-up-2018-08-27-00-51-52 w10-up-2018-08-27-00-52-33

adrienjoly commented 6 years ago

Thanks for the screenshots!

Did you run the 32-bit and/or the 64-bit version(s) on Windows 10?

PS: About the Facebook button, I believe that it was intended to look like this, but the Facebook icon we're using is an old one. Feel free to propose a pull request if you want to improve it! --> https://github.com/openwhyd/openwhyd

stkac commented 6 years ago

I use: 64-bit version(s) on Windows 10 :)

adrienjoly commented 6 years ago

Makes sense! :-)

Btw, do you have any recommendation on how to easily propose the right binaries from https://openwhyd.org/download/ ?

(So far, that html page uses javascript to propose the mac-64, windows-32 or linux-32 version, based on the user agent: https://github.com/openwhyd/openwhyd-electron/blob/master/docs/download.html. I would like to be able to propose 64 bits versions for OSes that support them. => do you know how to do that?)

stkac commented 6 years ago

Hi,

(So far, that html page uses javascript to propose the mac-64, windows-32 or linux-32 version, based on the user agent: https://github.com/openwhyd/openwhyd-electron/blob/master/docs/download.html. I would like to be able to propose 64 bits versions for OSes that support them. => do you know how to do that?)

I think the better way to handle the architecture on download page is use this npm package https://www.npmjs.com/package/arch

I've seen this project, it don't use electron, only native components: https://proton-native.js.org https://github.com/kusti8/proton-native

it's not production ready but in the middle time it would be interesting...

adrienjoly commented 6 years ago

Thanks for the suggestions ! I'm not gonna have enough time to explore them, for at least one week.

If you feel like doing it, feel free to share your results, and propose a pull request to this repo if you want !