All Projects → sireliah → dragit

sireliah / dragit

Licence: GPL-3.0 license
Application for intuitive file sharing between devices.

Programming Languages

rust
11053 projects
shell
77523 projects

Projects that are alternatives of or similar to dragit

szyszka
Szyszka is fast and powerful file renamer
Stars: ✭ 649 (+436.36%)
Mutual labels:  gtk
liblarch
A Python library to easily handle complex data structures, with a GTK binding
Stars: ✭ 28 (-76.86%)
Mutual labels:  gtk
ElementaryLua
Lua + GTK + Granite + Flatpak
Stars: ✭ 19 (-84.3%)
Mutual labels:  gtk
elementaryOS-devbook
Design and build apps for elementary OS.
Stars: ✭ 61 (-49.59%)
Mutual labels:  gtk
gtk-sni-tray
A StatusNotifierHost widget written using the gtk+3 bindings for haskell provided by gi-gtk.
Stars: ✭ 24 (-80.17%)
Mutual labels:  gtk
flate
🌈 Colorful dark themes
Stars: ✭ 35 (-71.07%)
Mutual labels:  gtk
sprawl
Alpha implementation of the Sprawl distributed marketplace protocol.
Stars: ✭ 27 (-77.69%)
Mutual labels:  libp2p
p2p-forwarder
P2P Forwarder - a tool for farwarding tcp/udp ports. Made using libp2p.
Stars: ✭ 31 (-74.38%)
Mutual labels:  libp2p
gladis
[Deprecated] Easily import Glade-generated UI files into Rust code.
Stars: ✭ 27 (-77.69%)
Mutual labels:  gtk
scalanative-gtk
scala-native bindings for Gtk+, GLib, ...
Stars: ✭ 26 (-78.51%)
Mutual labels:  gtk
Spreadsheet
A spreadsheet app designed for elementary OS
Stars: ✭ 66 (-45.45%)
Mutual labels:  gtk
AdwaitaExtended
A modified default GNOME/GTK theme with some extras/enhancements/additions.
Stars: ✭ 35 (-71.07%)
Mutual labels:  gtk
devdocs-desktop
GTK3 application for DevDocs API documentation browser.
Stars: ✭ 102 (-15.7%)
Mutual labels:  gtk
go-libp2p-http
HTTP on top of libp2p
Stars: ✭ 49 (-59.5%)
Mutual labels:  libp2p
web3.storage
⁂ The simple file storage service for IPFS & Filecoin
Stars: ✭ 417 (+244.63%)
Mutual labels:  libp2p
notifications
Gtk Notifications Server
Stars: ✭ 39 (-67.77%)
Mutual labels:  gtk
ThemeChanger
Theme changing utility for Linux, etc.
Stars: ✭ 14 (-88.43%)
Mutual labels:  gtk
Myxer
A modern Volume Mixer for PulseAudio.
Stars: ✭ 190 (+57.02%)
Mutual labels:  gtk
kagome
Kagome - C++17 implementation of Polkadot Host
Stars: ✭ 119 (-1.65%)
Mutual labels:  libp2p
peer-id-generator
Vanity public key generator for use with IPFS and IPNS
Stars: ✭ 27 (-77.69%)
Mutual labels:  libp2p

Dragit - intuitive file sharing application

Dragit

Application for intuitive file sharing between devices.

Build Status Dependency Status License

Dragit helps you share files between computers in the same network.

  • useful when you want to send file from one computer to another
  • requires no configuration
  • single purpose - does only one thing and nothing more
  • works on Linux and Windows machines
  • automatically checks the firewalld config on Linux distros and offers opening the ports

The application uses mDNS for automatic device discovery with help of libp2p library. The GUI is implemented in gtk-rs.

Important note: This is software in development phase and you should use it at your own risk.

Contents

Preview

Dragit screenshot

How to install

Using Flatpak

If you don't know how to use Flatpak yet, please follow the setup guide.

Then install Dragit as follows:

flatpak install com.sireliah.Dragit

Download recent release

Alternatively you can download the latest release for your OS and unpack it. Currently you can use dragit on 64-bit Linux and Windows (Please check Windows requirements for details).

How to use

  1. Start the application on two machines:

For Linux with Flatpak: run Dragit from installed applications.

For Linux executable:

./dragit

For Windows:

dragit.exe
  1. Wait for the two dragit instances to discover each other. You should see new drop zone area with IP address of the host.
  2. Drag a file and drop it on the drop zone.
  3. In the other window you will be asked whether you would like to accept the file. Probably you'd like to answer "Yes".
  4. File will be transferred and saved in the Downloads directory (which is customizable).
  5. Done!

demo

Troubleshooting

Dealing with firewalld

Dragit automatically detects firewall configuration on the host machine to help resolve the networking problems. The check is done against firewalld daemon and uses its D-Bus interface. User is asked for permissions, because some systems require authorization for inspecting firewalld rules (such as Ubuntu).

If Dragit detects missing port (mDNS or application one), then application can modify configuration of firewalld.

The check is done only on Linux and only on first run of the application.

Dragit configuration

Dragit stores config file under $HOME/.config/dragit/config.toml on Linux and in standard configuration paths on the other platforms (such as Windows). If you wish to change port under which Dragit is running, change it there. You can also re-trigger firewall check by changing the value of firewall_checked setting.

Glibc versions on Linux

This application depends on glibc library, which is provided by most of the Linux distros. Dragit is built automatically using the Github Actions under the ubuntu-latest image (currently Ubuntu 20.04 LTS), which means that your Linux distribution should have glibc version equal or higher than the one supported by ubuntu-latest. Otherwise it might happen that you see this error:

/lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.29 not found

This means that glibc on your machine is too old and you might consider OS upgrade or try to build Dragit yourself.

To check highest glibc version on your distro, you can inspect ldd.

$ ldd --version
ldd (GNU libc) 2.32

(...)

Development

How to build on Linux

cargo run

Note: there are some GTK libraries that are required to build the project locally.

For Ubuntu and Debian-family distros, please check the build system pipeline to get always up-to-date list. For Fedora this list roughly translates to:

atk-devel
cairo-gobject-devel
dbus-devel
gdk-pixbuf2-devel
glib2-devel
gtk3-devel
pango-devel

How to build on Windows

Dragit works best on x86_64-pc-windows-msvc target. While Rust part of the application is relatively easy to build, the GTK bindings part of it requires setup of the GTK environment. Please refer to the release build pipeline for inspiration.

Starting two instance on the same machine

You can run two dragit instances on the same machine for testing. No problem with that!

  1. Edit ~/.config/dragit/config.toml (this might be different path on your OS/distro)
  2. Set port value to 0, which will cause the application to pick a random port on startup
  3. Run one instance with cargo run
  4. Run another instance, with APPLICATION_NAME=some.other.Name cargo run
  5. The two instances should successfully discover each other

Windows requirements

It might happen that you don't have the vcruntime140_1.dll installed in your system and the application won't start. You can fix that by installing the VC++ 2019 runtime dll.

In the future releases this library will be installed automatically.

Performance

Please build in the release mode to get the best performance (roughly 16-20x faster).

$ cargo build --release

$ ./target/release/dragit

Contributing

Contributions to Dragit are welcome and encouraged!

You can help in following aspects:

  • suggest new ideas
  • implement features
  • provide bug reports
  • fix identified bugs
  • review existing code
  • improve the documentation

Before creating a new Pull Request, please open an Issue containing explanation of the idea or a problem. This will help us to coordinate works and discuss solutions.

Code quality

Format the code using cargo fmt.

While not every feature is testable, please include tests for the new functionalities that could benefit from tests. Examples:

  • utility functions: unit tests
  • libp2p/network: integration tests
  • Gtk: it's enough to test manually

Compatibility

Dragit works on Linux and Windows operating systems. When developing new features, please have in mind that both platforms should be supported.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].