bassmanitram / actions-for-nautilus

An extension to the Gnome "Files" file manager that allows you to add arbitrary actions to the file selection context menu.
Apache License 2.0
165 stars 16 forks source link

Static port for web interface #58

Closed Batwam closed 6 months ago

Batwam commented 6 months ago

Hello,

I am not sure if I am using the right terminology, but I noticed as I tried to bookmark the web interface for easy access in my web browser that the "port" being used seems to change every time the app is being started. Would there be a way for this port to be fixed to allow bookmark, either by default or as an option in the interface where the user can specify the port to be used? image

I'm guessing this would require some update in this file and probably a restart of nautilus to take the change into account. If ports with lower numbers are likely to be taken, perhaps limit the ports to being 10000+ or even higher number to minimise the risk of this being already being taken?

bassmanitram commented 6 months ago

Hey there - yes the terminology is right. The problem with the bookmark is that each time you start the app you (re)start the server - so it's on an arbitrary port - and when you close the browser tab the server closes too. So a bookmark won't be of any use, I'm afraid

On Sat, Jan 27, 2024 at 3:12 AM Batwam @.***> wrote:

Hello,

I am not sure if I am using the right terminology, but I noticed as I tried to bookmark the web interface for easy access in my web browser that the "port" being used seems to change every time the app is being started. Would there be a way for this port to be fixed to allow bookmark, either by default or as an option in the interface where the user can specify the port to be used? image.png (view on web) https://github.com/bassmanitram/actions-for-nautilus/assets/56710655/4c413449-591d-43bf-aad0-242ffc1a58af

— Reply to this email directly, view it on GitHub https://github.com/bassmanitram/actions-for-nautilus/issues/58, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADAKLWWITF744XQ6VLKZ25DYQRO7TAVCNFSM6AAAAABCM7U3UKVHI2DSMVQWIX3LMV43ASLTON2WKOZSGEYDGMJTG4ZDGMQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

Batwam commented 6 months ago

Thanks for the quick response and explanation. This issue can be closed 👍