question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Copy link does not work on linux

See original GitHub issue

Scenario:

  1. Existing file in ~/Partyshare
  2. Click on Copy Link
  3. Message Link copied to your clipboard appears
  4. Trying to paste content does not contain new content (while expecting an IPFS link)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
hexagon6commented, Nov 20, 2017

Found the bug (or feature 😆 ):

diff --git a/src/ui/components/FileListItem/index.jsx b/src/ui/components/FileListItem/index.jsx
index d2fc176..a4643e5 100644
--- a/src/ui/components/FileListItem/index.jsx
+++ b/src/ui/components/FileListItem/index.jsx
@@ -30,8 +30,8 @@ const FileListItem = ({
               title="Copy link to your clipboard"
               role="button"
               onClick={() => {
-                  clipboard.writeText(url, 'selection');
-                  ipcRenderer.send(IPC_EVENT_NOTIFICATION, 'Link copied to your clipboard');
+                  clipboard.writeText(url);
+                  ipcRenderer.send(IPC_EVENT_NOTIFICATION, 'Link copied to your clipboard: ' + url);
               }}
             >
                 <span className={styles.copy_button}>

Explanation:

Instead of copying to the clipboard, it copied to the selection clipboard. I expected to press ^V and get contents, instead it is a middle click on the mouse.

Proposing to change either: A) message to reflect copy to selection clipboard B) actually copying to clipboard

0reactions
bhstahlcommented, Nov 21, 2017

@hexagon6 I think I prefer B as well, nice choice.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I copy a symbolic link? - Unix & Linux Stack Exchange
Even with -P , you can copy the target of a symbolic link to a directory on the command line by adding a...
Read more >
How to copy symbolic links? - linux - Super User
What you need is N/a(=DIR/a), and N/b->../N/a; so just copy without dereferencing, using cp -P option. I believe this is also the default...
Read more >
Copy and paste doesn't work in the terminal - Ask Ubuntu
Launch emacs in a terminal, cut is Ctrl + W and paste is Ctrl + Y . The only general paste feature will...
Read more >
How to copy contents from a directory and not symbolic link?
From cp(1) : -L, --dereference always follow symbolic links in SOURCE.
Read more >
Copy-paste doesn't work on GNU/Linux, from another program ...
It only seems to work on Windows. Copy-paste from Minetest to Minetest works (example: select something in chat, press Ctrl+C, then press Ctrl+V)....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found