You are not logged in.

#1 2016-12-02 03:46:15

desertIK
Member
Registered: 2016-11-26
Posts: 4

[SOLVED] Awesome WM: zenburn theme not working

So when I start up Awesome, I get the following error text (I'm testing this with zenburn to isolate this current problem):

/usr/share/awesome/lib/gears/surface.lua:39: Failed to open file '~./config/awesome/themes/zenburn/zenburn-background.png': No such file or directory

and no, the "~./" part isn't a typo on my part. I think this is my problem here but I don't know how to fix it.

Relevant part of my rc.lua:

home = os.getenv("HOME")
confdir = home .. "/.config/awesome"
themes = confdir .. "/themes"
active_theme = themes .. "/zenburn"

beautiful.init(active_theme .. "/theme.lua")

So I have no idea why that's not working, the path is correct other than the "~./" thing where it's switching the period and the slash. I have tried just using:

beautiful.init(os.getenv("HOME") .. "/.config/awesome/themes/zenburn/theme.lua")

as well as just using:

beautiful.init("~/.config/awesome/themes/zenburn/theme.lua")

and they all spit out the same error on startup. Any ideas?

Last edited by desertIK (2016-12-02 20:39:09)

Offline

#2 2016-12-02 07:56:56

desaparecido
Member
From: Liège, Belgium
Registered: 2010-03-14
Posts: 155

Re: [SOLVED] Awesome WM: zenburn theme not working

home = os.getenv("HOME")
confdir = home .. "/.config/awesome"
themes = confdir .. "/themes"
active_theme = themes .. "/zenburn"

beautiful.init(active_theme .. "/theme.lua")

In my rc.lua I don't have any thing like that, but is only about variables definitions I guess

So I have no idea why that's not working, the path is correct other than the "~./" thing where it's switching the period and the slash. I have tried just using:

you're right, the next line is ok, like you wrote

beautiful.init("~/.config/awesome/themes/zenburn/theme.lua")

but, about your:

~/.config/awesome/themes/zenburn/theme.lua

you need define your wallpaper:

theme.wallpaper = "~./config/awesome/themes/zenburn/zenburn-background.png"

if is that the right path to wallpaper file, probably is there the mistype "~./" ?

or in my zenburn theme (non edited) my wallpaper line is that:

theme.wallpaper = "/usr/share/awesome/themes/zenburn/zenburn-background.png"

so, probably there are conflict in your variable definitions about where to find themes ? try to comment that lines

nice digging ;-)


KF5 & Plasma5 (git versions) - Awesome WM
ASUS Sabertooth 990FX - AMD FX8350 - ATI Radeon HD 7970
[testing] repo

Offline

#3 2016-12-02 20:38:37

desertIK
Member
Registered: 2016-11-26
Posts: 4

Re: [SOLVED] Awesome WM: zenburn theme not working

I was actually thinking that there must be something wrong with my theme.lua file. The idea hit me last night when I was trying to sleep, of course right? Thanks for telling me what exactly to look for, found it right away!

Offline

Board footer

Powered by FluxBB