Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Bug that shortcut clipboard doesn't work #431

Open
Royikiss opened this issue Apr 1, 2025 · 1 comment
Open

[Bug]: Bug that shortcut clipboard doesn't work #431

Royikiss opened this issue Apr 1, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@Royikiss
Copy link

Royikiss commented Apr 1, 2025

Bug Report

Description

After I updated directly from the old project, I realized that the clipboard shortcut doesn't work.($mainmod + v)

After much trial and error, I've found that only the zsh execution has this problem:)

So I guess it might be that some functions in the script are not supported by zsh

Steps to Reproduce

Honestly I don't know how to recover him, because I directly executed the update script for the current project (which is a very dangerous operation)

Actual Behavior

This is an error message:

Script is sourced
warning: database file for 'core' does not exist (use '-Fy' to download)
warning: database file for 'extra' does not exist (use '-Fy' to download)
warning: database file for 'multilib' does not exist (use '-Fy' to download)
warning: database file for 'archlinuxcn' does not exist (use '-Fy' to download)
warning: database file for 'alerque' does not exist (use '-Fy' to download)
 -> exit status 1
get_rofi_pos:6: monRes: assignment to invalid subscript range

(process:191941): Rofi-WARNING **: 20:54:29.526: Failed to parse -theme-str option: "\u001b[1;32mzsh\u001b[0m: command \u001b[1;35mNOT\u001b[0m found: \u001b[0;1m'readarray'\u001b[0m
\u001b[0;1m\u001b[1;32m[ readarray ]\u001b[0m \u001b[1;35mNOT\u001b[0m found in the system and no package provides it."

Screenshots

Image

Image

Environment

  • Linux Distro: [ArchLinux]
  • Linux Version, output of uname -a:
Linux 127.0.0.1localhost 6.13.8-arch1-1 #1 SMP PREEMPT_DYNAMIC Sun, 23 Mar 2025 17:17:30 +0000 x86_64 GNU/Linux
  • Hyprland Version, output of hyprctl version:
Hyprland 0.48.1 built from branch  at commit 29e2e59fdbab8ed2cc23a20e3c6043d5decb5cdc  (version: bump to v0.48.1).
Date: Fri Mar 28 16:16:07 2025
Tag: v0.48.1, commits: 5937
built against:
 aquamarine 0.8.0
 hyprlang 0.6.0
 hyprutils 0.5.2
 hyprcursor 0.1.12
 hyprgraphics 0.1.2

Additional Information

I realized that mapfile in the script is a bash-exclusive command, and writing it that way might reduce compatibility :(

I temporarily solved this by forcing a bash execution in keybindings.conf.

Also I have a question: how exactly is exec in keybindings.conf executed? Is it a system call like execvp style or is it an environment variable that is later specified by the developer?

@Royikiss Royikiss added the bug Something isn't working label Apr 1, 2025
@kRHYME7
Copy link
Contributor

kRHYME7 commented Apr 1, 2025

output of echo $PATH ?

I realized that mapfile in the script is a bash-exclusive command, and writing it that way might reduce compatibility :(

We have shebangs for that so bash -c command

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants