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

Drag and drop not working properly for Firefox images #1568

Open
NatoSkato opened this issue Jun 23, 2024 · 1 comment
Open

Drag and drop not working properly for Firefox images #1568

NatoSkato opened this issue Jun 23, 2024 · 1 comment
Labels

Comments

@NatoSkato
Copy link

NatoSkato commented Jun 23, 2024

Hydrus version

v579

Qt major version

Qt 6

Operating system

Windows 10

Install method

Installer

Install and OS comments

No response

Bug description and reproduction

  1. Upon dragging an image from Firefox to the hydrus client, rather than beginning a url import a file import begins which targets a file as such: C\Users\User\AppData\Local\Temp\name.bmp
  2. Even if I try to import this way it comes up as "ignored".

This works even if I open the image in a new tab and seems to only work if I inspect element and then drag over the image source link.
Dragging and dropping to other things such as paint or discord still works.
This issue seems to not occur on chromium. I would rather keep using firefox and am hoping there is an easy fix for this.

Log output

No response

@NatoSkato NatoSkato added the bug label Jun 23, 2024
@bbappserver
Copy link
Contributor

The way drag and drop works is that the system says there is something on the clipboard(yes technically internally systems treat drag and drop as another clipboard). Hydrus has no control over what the sending application puts on the clipboard. It just reads what is on the clipboard.

  • In the case of chrome it must put the http url of the file on the clipboard
  • In the case of Firefox it downloads the file at a temporary location and then puts the path of the temporary location on the clipboard. The behaviour is different when you drag the link because it instead puts the url on the clipboard.

@hydrusnetwork Hydrus probably should not be ignoring the file:// scheme since I suspect that's what gets pooped out of the clipboard in this instance. But it should maybe not consider file:// urls as known urls.

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

No branches or pull requests

2 participants