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.

Command for Set-Clipboard (-Path and -LiteralPath) parameter no longer exist

See original GitHub issue

In version 5.0 and 5.1 there was a -Path and -LiteralPath parameter for Set-Clipboard.

Why was -LiteralPath and -Path removed or is that an oversight not to include them?

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:4
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
KalleOlaviNiemitalocommented, May 28, 2022

Instead of FILE_NAME, one could use text/uri-list with File URI Specification, like in Drag-and-Drop Protocol for the X Window System (XDND). This would be suitable for copying multiple file references. Or even use both FILE_NAME and text/uri-list target atoms, but that would require changes in xclip, which currently supports only one target atom at a time.

1reaction
KalleOlaviNiemitalocommented, Nov 21, 2022

For X11, Inter-Client Communication Conventions Manual (ICCCM) version 2.0 section 2.6.2 mentions the FILE_NAME target atom, which could be used for Set-Clipboard -LiteralPath. The xclip program appears to support -target FILE_NAME.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Path - How do I find the version of PowerShell required?
I would like to know the version of PowerShell required for this command. If I select the Set-Clipboard and press F1 in ISE...
Read more >
Resolve-Path (Microsoft.PowerShell.Management)
Specifies the path to be resolved. The value of the LiteralPath parameter is used exactly as typed. No characters are interpreted as wildcard...
Read more >
Set-Clipboard (Microsoft.PowerShell.Management)
Indicates that the cmdlet does not clear the clipboard and appends content to it. Type: SwitchParameter. Position: Named. Default value: None. Accept pipeline ......
Read more >
Set-Location - PowerShell Command - PDQ
Specifies a path of the location. The value of the LiteralPath parameter is used exactly as it is typed. No characters are interpreted...
Read more >
ToolFunctions.ps1 0.7.0
Asserts that a path exists. Throws if the path does not exist. .PARAMETER PassThru. True to return the path. #> function Assert-Path {...
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