Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Any plan about customize startURL? #3181

Open
secoba opened this issue Jan 7, 2024 · 3 comments
Open

Any plan about customize startURL? #3181

secoba opened this issue Jan 7, 2024 · 3 comments
Labels
awaiting feedback More information is required from the requestor Enhancement New feature or request

Comments

@secoba
Copy link

secoba commented Jan 7, 2024

Is your feature request related to a problem? Please describe.

customize startURL, change default wails://

Describe the solution you'd like

export "const startURL = "wails://wails/""

Describe alternatives you've considered

No response

Additional context

image image
@secoba secoba added the Enhancement New feature or request label Jan 7, 2024
@leaanthony
Copy link
Member

Hi! Thanks for opening this. What are the reasons for wanting this? Thanks.

@leaanthony leaanthony added the awaiting feedback More information is required from the requestor label Jan 7, 2024
@secoba
Copy link
Author

secoba commented Jan 8, 2024

Hi~ sometimes will callback app custom url schema.

@W1M0R
Copy link

W1M0R commented May 23, 2024

@leaanthony @stffabi I'm also interested in being able to configure the startUrl (especially for windows):

const startURL = "http://wails.localhost/"

I'm running an Echo server in a goroutine within my wails app and rendering html using the htmx library. I want the startUrl to point to the url of the Echo server, e.g. http://localhost:8090. Ideally, when I configure the Wails App options, I'd like to be able to specify a StartURL option, that would then be used instead of the built-in hard-coded startUrl. I'd be fine with loosing the wails rpc functionality, since most of by app is implemented by my Echo server backend.

This is still a desktop app, but based on the HATEOS paradigm (https://intercoolerjs.org/2016/05/08/hatoeas-is-for-humans.html), which prefers html and server-side state, with minimal javascript.

This issue is probably also related to:

  1. use a localhost server instead of wails custom protocol (https://wails.localhost) #2116
  2. use a localhost server instead of wails custom protocol (https://wails.localhost) #2116 (comment)
  3. Open URL directly #1516
  4. Open URL directly #1516 (comment)
  5. Open URL directly #1516 (comment)

I'm currently trying to replace wails with webview/webview-go directly, just because I want to navigate to my own url, but this is proving to be quite a pain, especially with cross-compilation and CGO. Wails solves quite a few problems very well, and I'd prefer to just stick with Wails if I could.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting feedback More information is required from the requestor Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants