mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-08-07 05:58:28 -04:00
core: migrate to dankgo shared go modules, embed quickshell in DMS
binary to mount at runtime, -c or DMS_SHELL_DIR overrides required to explicitly override embedded configuration
This commit is contained in:
@@ -2,7 +2,6 @@ package server
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"net"
|
||||
"strings"
|
||||
|
||||
"github.com/AvengeMedia/DankMaterialShell/core/internal/server/apppicker"
|
||||
@@ -28,7 +27,7 @@ import (
|
||||
"github.com/AvengeMedia/DankMaterialShell/core/internal/server/wlroutput"
|
||||
)
|
||||
|
||||
func RouteRequest(conn net.Conn, req models.Request) {
|
||||
func RouteRequest(conn *models.Conn, req models.Request) {
|
||||
if strings.HasPrefix(req.Method, "network.") {
|
||||
if networkManager == nil {
|
||||
models.RespondError(conn, req.ID, "network manager not initialized")
|
||||
@@ -223,7 +222,7 @@ func RouteRequest(conn net.Conn, req models.Request) {
|
||||
}
|
||||
}
|
||||
|
||||
func handleClipboardSetConfig(conn net.Conn, req models.Request) {
|
||||
func handleClipboardSetConfig(conn *models.Conn, req models.Request) {
|
||||
cfg := clipboard.LoadConfig()
|
||||
|
||||
if v, ok := models.Get[float64](req, "maxHistory"); ok {
|
||||
|
||||
Reference in New Issue
Block a user