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

'Error while parsing theme' And 'Parser error: syntax error, unexpected invalid property name, expecting "bracket open ('{')" or "property separator (':')"' Errors #170

Open
SamuelBanya opened this issue May 4, 2024 · 5 comments

Comments

@SamuelBanya
Copy link

I am using Linux Mint on my desktop machine.

I followed the GitHub README's instructions by doing the following actions:

  • I git cloned the directory with this command:
git clone --depth=1 https://github.com/adi1090x/rofi.git
  • I then ran the related setup commands:
cd rofi
chmod +x setup.sh

I then launched 'rofi' and am getting this error:

The following errors were detected when starting rofi:

Error while parsing theme: /home/sam/.config/rofi/config.rasi
Parser error: syntax error, unexpected invalid property name, expecting "bracket open ('{')" or "property separator (':')"

Location: line 54 column 5 to line 54 column 6
File '/home/sam/.config/rofi/config.rasi'

Related screenshot:
RofiScreenshot

Any idea on what I am doing wrong in this scenario?

Thanks.

@lap00zza
Copy link

lap00zza commented May 7, 2024

I was facing this same issue after I installed it today. I fixed it by commenting out the fallback icons (line number 54 to 56) in ~/.config/rofi/config.rasi.

/*---------- Fallback Icon ----------*/
/*run,drun {
    fallback-icon: "application-x-addon";
}*/

My rofi version is 1.7.1

@delirehberi
Copy link

Hey @SamuelBanya and @lap00zza this repository is just for generating config files. You need to update your rofi versions to 1.7.5

@PoutineSyropErable
Copy link

PoutineSyropErable commented Jun 19, 2024

Hey @delirehberi
use apt-get install --only-upgrade rofi, max we can get on Ubuntu 22.04 LTS is 1.71

Also I tried to remove the fallbacks and I get this:

(process:3675341): Helpers.IconFetcher-WARNING **: 13:44:20.173: Failed to load image: Couldn’t recognize the image file format for file “/usr/share/icons/Humanity/devices/24/display.svg”

(process:3675341): Helpers.IconFetcher-WARNING **: 13:44:20.174: Failed to load image: Couldn’t recognize the image file format for file “/snap/audacity/1051/meta/gui/icon.svg”

(process:3675341): Helpers.IconFetcher-WARNING **: 13:44:20.178: Failed to load image: Couldn’t recognize the image file format for file “/usr/share/icons/hicolor/scalable/apps/autokey.svg”

(process:3675341): Helpers.IconFetcher-WARNING **: 13:44:20.182: Failed to load image: Failed to open file “${SNAP}/usr/share/icons/Alacritty.png”: No such file or directory
francois@LenovoUbuntu ~/.c/rofi>

@delirehberi
Copy link

@PoutineSyropErable you can build last version for yourself

@geofflambeth
Copy link

I haven't done very robust testing, but I was able to get things working in 1.7.3 by separating the run and drun fallbacks onto their own lines, so it looks like this:

	/*---------- Fallback Icon ----------*/
	run {
		fallback-icon: "application-x-addon";
	}
	drun {
		fallback-icon: "application-x-addon";
	}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants