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

Support initiating taildrop by opening file in Trayscale #134

Open
Jacalz opened this issue Jul 5, 2024 · 2 comments
Open

Support initiating taildrop by opening file in Trayscale #134

Jacalz opened this issue Jul 5, 2024 · 2 comments

Comments

@Jacalz
Copy link
Contributor

Jacalz commented Jul 5, 2024

Similar to how you can share files, images etc. on iOS to the Tailscale app in order to initiate a taildrop, it would be nice to integrate the same kind of functionality in Trayscale. You could then for example open Nautilus and then select a file (or folder) to open in Trayscale. This could then bring up a window to select which device to send to.

The idea is basically the same as what is shown in the macOS videos here: https://tailscale.com/kb/1106/taildrop

I implemented something similar in my application Rymdport in and it should more or less be as simple as adding a %F (or %U) to the desktop file's Exec parameter (Jacalz/rymdport@ccc2a70) and then updating the application to read the command line parameters. I suppose it might be doable with DBUS to pass the information to a running Trayscale instance as well but I haven't looked into how that works.

@DeedleFake
Copy link
Owner

I think Gtk can take care of the passing arguments to an existing instance. It already takes care of deduplicating instances as is, and the existing GtkApplication instance can be "activated" when there's an attempt to start a new instance. I'm pretty sure that it lets you pass some arguments to the existing instance when that happens. I'll have to look into the APIs involved.

@Jacalz
Copy link
Contributor Author

Jacalz commented Jul 6, 2024

Sounds good. Didn't know that Gtk handled all that. I might have to steal some of those ideas and integrate them into Fyne :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants