Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

fix(macos): disabled Copy menu item; Seatbelt scratch path not canonicalised

Abierto
#1,590 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
42/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
dart, flutter, macos
Área
desktop, security

Línea de trabajo

Read lib/features/macos/querya_platform_menu_bar.dart and locate SandboxScratchDirectory and buildMacOsSeatbeltProfile. First check how the menu actions and Seatbelt profile are built, then trace the scratch and extension root paths and inspect related tests, including a test for a /var path. Done means Copy invokes the selection intent, resolved paths match the profile, and the requested policy narrowing and escaping are covered; items 1–2 also need confirmation on a real Mac.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

bug P2 stability

Problems

  1. Copy menu item is disabled. In lib/features/macos/querya_platform_menu_bar.dart Copy is const PlatformMenuItem(label: 'Copy', shortcut: ...) with no onSelected, which Flutter renders as a disabled item. Cut / Paste / Select All call Actions.maybeInvoke. Cmd+C may not work reliably while a text field is focused.
  2. Seatbelt scratch path is not canonical. SandboxScratchDirectory uses Directory.systemTemp (/var/folders/...); /var is a symlink to /private/var, and Seatbelt subpath matches the resolved path, so (allow file-write* (subpath "<scratch>")) likely never matches and the extension cannot write to its scratch dir.
  3. Seatbelt profile is looser than documented (buildMacOsSeatbeltProfile): (allow mach-lookup), (allow process*) and (allow file-read*) outside /Users, and scratchPath / extensionRoot are interpolated into the profile without escaping quotes (see also #1560).

Tasks

  • Copy: add an onSelected using CopySelectionTextIntent.
  • Resolve symlinks for scratch and extension roots before building the profile; add a test with a /var path.
  • Narrow mach-lookup / process*, escape profile strings.

Items 1–2 need confirmation on a real Mac.

Lenguaje dominante
Dart
Estrellas
23
Forks
1
Merge medio
31 min
PR fusionados (30 d)
570

Preparar el entorno

Abrir en Codespaces

Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de QueryaHub/Querya-Desktop

Todos los issues de QueryaHub/Querya-Desktop

Issues similares

Más issues de Dart

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.