Quantcast
Channel: electron - Atom Discussion
Viewing all 523 articles
Browse latest View live

I successed to run Vulkan on Electron

$
0
0

I successed to run Vulkan on Electron and used such a method.

  1. I make GLFW and Vulkan programs into DLLs.
  2. Program of GLFW and Vulkan makes the Image. the Image is created as a screenshot.
    I reffer to this program.
    https://github.com/SaschaWillems/Vulkan/blob/master/examples/screenshot/screenshot.cpp
  3. The image is encoded JPEG format. Additionally, Image on JPEG format is encoded Base 64. I used libjpeg-turbo and boost.
  4. Image on Base64 format is shown on Canvas 2d in HTML.

The problem is that this program is too slow. Also, I have no idea what this program is useful for.

1 post - 1 participant

Read full topic


Ipcmain sends same response

$
0
0

(topic withdrawn by author, will be automatically deleted in 24 hours unless flagged)

1 post - 1 participant

Read full topic

Invalid Provisioning profile while uploading electron based MacOS app

$
0
0

Hello Team,

We are trying to upload MacOS app generated using electron-builder but we are getting following issue:

“ERROR ITMS-90283: “Invalid Provisioning Profile. The provisioning profile included in the bundle com.. [com...pkg/Payload/MyAppName.app] is invalid. [Invalid ‘com.apple.application-identifier’ entitlement value.] For more information, visit the macOS Developer Portal.””

We have enrolled the certificates from Apple developer account.

  1. 3rd Party Mac Developer Application certi
  2. 3rd Party Mac Installer certi
  3. Developer ID application certi
  4. Developer ID Installer certi
  5. Mac Developer certi

We have generated the Mac_OS_Distibution_Provision_Profile using bundle ID: “com..” and kept the following entitlement values in entitlements.mas.plist file:

<?xml version="1.0" encoding="UTF-8"?>

com.apple.security.app-sandbox

com.apple.security.cs.allow-jit

com.apple.security.cs.allow-unsigned-executable-memory

com.apple.security.cs.allow-dyld-environment-variables

com.apple.security.cs.disable-library-validation

com.apple.security.device.camera

com.apple.security.device.microphone

com.apple.security.device.audio-input

com.apple.security.files.user-selected.read-only

com.apple.security.files.downloads.read-write

com.apple.security.files.user-selected.read-write

com.apple.application-identifier

*.com..

com.apple.developer.team-identifier

************

com.apple.security.files.all

We even contacted Apple support but couldn’t get it resolved. Are there any mistakes we might be doing while following steps to create and upload MacOS build of electron.

1 post - 1 participant

Read full topic

Move window via setBounds is laggy on macOS

$
0
0

Hey there!

I’ve 2 windows. A main one and a “sticky” one (its position is relative to the main one). When I move the main one I want the other to move as well.

It works well on Windows and Linux. On macos, it “works” but the second window doesn’t move smoothly, it hops.

Here’s how i proceed :

this.mainWindow.on("move", () => {
	if (this.mainWindow.isMaximized()) return;
	this.setDockPosition();
});

setDockPosition = (init = false) => {
	if (!this.dockWindow || (!this.dockWindow.isVisible() && !init) || (!init && !global["settings"].attachedDock))
		return;
	let x = this.mainWindow.getPosition()[0] - this.windowsConfig.dockWindow.width - 24;
	let y = this.mainWindow.getPosition()[1] + this.mainWindow.getSize()[1] / 2 - 207;
	(this.dockWindow as BrowserWindow).setBounds({
		x: Math.floor(x),
		y: Math.floor(y),
		width: this.windowsConfig.dockWindow.width,
		height: this.windowsConfig.dockWindow.height
	});
};

What can I do to have a smooth sticky window like on Windows and Linux ?

Here is a simple repo to reproduce that behaviour : https://github.com/Deveosys/laggySetBounds

Thank you!

1 post - 1 participant

Read full topic

Hi I’m new here

My thang is

How can i see changes i made from frappe App API in Atom

$
0
0

HI ATOM
please help in this
i am working on Frappe FrameWork For customization i chose ATOM as my Text editor
now i want to see any change i make from the browser with frappe UI i want see how the code changed from ATOM >
thank you for response

1 post - 1 participant

Read full topic

Get text in TextEditor mini

$
0
0

Hi everyone!

I’m dev of word-map atom package, which the target is get the text, find replacement acc. dict-pairs, delete selected text and insert new text. it is useful e.g. convert s -> σ or D->Δ with single key.

I can’t find how to get text from TextEdit with mini flag,
e.g. the pointer is in find-and-replace panel -> atom-text-editor “editor mini” object, but the code below get text always from last TextEditor without mini flag.

const editor = atom.workspace.getActiveTextEditor()
var selections = editor.getSelections()

Do you have idea how to solve it?

1 post - 1 participant

Read full topic


Load html+script in to an element

$
0
0

Is it possible to load html+script in to an element instead of opening new windows?
I managed to load successfully using node fs but new script couldn’t be executed.
I’d like to create application that look like SPA but I don’t want to use framework like react or vue.

Thanks in advance

1 post - 1 participant

Read full topic

How to use Electron Menu routing w/ Vue router "hash" mode in order to use electron:build?

$
0
0

Hi all,

I have this Electron Vue-cli app that works pretty fine when I set the router mode to “history” and call npm run electron:serve.

The problem is the blank screen and lack of responsiveness from the Menu submenus when I create the bundle through npm run electron:build (both on Linux as on Windows).

I’ve read the only router mode that would work with the electron-build would be the “hash” and not the “history”, which is the one I’ve used so far.

If I change the router mode to “hash”, though, the submenus’ win!.loadURL() method stops working, no matter what local url I put on them… both when using npm run electron:serve as through electron:build. The loadURL() works fine on router mode “history”, but not on the mode “hash”. And the mode “history” doesn’t seem to work with electron:build.

How should I change the routes when clicking on the menu items, at the main process, and when using router “hash” mode instead of the “history” mode ?

What’s the best way to use Vue routing at the Electron main process along with router “hash” mode ? Is it really by using win.loadURL() ? Why it doesn’t work on router mode type “hash” but works on mode “history” ? Why doesn’t electron:build work with router mode “history” ?

PS.: all my nav router-links work fine in all cases, the problem is with the Menu items only.

1 post - 1 participant

Read full topic

How should I change the Vue route by using an Electron Menu click() event?

$
0
0

On my builds I can route through the router-links to each component but not through the Menu click() events.

From the menu template, I try to change the route by using:
win!.loadURL(“http://localhost:8080/login”), for ex.,
but it simply goes blank (for any URL) when running the build.

Also, if I import the router and try to use route.push(), at the main process, it ends up in a lot of errors, and also doesn’t work.

If I use electron:serve, through, instead of running the build, it works fine. Although it reloads the page from the Menu, differently from the router-links, through which it keeps at the same page and simply changes the route component. I need a build that changes the route view both from the Menu as from the router-links.

So, how can I change the route of my SPA from the Electron Menu and make it run on a final build as it kind of works when running the dev project when calling electron:serve ?

I guess the info that only the “hash” router mode would work is outdated. I’m using the “history” mode and it works with other apps and with this one. The router links all work fine, including at the build. What doesn’t work here is the route change from the Menu - through the win!.loadURL() method.

How should I change the Vue route by using an Electron Menu click() event ?

Full Project:

2 posts - 2 participants

Read full topic

How to make electron support MacOS Today Extension?

$
0
0

I have checked latest electron release till now there is no any feature added for MacOS Today Extension.

2 posts - 1 participant

Read full topic

How can I enable the #elastic-overscroll-win flag in electron?

$
0
0

How can I enable the #elastic-overscroll-win flag in electron? I can’t figure it out.

1 post - 1 participant

Read full topic

IPC changes in v10.1.0?

$
0
0

I have an application that delivers messages from the main process to the renderer using something like this:

this.fullPlayerWindow.webContents.send(IpcCommands.MEDIA_CONTROL, key);

This works fine with Electron releases up to version v10.0.1, but messages don’t seem to flow for version v10.1.0. Reading the release notes, I’m not seeing anything obvious that may have changed and impacted my code. Can anyone point me in the right direction here?

Thanks,
Craig

7 posts - 2 participants

Read full topic

Popup menu outside of a window

$
0
0

Hi everyone,

Could not found an easy solution for that.

My question: What is the best approach when trying to create a menu that will pop out from a window (e.g: Pressing on a button on a window, will open a menu that will start mid window and pass the window bottom border.

My thoughts: child window, transparent, frameless.

Is there a better solution? Also worth mentioning that I need to pass the state from the top window to that window (react)

Thanks for all!

1 post - 1 participant

Read full topic


Someone very knoweldgable please teach me open source

$
0
0

goal
trying to find out how to take open source code
and make it into a working app/software

info
simplenote was made open source https://simplenote.com/2016/08/11/ios-android-and-macos-apps-now-open-source/

things i dont understand + questions

  1. i dont understand why nobody has made another simplenote, it is so well designed, instead ppl are making all these other apps that are so poorly designed. why havent ppl copy/paste this open source code and made another simplenote?

  2. longterm i want to make another simplenote (but does that have a login). i want to know what are all the specific topics i’d need to know to do this ?

  3. what in world is this https://simperium.com/overview/ - is it needed? or?

  4. why did they make this open source, very confused cos wordpress brought simplenote, i dont understand why they did?

  5. anything else that would be helpful (for goal ofc)

is there anyone on here knowledgae enoguh to answer any of these?

please answer as if i was 4 cos i know nothing about coding. i understand it takes a long time to learn coding

2 posts - 1 participant

Read full topic

Replicat the job of `webview`-s in an iframe!

$
0
0

Hello there! I’m trying to build a custom element that can load content just like webview-s.

class xView extends HTMLElement{
  constructor(){
    super();
    this.attachShadow({mode: 'open'});
    this.type = this.getAttribute("type");
    if(this.type == "web"){
      var iframe = document.createElement("iframe"), style = document.createElement("style");
      style.innerHTML = ":host { display: flex; }";
      iframe.setAttribute("style", "flex: 1 1 auto; width: 100%; border: 0px;");
      iframe.setAttribute("sandbox", "allow-forms allow-popups allow-scripts allow-same-origin");//allow-pointer-lock allow-top-navigation
      this.shadowRoot.appendChild(style);
      this.shadowRoot.appendChild(iframe);
      [...]
    }
    [...]
  }
}
customElements.define('x-view', xView);

I got the element to load content correctly. But I’m wondering, how can I preload content to the iframe just like the webview element?

1 post - 1 participant

Read full topic

Electron Global Media Keys on Mac OS

$
0
0

I’ve been working on an Electron app that controls web-based audio. I’ve been struggling with media keys on Mac OS (latest) for a while and I’m not sure what to try at this point.

After https://github.com/electron/electron/issues/20788 was marked completed, I was still having issues and wrote up issue #22405. The last version that worked consistently for me was Electron 7.x. Anything newer than that generally fails to capture the media keys, despite no errors during registration. With that said, the https://github.com/salomvary/soundcleod project is using Electron 8.x and that works on my Mac. So, I know that at least that version should work despite not working for me.

Can anyone offer any thoughts about what I might be doing wrong that cause media keys not to work correctly after version 7.x? I can add that I have not had the same issues with Ubuntu Linux, but only with Mac.

Thanks,
Craig

1 post - 1 participant

Read full topic

Session setProxy not working with http

$
0
0

I am using webContents.session.setProxy and it works with socks. but with http/https it is not working.

I am using this code:
session.setProxy({proxyRules:socks5://xxx.xxx.xxx.xxx:xxxx}, function() {}) works

session.setProxy({proxyRules:http://xxx.xxx.xxx.xxx:xxxx}, function() {}) Not working

Any reason or the syntax for http is wrong?

1 post - 1 participant

Read full topic

Not able to link BrowserView accessibility tree to the main accessibility tree

$
0
0

Problem description

I have a use case where I have embedded a browser view inside browser window. Since browser view is not part of the DOM hierarchy hence the accessibility tree is not linked to the main window(parent browser window).

So my use case is to link the browser view accessibility tree with the main window accessibility tree such that screen readers(JAWS/NVDA) are able to enumerate all the possible landmarks for navigation

** Expected Behavior**

There should be a way to link the accessibility tree of browser view to the main AX tree.

Actual Behavior

No way to link the accessibility tree of browser view.

1 post - 1 participant

Read full topic

Viewing all 523 articles
Browse latest View live