Repository navigation
fix(apps): normalizar nombre, cwd correcto y lanzadores con args - #6
Merged
Merged
Conversation
- _normalize() quita tildes y símbolos al comparar: el ASR es-MX transcribe "opera" como "ópera" y rompía el match exacto contra las keys de apps.json (mismo patrón que urls.py). - subprocess con cwd="/mnt/c": evita el warning "UNC paths are not supported" de CMD.EXE. - apps.json admite lista [exe, arg, ...]. Discord ahora se lanza con Update.exe --processStart Discord.exe (resiste actualizaciones; la ruta con app-1.0.9243 quedaba obsoleta en cada update). Pendiente (consola): appAction llega siempre None -> "cerrar X" no funciona; y el slot appName sin lista cerrada deja que AppIntent intercepte frases de música/URLs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problema (visto en el log)
appNamellegaba como'ópera'(tilde del ASR es-MX) yapps.pycomparaba exacto contra las keys → "No conozco esa aplicación".app-1.0.9243obsoleta (esa carpeta cambia en cada update de Discord) → error de directorio.CMD.EXEavisabaUNC paths are not supportedporque elsubprocessno pasabacwd.Cambios (bucket de código)
_normalize()quita tildes/símbolos y compara así (comourls.py).subprocess.run(..., cwd="/mnt/c")en abrir y cerrar.apps.jsonadmite valor lista[exe, arg, ...]; Discord →Update.exe --processStart Discord.exe.Pendiente (bucket de consola, en otra sesión)
appActionllega siempreNone→ "cerrar X" no funciona. Necesita slot typeAPP_ACTION+ utterances{appAction} {appName}.appNamesin lista cerrada →AppIntentintercepta "github", "hip hop", etc. Necesita slot type restringidoAPP_NAMES. Alternativa de fondo: resolver dinámico de apps (Get-StartApps+ fuzzy match) — pendiente de brainstorm.