Error while parsing theme: element-icon{size:px;} Parser error: unexpected pixels #216
Closed
1 task done
Labels
bug
Something isn't working
Already reported ? *
Regression?
Yes
System Info and Version
System:
Host: archlinux Kernel: 6.13.2-arch1-1 arch: x86_64 bits: 64
Desktop: Hyprland v: 0.47.2 Distro: Arch Linux
Machine:
Type: Laptop System: ASUSTeK product: VivoBook_ASUSLaptop X515EA_X515EA
v: 1.0 serial:
Mobo: ASUSTeK model: X515EA v: 1.0 serial:
UEFI: American Megatrends LLC. v: X515EA.314 date: 06/02/2023
Battery:
ID-1: BAT0 charge: 21.6 Wh (80.6%) condition: 26.8/37.1 Wh (72.3%)
volts: 7.8 min: 7.8
CPU:
Info: dual core model: 11th Gen Intel Core i3-1115G4 bits: 64 type: MT MCP
cache: L2: 2.5 MiB
Speed (MHz): avg: 1947 min/max: 400/4100 cores: 1: 1947 2: 1947 3: 1947
4: 1947
Graphics:
Device-1: Intel Tiger Lake-LP GT2 [UHD Graphics G4] driver: i915 v: kernel
Device-2: Sonix USB2.0 HD UVC WebCam driver: uvcvideo type: USB
Display: wayland server: X.org v: 1.21.1.15 with: Xwayland v: 24.1.5
compositor: Hyprland v: 0.47.2 driver: X: loaded: modesetting dri: iris
gpu: i915 resolution: no compositor data resolution: 1920x1080
API: EGL Message: EGL data requires eglinfo. Check --recommends.
Info: Tools: x11: xprop
Audio:
Device-1: Intel Tiger Lake-LP Smart Sound Audio driver: snd_hda_intel
API: ALSA v: k6.13.2-arch1-1 status: kernel-api
Server-1: PipeWire v: 1.2.7 status: active
Network:
Device-1: Intel Wi-Fi 6 AX201 driver: iwlwifi
IF: wlan0 state: up mac: 70:32:17:de:f4:bd
Bluetooth:
Device-1: N/A driver: btusb type: USB
Report: btmgmt ID: hci0 state: up address: 70:32:17:DE:F4:C1 bt-v: 5.1
RAID:
Hardware-1: Intel Volume Management Device NVMe RAID Controller driver: vmd
Drives:
Local Storage: total: 238.47 GiB used: 16.9 GiB (7.1%)
ID-1: /dev/nvme0n1 vendor: Micron model: 2450 MTFDKBA256TFK
size: 238.47 GiB
Partition:
ID-1: / size: 232.69 GiB used: 16.72 GiB (7.2%) fs: ext4 dev: /dev/nvme0n1p2
ID-2: /boot size: 1022 MiB used: 188 MiB (18.4%) fs: vfat
dev: /dev/nvme0n1p1
Swap:
ID-1: swap-1 type: zram size: 3.73 GiB used: 0 KiB (0.0%) dev: /dev/zram0
Sensors:
System Temperatures: cpu: 47.0 C mobo: N/A
Fan Speeds (rpm): cpu: 2400
Info:
Memory: total: 8 GiB note: est. available: 7.46 GiB used: 2.68 GiB (35.9%)
Processes: 215 Uptime: 57m Shell: Zsh inxi: 3.3.37
KooL's Dots version
v2.3.11
Description
Issue:
Rofi fails to parse themes due to an invalid size:px; declaration in element-icon.
While pressing super + w its showing this error
Error Message: cant select wallpaper
Error while parsing theme: element-icon{size:px;}
Parser error: unexpected pixels
How to reproduce
Sure! Here's the text version for your bug report:
Title: Rofi theme parsing error due to incorrect syntax in
element-icon
Description:
Rofi fails to load the theme when there is an invalid syntax in the theme file, specifically in the
element-icon
section, such as an incorrectly specifiedsize
.Steps to Reproduce:
Download or Create the Faulty Theme File
Save the following incorrect Rofi theme as
faulty-theme.rasi
:Apply the Theme in Rofi
Run the following command in a terminal:
Observe the Error
Rofi will fail to parse the theme and return an error like:
Expected Behavior:
Rofi should load the theme without syntax errors.
Actual Behavior:
Rofi fails due to an invalid
size
value inelement-icon
.This should be good to go for a bug report submission!
install logs, images or videos
No response
The text was updated successfully, but these errors were encountered: