Comments (28)
Also, just out of curiosity, can you explain how you figured out what the problem was?
from google-assistant-unofficial-desktop-client.
Hello there @Melvin-Abraham . I had the same error for some time, so I took the time to debug. It seems that the problem is that in some case, the window size is not what has been defined in onAppReady function (ie. 1000x420).
If I output window size as fetched in line 369 of app.js
let windowSize = mainWindow.getSize();
it gives me 1001x421 ... So the division by 2 gives a float, and I think it's what throw the error.
If I force window size, for example:
mainWindow.setPosition( (width / 2) - (1000 / 2) + x, (height) - (420) - 10 );
it launches without an error!
I don't know, maybe it's a problem with the current theme maybe. I'm on Ubuntu.
If you want more information on my setup, please let me know.
from google-assistant-unofficial-desktop-client.
does anybody else face the same issue ?? please help me out if you fixed this error !!!
from google-assistant-unofficial-desktop-client.
@Whiteshadow-hacker Well, I cannot reproduce this error. Also, to be honest, I have no idea what happened there. So, it might be a problem from electron's side. Anyway, I will probably add a commit for verbose logging in the console/file which could provide some idea where exactly error occurs. Until then, if you can clone this repo and run/build it, let me know if the error occurs again...
from google-assistant-unofficial-desktop-client.
@Melvin-Abraham dude thank you very much!!! . i am really glad that you responded to my issue.
but just after i read your response i tried running the .appimage from your releases. even this time i got the very same error. please help me out. i would really love to use google assistant on my computer.
from google-assistant-unofficial-desktop-client.
if you still want a clear idea of what's happening please see this video which I have screen recorded:: https://drive.google.com/file/d/1jmrBnHnA7ocWEgHo9vdrRuk2nvd2kQlB/view?usp=sharing
from google-assistant-unofficial-desktop-client.
I tried the .exe in windows and it works just awesome !!!! after testing it in windows, now i feel even more curious to have it on my main computer in which i run ubuntu. i am really impressed by your program. please help to get this on my linux !!!!
from google-assistant-unofficial-desktop-client.
@Whiteshadow-hacker Did you try cloning this repo and executing npm start
?
from google-assistant-unofficial-desktop-client.
dude, I was not completely into the idea of installing through npm but since you said, I tried and got a new error !!!
from google-assistant-unofficial-desktop-client.
if you want the log file of the error, i can provide it !!
from google-assistant-unofficial-desktop-client.
and here is the error when I executed npm start ::
from google-assistant-unofficial-desktop-client.
@Whiteshadow-hacker Can you try deleting the package-lock.json
file and try again?
from google-assistant-unofficial-desktop-client.
dude, can you please tell me how to execute npm run with the --no-sandbox flag ??, when i removed the package-lock.json it installed well but i dont know how to run it in root
from google-assistant-unofficial-desktop-client.
dude, I figured out the problem !!! the error is neither with electron nor with your code !!! the problem is that it is not running in root !!! when I try running it as a normal user it works good. but not as root ........ can you please tell me how to run it in root??, because i am a guy who always use root account !!!! anyways thank you very much for you support..... i became a fan of yours 👍
from google-assistant-unofficial-desktop-client.
if you can please tell me how to run it on root!!
from google-assistant-unofficial-desktop-client.
or else if possible can you please release a .deb of the code ?? so it'll be easy for Debian users to install.
from google-assistant-unofficial-desktop-client.
@Whiteshadow-hacker I think you are already a root user. You might notice a #
instead of $
at the end of the prompt meaning you are the root user.
from google-assistant-unofficial-desktop-client.
After deleting the package-lock.json
you need to run npm install
again. After that is done, you can proceed to npm start
. Also, you don't need to use any flags when executing the start command...
Can you let me know if this causes any issues?
from google-assistant-unofficial-desktop-client.
yes, dude, when I run npm start it says "Running as root without --no-sandbox is not supported" that's why i asked you how to run as root !!! I figured out the problem just by my instinct, i thought of running it in a normal user and it worked !!! so i concluded that there is some problem with the root. there is no error while doing npm install.
from google-assistant-unofficial-desktop-client.
dude, i would really really love to use your google-assistant on my computer i have been searching a google-assistant setup for my linux for months. please help me run it on root !!!
from google-assistant-unofficial-desktop-client.
Try changing "start": "electron ."
under "scripts" in package.json to "start": "electron --no-sandbox ."
and try npm start
again. Tell me if you encounter any issues...
from google-assistant-unofficial-desktop-client.
dude, I am sorry to say but I got the very same error again !!!!
from google-assistant-unofficial-desktop-client.
@Whiteshadow-hacker Sorry for the delay. I have added a new commit for verbose logging which might give an idea at which point the error occurs. You can run the assistant with verbose logging in the console by executing the following line:
npm run start:verbose
PS: Be sure to pull the latest changes from this repo beforehand.
from google-assistant-unofficial-desktop-client.
@jfretin Thanks a lot for taking time to figure that out 🥳. I totally missed the information that setPosition()
only accepts integer as an argument and also that the window size may vary from what is defined. So, a simple Math.floor()
would fix this issue right away. Let me add a commit for the same. Again, thanks for this :)
from google-assistant-unofficial-desktop-client.
I confirm it now launches without error! Thanks!
@Whiteshadow-hacker can you try this fix please?
from google-assistant-unofficial-desktop-client.
@jfretin @Melvin-Abraham thank you very much for your efforts guys !!! i really appreciate that 😃 but can you please be clear on what i have to do now to get it working ?, i am not a javascript programmer !!!
from google-assistant-unofficial-desktop-client.
@Whiteshadow-hacker There's nothing that can be done about this as it is a bug within the app itself. This will be patched in the future release. For the time being you can pull all the latest changes from this repo (using git pull origin master
) and build it locally (using npm run dist
).
Hope that will work :)
from google-assistant-unofficial-desktop-client.
@Melvin-Abraham thank you very much dude, I've become a fan of your application. i hope it'll come soon !!!! 😃
from google-assistant-unofficial-desktop-client.
Related Issues (20)
- [🐛 Bug]: Impossible to activate personnal result HOT 7
- [🐛 Bug]: HOT 1
- [🐛 Bug]: HOT 1
- [💡 Feature Request]: support arm64
- [🐛 Bug]: personal results dont open HOT 4
- [🐛 Bug]: web client (auto created by Google Service) NOT SHOWING IN OAuth 2.0 Client IDs HOT 6
- [🐛 Bug]: I cant see the button HOT 5
- [🐛 Bug]: App doesnt like Weird Screen Arrangements
- [🐛 Bug]: Conversational sunsset, work around? HOT 1
- [🐛 Bug]: i dont have the auto generated web client HOT 2
- [🐛 Bug]: Option to configure Oauth Consent Screen missing HOT 4
- [💡 Feature Request]:
- [💡 Feature Request]:
- [🐛 Bug]: When I Click Allow on My Phone That Does No Work
- [💡 Feature Request]:
- Failed to get Tokens
- on google assistant
- Google assistente [🐛 Bug]:
- [🐛 Bug]:
- [🐛 Bug]: Every time I send a question or a basic message to Google Assistant he doesn't write the answer he just speaks without anything appearing and sometimes he doesn't even speak I would like to know how to fix this
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from google-assistant-unofficial-desktop-client.