KTailctl icon indicating copy to clipboard operation
KTailctl copied to clipboard

Implement Taildrop

Open f-koehler opened this issue 2 years ago • 7 comments
trafficstars

Backend features:

  • [x] Receiver process
  • [x] Config options for receiver process
  • [x] Function to send files

Frontend features:

  • [x] Settings UI for receiver process
  • [x] Send files from tray menu
  • [x] Send files from peer list
  • [ ] Progress reporting?

f-koehler avatar Apr 05 '23 21:04 f-koehler

can't change the directory

qrc:Settings.qml:122: TypeError: Property 'fileUrlToString' of object App(0x7ffcf2bdbc80) is not a function
"/home/fkoehler/Downloads/taildrop" is not a directory
Warning: client version "1.42.0-dev20230605-tcb1244d23-dirty" != tailscaled server version "1.42.0-dev20230524-tab797f0ab-dirty"

davidosomething avatar Jun 05 '23 23:06 davidosomething

@davidosomething Version 0.3.4 should appear on flathub later today. It should compute the default the default directory for taildrop automatically. The corresponding setting on the settings page should also work now. Unfortunately, the taildrop settings require a restart at the moment. Once I refactor the receiver to also do the progress reporting it should be possible to change it without restarting. First, I focused on the MVP implementation.

f-koehler avatar Jun 06 '23 14:06 f-koehler

Hi @f-koehler, is it possible to implement sending file through KDE share menu? Just like in mac os

image

Zzombiee2361 avatar Jul 07 '24 12:07 Zzombiee2361

Hi @Zzombiee2361, I think yes, in principle this would be possible and I think this would be a very useful feature. I would have to take how these custom actions are implemented and if there are any limitations when it comes to the flatpak. My best guess without investigating is that these custom commands just pass the names of selected files to some executable.

Where do you actually get this share menu? I do not have it in the Dolphin file manager but I am also running a super minimal KDE Plasma, so maybe I just need to install some additional packages.

f-koehler avatar Jul 07 '24 15:07 f-koehler

Hi @f-koehler, yes the menu is in dolphin file manager. I'm not sure why it doesn't appear on your installation, maybe you haven't enabled it yet in Configure Dolphin > Context Menu > Share.

This share menu is not only shown in dolphin, but also in other KDE apps such as okular, gwenview, spectacle, and KDE connect. After digging a bit further on how it's implemented in dolphin, it seems that it's part of KDE's purpose framework. Though I don't understand C++ well enough to understand how it would be implemented.

Zzombiee2361 avatar Jul 07 '24 18:07 Zzombiee2361

That points me in the right direction! Many thanks for digging deep ;)

f-koehler avatar Jul 08 '24 04:07 f-koehler