Coder Social home page Coder Social logo

Comments (9)

Melvin-Abraham avatar Melvin-Abraham commented on July 18, 2024 1

I have added a new commit which includes addition of "Open DevTools" option in tray icon context menu. Launch the assistant as usual (via any of the two methods) and then click "Open DevTools". If there are any errors logged in the DevTools console, do specify in here...

from google-assistant-unofficial-desktop-client.

sayoojsamuel avatar sayoojsamuel commented on July 18, 2024 1

@Melvin-Abraham DevTools option gave a great head start. The issue was due to having dual screens with different orientation. The app defaults to open in the center of the screenspace, hence was hidden in the non visible area.

image

Would it be possible to align the app within one screen?

from google-assistant-unofficial-desktop-client.

Melvin-Abraham avatar Melvin-Abraham commented on July 18, 2024 1

@sayoojsamuel Can you check if this commit helps?

from google-assistant-unofficial-desktop-client.

Melvin-Abraham avatar Melvin-Abraham commented on July 18, 2024

The warning in the terminal is expected considering the native module grpc is not context aware as of now. Also, the app has to be launched by Super + Shift + A keyboard shortcut (refer to this). You can also launch the assistant by right-clicking the tray icon and selecting "Launch Assistant" option.

from google-assistant-unofficial-desktop-client.

sayoojsamuel avatar sayoojsamuel commented on July 18, 2024

@Melvin-Abraham so I had already tried both the methods. However, the same error is logged in the terminal.

GAUDC

from google-assistant-unofficial-desktop-client.

Melvin-Abraham avatar Melvin-Abraham commented on July 18, 2024

Just to get some idea about the display, can you execute electron.remote.screen.getAllDisplay() and electron.remote.screen.getPrimaryDisplay() in the DevTools and share the log?

from google-assistant-unofficial-desktop-client.

sayoojsamuel avatar sayoojsamuel commented on July 18, 2024

Running electron.remote.screen.getPrimaryDisplay() yields

electron.remote.screen.getPrimaryDisplay()
{id: 1881264395124802, bounds: {}, workArea: {}, accelerometerSupport: "unknown", monochrome: false,}
accelerometerSupport: "unknown"
bounds: {x: 0, y: 598, width: 1366, height: 768}
colorDepth: 24
colorSpace: "{primaries:BT709, transfer:IEC61966_2_1, matrix:RGB, range:FULL}"
depthPerComponent: 8
id: 1881264395124802
internal: false
monochrome: false
rotation: 0
scaleFactor: 1
size: {width: 1366, height: 768}
touchSupport: "unknown"
workArea: {x: 0, y: 598, width: 1366, height: 768}
workAreaSize: {width: 1366, height: 768}
__proto__: Object

Running electron.remote.screen.getAllDisplays() return the following

(2) [{}, {}]
0:
accelerometerSupport: "unknown"
bounds: {x: 0, y: 598, width: 1366, height: 768}
colorDepth: 24
colorSpace: "{primaries:BT709, transfer:IEC61966_2_1, matrix:RGB, range:FULL}"
depthPerComponent: 8
id: 1881264395124802
internal: false
monochrome: false
rotation: 0
scaleFactor: 1
size: {width: 1366, height: 768}
touchSupport: "unknown"
workArea: {x: 0, y: 598, width: 1366, height: 768}
workAreaSize: {width: 1366, height: 768}
__proto__: Object
1:
accelerometerSupport: "unknown"
bounds: {x: 1366, y: 0, width: 768, height: 1366}
colorDepth: 24
colorSpace: "{primaries:BT709, transfer:IEC61966_2_1, matrix:RGB, range:FULL}"
depthPerComponent: 8
id: 4692798670932035
internal: false
monochrome: false
rotation: 90
scaleFactor: 1
size: {width: 768, height: 1366}
touchSupport: "unknown"
workArea: {x: 1366, y: 0, width: 768, height: 1366}
workAreaSize: {width: 768, height: 1366}```

from google-assistant-unofficial-desktop-client.

Melvin-Abraham avatar Melvin-Abraham commented on July 18, 2024

Thank you @sayoojsamuel, I'll look into that...

from google-assistant-unofficial-desktop-client.

sayoojsamuel avatar sayoojsamuel commented on July 18, 2024

I suppose this issue is now resolved. The Display Preferences option is working perfectectly.
image

from google-assistant-unofficial-desktop-client.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.