lint fix.

This commit is contained in:
Miroslav Šedivý
2021-01-18 15:31:00 +01:00
parent 8f60041b2d
commit bd062d3949
3 changed files with 8 additions and 8 deletions

View File

@ -9,7 +9,7 @@ func (manager *DesktopManagerCtx) HandleFileChooserDialog(uri string) error {
defer mu.Unlock()
// TOOD: Use native API.
cmd := exec.Command(
cmd := exec.Command(
"xdotool",
"search", "--name", "Open", "windowfocus",
"sleep", "0.2",
@ -52,7 +52,7 @@ func (manager *DesktopManagerCtx) IsFileChooserDialogOpen() bool {
defer mu.Unlock()
// TOOD: Use native API.
cmd := exec.Command(
cmd := exec.Command(
"xdotool",
"search", "--name", "Open", "windowfocus",
)

View File

@ -58,14 +58,14 @@ func (manager *DesktopManagerCtx) GetScreenSize() *types.ScreenSize {
func (manager *DesktopManagerCtx) SetKeyboardMap(kbd types.KeyboardMap) error {
// TOOD: Use native API.
cmd := exec.Command("setxkbmap", "-layout", kbd.Layout, "-variant", kbd.Variant)
cmd := exec.Command("setxkbmap", "-layout", kbd.Layout, "-variant", kbd.Variant)
_, err := cmd.Output()
return err
}
func (manager *DesktopManagerCtx) GetKeyboardMap() (*types.KeyboardMap, error) {
// TOOD: Use native API.
cmd := exec.Command("setxkbmap", "-query")
cmd := exec.Command("setxkbmap", "-query")
res, err := cmd.Output()
if err != nil {
return nil, err