dictation-toolbox / Caster

Dragonfly-Based Voice Programming and Accessibility Toolkit
https://dictation-toolbox.github.io/Caster/
Other
340 stars 121 forks source link

Bringme Prep Linux #855

Closed LexiconCode closed 3 years ago

LexiconCode commented 3 years ago

Description

This update get_clipboard_files to work with Linux and default_browser_command to work cross-platform. This lays the groundwork for Bringme to be updated for Linux.

Related Issues

https://github.com/dictation-toolbox/Caster/issues/680

Motivation and Context

Windows has a clipboard formats CF_HDROP which returns a list of files/folders. There is no equivalent for CF_HDROP in Linux. Files and folders are represented in different ways within the clipboard depending on distribution.

Here's some work I've done for Linux.

How Has This Been Tested

This has been tested on the default windows manager Thunar and Gnome with Ubuntu/Pop_os/Debian.

The function can be called with get_clipboard_files(folders=False) or true. Then make sure to have files/folders in the clipboard.

Types of changes

Checklist

Maintainer/Reviewer Checklist

LexiconCode commented 3 years ago

@kendonB when you get a chance could you test this out with your current implementation?