mirror of
https://github.com/xaionaro-go/streamctl.git
synced 2025-10-05 07:26:53 +08:00
Fix errors on starting on Android
This commit is contained in:
@@ -381,16 +381,19 @@ func (p *Panel) initStreamDConfig(
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("unable to get the config: %w", err)
|
return fmt.Errorf("unable to get the config: %w", err)
|
||||||
}
|
}
|
||||||
|
if cfg.Backends == nil {
|
||||||
|
cfg.Backends = make(streamcontrol.Config)
|
||||||
|
}
|
||||||
|
|
||||||
configHasChanged := false
|
configHasChanged := false
|
||||||
|
|
||||||
// TODO: move the 'git' configuration here as well.
|
// TODO: move the 'git' configuration here as well.
|
||||||
|
|
||||||
for _, platName := range []streamcontrol.PlatformName{
|
for _, platName := range []streamcontrol.PlatformName{
|
||||||
youtube.ID,
|
|
||||||
twitch.ID,
|
twitch.ID,
|
||||||
kick.ID,
|
kick.ID,
|
||||||
obs.ID,
|
obs.ID,
|
||||||
|
youtube.ID,
|
||||||
} {
|
} {
|
||||||
if streamcontrol.IsInitialized(cfg.Backends, platName) {
|
if streamcontrol.IsInitialized(cfg.Backends, platName) {
|
||||||
continue
|
continue
|
||||||
|
25
pkg/windowmanagerhandler/window_manager_handler_android.go
Normal file
25
pkg/windowmanagerhandler/window_manager_handler_android.go
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
//go:build android
|
||||||
|
// +build android
|
||||||
|
|
||||||
|
package windowmanagerhandler
|
||||||
|
|
||||||
|
import (
|
||||||
|
"context"
|
||||||
|
)
|
||||||
|
|
||||||
|
type PlatformSpecificWindowManagerHandler struct{}
|
||||||
|
type WindowID uint64
|
||||||
|
type PID uint64
|
||||||
|
type UID uint64
|
||||||
|
|
||||||
|
func (wmh *WindowManagerHandler) init() error {
|
||||||
|
return nil //fmt.Errorf("the support of window manager handler for this platform is not implemented, yet")
|
||||||
|
}
|
||||||
|
|
||||||
|
func (PlatformSpecificWindowManagerHandler) Close() error {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (PlatformSpecificWindowManagerHandler) WindowFocusChangeChan(ctx context.Context) <-chan WindowFocusChange {
|
||||||
|
return nil
|
||||||
|
}
|
@@ -1,5 +1,5 @@
|
|||||||
//go:build linux
|
//go:build linux && !android
|
||||||
// +build linux
|
// +build linux,!android
|
||||||
|
|
||||||
package windowmanagerhandler
|
package windowmanagerhandler
|
||||||
|
|
||||||
|
@@ -1,3 +1,6 @@
|
|||||||
|
//go:build linux && !android
|
||||||
|
// +build linux,!android
|
||||||
|
|
||||||
package windowmanagerhandler
|
package windowmanagerhandler
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
//go:build linux
|
//go:build linux && !android
|
||||||
// +build linux
|
// +build linux,!android
|
||||||
|
|
||||||
package windowmanagerhandler
|
package windowmanagerhandler
|
||||||
|
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
//go:build !linux
|
//go:build !linux && !android
|
||||||
// +build !linux
|
// +build !linux,!android
|
||||||
|
|
||||||
package windowmanagerhandler
|
package windowmanagerhandler
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user