Francesco149 / sharenix

A ShareX clone for Linux and FreeBSD.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ShareNix hangs

GGORG0 opened this issue · comments

commented

When I run any of the ShareNix commands, it shows a GTK warning and then hangs. Output and config below:

❯ sharenix -g -m=fs
Debug: Parsing config...

(process:5639): Gtk-WARNING **: 11:15:45.957: Locale not supported by C library.
        Using the fallback 'C' locale.

config (~/.sharenix.json):

{
  "DefaultFileUploader": "uguu.se",
  "DefaultImageUploader": "SharX",
  "DefaultUrlShortener": "waa.ai",
  "XineramaHead": 0,
  "NotificationTime": 30,
  "NotifyUploading": true,
  "NotifyCommand": "",
  "ClipboardTime": 5,
  "SaveFolder": ".local/share/sharenix",
  "OrganizedFolders": false,

  "Services": [
    {
      "Name": "waa.ai",
      "RequestType": "GET",
      "RequestURL": "https://api.waa.ai/shorten",
      "Arguments": {
        "url": "$input$"
      },
      "URL": "$json:data.url$",
      "DeletionURL": "$json:data.delete_link$"
    },
    {
      "Name": "uguu.se",
      "RequestType": "POST",
      "RequestURL": "https://uguu.se/api.php?d=upload-tool",
      "FileFormName": "file"
    },
    {
      "Name": "imgur.com",
      "RequestType": "POST",
      "Headers": {
        "Authorization": "Client-ID b972ecca954f246"
      },
      "RequestURL": "https://api.imgur.com/3/image",
      "FileFormName": "image",
      "Arguments": {
        "type": "file"
      },
      "URL": "$json:data.link$",
      "DeletionURL": "https://imgur.com/delete/$json:data.deletehash$"
    },
    {
      "Name": "owncloud (demo)",
      "RequestType": "PUT",
      "RequestURL": "https://demo.owncloud.org/remote.php/webdav/%yy-%mo-%d_%h-%mi-%s_$n$$extension$",
      "Username": "test",
      "Password": "test",
      "ResponseType": "RedirectionURL"
    },
    {
      "Arguments": {
        "key":"my_key_i_wont_show",
        "uid":"0"
      },
      "Body": "MultipartFormData",
      "FileFormName": "image",
      "Name": "SharX",
      "RequestType": "POST",
      "RequestURL": "https://sharx.host/upload",
      "URL": "$json:url$"
    }
  ]
}
commented

also, im using KDE Plasma on Arch Linux

commented

Ok, it works. Seems like I had DISPLAY set to some garbage in my zshrc.