Comments (2)
The following fixes it:
diff --git a/src/background/background.cpp b/src/background/background.cpp
index f845447..998fb88 100644
--- a/src/background/background.cpp
+++ b/src/background/background.cpp
@@ -118,6 +118,7 @@ bool WayfireBackground::change_background(int timer)
bool WayfireBackground::load_images_from_dir(std::string path)
{
wordexp_t exp;
+ exp = {};
/* Expand path */
wordexp(path.c_str(), &exp, 0);
It seems that exp
is initialized with random garbage, and wordexp()
does not change it if it encounters an error. I'm not sure if that is correct behavior though or if I should try to report this as a bug.
from wf-shell.
It seems that
exp
is initialized with random garbage, andwordexp()
does not change it if it encounters an error. I'm not sure if that is correct behavior though or if I should try to report this as a bug.
I would say make a PR with your patch here, even if the bug is with wordexp, it would take awhile to get fixed in distro repos, if a fix is accepted.
from wf-shell.
Related Issues (20)
- Add scroll on battery widget to change screen brightness HOT 3
- [Feature] Add panel separator as a widget HOT 1
- Volume Control - Launch a sound control manager app via right-click HOT 1
- make window-list height resizeable HOT 3
- volume control slider not in sync with mouse scroll HOT 1
- Windows doesn't go to right position when minimizing HOT 5
- can't use asbsolute path for command_output icons HOT 1
- Wf-backgroud crashes after disconnecting external monitor. HOT 8
- printf only partially works on command_output HOT 3
- Pressing super key for workspace overview opens menu on every workspace HOT 1
- subprojects/gvc outdated (5 years old) HOT 2
- panel crashes if problems with icons HOT 1
- Not showing WLAN interface on FreeBSD 14 HOT 1
- wf-panel doesn't seem to open certain apps HOT 10
- window-list high cpu usage when full
- latest commits change some expected panel behavior HOT 3
- default.css will not update to newer contents automatically
- Just a showcase
- Panel tray icon behaving unexpectedly (icon size animations) HOT 2
- moveable panel HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wf-shell.