mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-08-08 14:38:30 -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 (
|
||||
"context"
|
||||
"net"
|
||||
"time"
|
||||
|
||||
"github.com/AvengeMedia/DankMaterialShell/core/internal/matugen"
|
||||
@@ -14,7 +13,7 @@ type MatugenQueueResult struct {
|
||||
Message string `json:"message,omitempty"`
|
||||
}
|
||||
|
||||
func handleMatugenQueue(conn net.Conn, req models.Request) {
|
||||
func handleMatugenQueue(conn *models.Conn, req models.Request) {
|
||||
opts := matugen.Options{
|
||||
StateDir: models.GetOr(req, "stateDir", ""),
|
||||
ShellDir: models.GetOr(req, "shellDir", ""),
|
||||
@@ -70,7 +69,7 @@ func handleMatugenQueue(conn net.Conn, req models.Request) {
|
||||
}
|
||||
}
|
||||
|
||||
func handleMatugenStatus(conn net.Conn, req models.Request) {
|
||||
func handleMatugenStatus(conn *models.Conn, req models.Request) {
|
||||
queue := matugen.GetQueue()
|
||||
models.Respond(conn, req.ID, map[string]bool{
|
||||
"running": queue.IsRunning(),
|
||||
|
||||
Reference in New Issue
Block a user