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

Installation Issue #81

Open
eteffy opened this issue Mar 27, 2024 · 4 comments
Open

Installation Issue #81

eteffy opened this issue Mar 27, 2024 · 4 comments
Labels
good first issue Good for newcomers

Comments

@eteffy
Copy link

eteffy commented Mar 27, 2024

I'm attempting to install matter as per the instructions in the readme file, but I keep getting an error.

ezra@ezras-linux:~/Documents/Grub themes/matter$ ./matter.py -i ubuntu folder _ _ _ _ microsoft-windows
[I] Begin Matter install
[I] Build theme from user preferences
[I] Convert icons
Inkscape 1.1.2 (0a00cf5339, 2022-02-04)

ConcreteInkscapeApplication<Gtk::Application>::on_open: Can't use '--export-filename' with multiple input files (output file would be overwritten for each input file). Please use '--export-type' instead and rename manually.
ConcreteInkscapeApplication<Gtk::Application>::on_open: Can't use '--export-filename' with multiple input files (output file would be overwritten for each input file). Please use '--export-type' instead and rename manually.
ConcreteInkscapeApplication<Gtk::Application>::on_open: Can't use '--export-filename' with multiple input files (output file would be overwritten for each input file). Please use '--export-type' instead and rename manually.
[I] Build font
can't open file themes/matter/Matter/font.pf2, index 0: error 1: cannot open resource
can't open file /home/ezra/Documents/Grub, index 0: error 2: unknown file format
can't open file themes/matter/fonts/Josefin_Sans_Regular.ttf, index 0: error 1: cannot open resource

[E] /usr/bin/grub-mkfont execution was not clean
[E] for fontfile: /home/ezra/Documents/Grub themes/matter/fonts/Josefin_Sans_Regular.ttf

Am I doing something wrong? I apologize if it's a stupid error, I'm a linux noob.

Am I supposed to be running the matter.py from the directory it is in (as shown above)? Also, am I supposed to leave the theme.txt.template as is or should it be theme.txt? Looking at other examples of installing grub themes online indicates that it should be theme.txt.

@mateosss
Copy link
Owner

mateosss commented Mar 27, 2024

Hey! no worries.

The can't open file errors look suspicious; they are cut right before and after the space in your directory Grub themes. It is quite possibly just an error in handling spaces in paths. You can try putting matter into a path without spaces.

If that's the problem this needs to be fixed in the codebase, thanks for reporting.

If not, what distro are you using?

@heyzec
Copy link
Collaborator

heyzec commented Mar 27, 2024

Was able to reproduce this error when in a VM by moving the repo into a folder named with spaces. This should be fixed by quoting paths in svg2png.py:

command += f"--export-filename={dst_path} "

@eteffy
Copy link
Author

eteffy commented Mar 27, 2024

Hey! no worries.

The can't open file errors look suspicious; they are cut right before and after the space in your directory Grub themes. It is quite possibly just an error in handling spaces in paths. You can try putting matter into a path without spaces.

If that's the problem this needs to be fixed in the codebase, thanks for reporting.

If not, what distro are you using?

Removed the space from my directory and that solved the issue. Thanks!

@eteffy eteffy closed this as completed Mar 27, 2024
@mateosss
Copy link
Owner

Thanks as always @heyzec for the testing! let's reopen the issue until we have a MR fixing this

@mateosss mateosss reopened this Mar 29, 2024
@mateosss mateosss added the good first issue Good for newcomers label Mar 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants