Skip to content

Commit

Permalink
Fix "Copy URL" for pasting into Terminal, closes #2853
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekmach committed Nov 8, 2024
1 parent cb04745 commit 6021ddf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rel/app/macos/Sources/Livebook/Livebook.swift
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,8 @@ class AppDelegate: NSObject, NSApplicationDelegate {
func copyURL() {
let pasteboard = NSPasteboard.general
pasteboard.clearContents()
pasteboard.setData(url!.data(using: .utf8), forType: NSPasteboard.PasteboardType.URL)
pasteboard.setString(url!, forType: .URL)
pasteboard.setString(url!, forType: .string)
}

@objc
Expand Down

0 comments on commit 6021ddf

Please sign in to comment.