this app triggers the dbus filepicker to select a file, then uploads it to a pastebin service.
-
when you run the app, it opens the system filepicker using dbus.
-
after selecting a file, the app uploads it to the pastebin service.
-
the app returns the URL of the uploaded file.
-
dbus (for the filepicker)
-
a pastebin service like 0x0.st
-
set PASTEBIN_URL env variable
-
set the AUTH_KEY and AUTH_PARAM environment variable if your pastebin service requires an API key.
-
run the app:
go run .
-
select a file using the filepicker.
-
the app will copy the url of the uploaded file to clipboard
- this app is designed for linux systems with dbus support.
- make sure the pastebin service is accessible and the API key is valid.