Comments (6)
I am not sure about what to do with the dbus button. I think I did it wrong and wonder if it works for that many people. Can you think of other ways to make it work? Also, I will push the changes I made to the helper.sh file soon. They are mid-progress but closer to working.
from gwsl-source.
from gwsl-source.
Made a script ...
at /usr/local/bin/gwsl-fix-dbus.sh
#!/bin/bash
ps -e | grep -q "dbus\-daemon"
if [ $? -eq 1 ]; then
service dbus start > /dev/null 2>&1
fi
Then ran sudo chown root: /usr/local/bin/gwsl-fix-dbus.sh
and sudo chmod 755 /usr/local/bin/gwsl-fix-dbus.sh
Made a second script ...
at /etc/profile.d/gwsl-fixes.sh
#!/bin/bash
sudo /usr/local/bin/gwsl-fix-dbus.sh
Then ran sudo chown root: /etc/profile.d/gwsl-fixes.sh
and sudo chmod 777 /etc/profile.d/gwsl-fixes.sh
Lastly, edited sudoers ...
via sudo visudo
and added the following line
# Fixes GWSL dbus not starting issue
ALL ALL=(root) NOPASSWD: /usr/local/bin/gwsl-fix-dbus.sh
And then optionally restart Ubuntu, or start up another session (via an app or terminal)
This may be helpful to script the visudo part.
from gwsl-source.
The main advantage of this is, it doesn't rely having to be put in every user's profile, and it should start up only when it needs to, and every time ubuntu gets started.
Not sure how much of my scripts can be used in other distros though.
from gwsl-source.
Thanks! Hmm. I'll look into it. I don't really want to edit sudoers so I currently just ask for the password every time a shortcut uses dbus. I gtg afk
from gwsl-source.
No problem 👌🏻
from gwsl-source.
Related Issues (20)
- Cannot fullscreen apps like QEMU in GWSL HOT 6
- Need exclusive keyboard mode option and a hotkey to exit that mode HOT 3
- gwsl with screen readers HOT 3
- Remember last window state HOT 1
- Custom icons HOT 1
- Pin shortcut in the taskbar HOT 2
- Feature : mount usb disk
- Unhandled exception in script - error when running the downloaded distribution HOT 3
- Price confusion / Where are the binaries? HOT 36
- ? HOT 1
- Nothing happens when running build.py
- [Feature] Add GUI Package Installer for WSL
- Windows Security found a trojan in self-built executable HOT 1
- Black title bar on windows dark theme HOT 1
- Problem when building HOT 1
- Error Upon Startup HOT 4
- Latest version from Microsoft Store triggers virus detection in eset
- Is This Paid Now?
- GWSL Service keeps crashing on Startup
- Default X Server IP config not working, but alternate value does.
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 gwsl-source.