-
Notifications
You must be signed in to change notification settings - Fork 27
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
Linux support through a web app / or better #328
Comments
what do you need ? |
We have a .Web project that we use for mainly development. We would need to make an easy to install package from the .Web project.
Haven't put too much thought yet. If there were an easy to use package, either through a publish profile or build profile, I could then start cleaning it up a little and producing the desired package with each release. Any help is welcome, and would make this move faster for sure. |
From a Discord comment: Use https://github.com/webview/webview instead of a full-blown browser. it also uses xdotools to move the window to the mouse afterwards, make it always-on-top, and handles the startup of the webserver |
As writed on discord, it's working for me on Fedora Get lastest source, edit Sidekick.sln and comment those 2 lines :
Run
|
Nice library for a potential cross platform wrapper for Blazor: https://github.com/JinShil/BlazorWebView |
I followed all the steps on Arch Linux and was able to run the application. However, the static files (for rendering) did not load, and I received the following warning: warn: Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware[16]
The WebRootPath was not found: /tmp/Sidekick/wwwroot. Static files may be unavailable. |
my bad, after build needed to run: cd src/Sidekick.Web/
dotnet ./bin/Debug/net8.0/Sidekick.dll And now everything works as expected. I found the required sequence of actions here: |
Its doesnt like the oneliner |
I wrote a bash script which searches for items in the default browser. Can be bound to any hotkey. Server needs to be running already, and this assumes you are on wayland and have wl-clipboard and xdotool installed. #!/bin/bash
# Copy to clipboard and search in Sidekick
original_clip=$(wl-paste) # store what's currently on the clipboard
xdotool keydown ctrl key c keyup ctrl # type ctrl + c in game window using xdotool because proton uses xwayland
sleep 0.1 # sleep for reasons
new_clip=$(wl-paste)
# Check if we copied an item, then encode it to base64
if [[ $new_clip == *"Item Class"* ]] ; then
encoded_clip=$(echo -n "$new_clip" | base64)
xdg-open "http://localhost:5000/trade/xurl_${encoded_clip}" # search for the item in browser
else
echo "Did not detect an item from PoE2"
fi
echo -n "$original_clip" | wl-copy # restore clipboard |
Massive progress made by @dotaxis on a script/tool that opens the Sidekick web app automatically. |
Any chance we could get the address/port exposed? I don't want to run this directly on my Linux machine, but would rather containerize the web server portions and the networking involved there requires opening it up beyond binding the socket on localhost only. I don't know C# very well or Blazor at all, or I'd just go implement that myself. Easier to ask and hope 😄 |
Disclaimer
This is probably not coming soon, but we will start dumping information and ideas about the eventual support.
Task list
The following task list is probably not complete and we will update it as tasks are discovered and completed.
ENM: System.Environment.SpecialFolder.ApplicationData
WIN: C:\Users\xxx\AppData\Roaming
LIN: /home/xxx/.config
OSX: /Users/xxx/.config
The text was updated successfully, but these errors were encountered: