Git Product home page Git Product logo

Comments (2)

KyleGospo avatar KyleGospo commented on June 15, 2024 1

21a9d6d

from bazzite.

kubepy avatar kubepy commented on June 15, 2024

Currently I use this workaround for using controller in waydroid.

sudo -i

cat <<'EOF' > /etc/systemd/system/waydroid-fix-controllers-workaround.service

[Unit]
Description=Workaround fir waydroid-fix-controllers
[After=local-fs.target](http://after=local-fs.target/)

[Service]
Type=oneshot
# Copy if it doesn't exist
ExecStartPre=/usr/bin/bash -c "[ -x /usr/local/bin/.waydroid-fix-controllers ] || /usr/bin/cp /usr/libexec/waydroid-fix-controllers /usr/local/bin/.waydroid-fix-controllers"
# This is faster than using .mount unit. Also allows for the previous line/cleanup
ExecStartPre=/usr/bin/chmod 777 /usr/local/bin/.waydroid-fix-controllers
ExecStartPre=/usr/bin/sed -i 's# sh -c # bash -c #g' /usr/local/bin/.waydroid-fix-controllers
# Fix bash
ExecStart=/usr/bin/mount --bind /usr/local/bin/.waydroid-fix-controllers /usr/libexec/waydroid-fix-controllers
# Clean-up after ourselves
ExecStop=/usr/bin/umount /usr/libexec/waydroid-fix-controllers
ExecStop=/usr/bin/rm /usr/local/bin/.waydroid-fix-controllers
RemainAfterExit=yes

[Install]
[WantedBy=multi-user.target](http://wantedby=multi-user.target/)
EOF

systemctl daemon-reload

systemctl enable waydroid-fix-controllers-workaround.service
systemctl start waydroid-fix-controllers-workaround.service

exit

from bazzite.

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.