Giter VIP home page Giter VIP logo

Comments (6)

Pololot64 avatar Pololot64 commented on July 4, 2024

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.

Andrew-J-Larson avatar Andrew-J-Larson commented on July 4, 2024

from gwsl-source.

Andrew-J-Larson avatar Andrew-J-Larson commented on July 4, 2024

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.

Andrew-J-Larson avatar Andrew-J-Larson commented on July 4, 2024

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.

Pololot64 avatar Pololot64 commented on July 4, 2024

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.

Andrew-J-Larson avatar Andrew-J-Larson commented on July 4, 2024

No problem 👌🏻

from gwsl-source.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.