Coder Social home page Coder Social logo

Comments (16)

djpohly avatar djpohly commented on July 21, 2024

Sounds good to me. Send a PR to review?

from dwl.

sdsddsd1 avatar sdsddsd1 commented on July 21, 2024

I am not able to do this. I just want to ask or encourage the conversation.

from dwl.

LukasZumvorde avatar LukasZumvorde commented on July 21, 2024

A pull request has been added trying to copy this feature form Sway #36

from dwl.

djpohly avatar djpohly commented on July 21, 2024

Can someone with this use case test the PR?

from dwl.

sdsddsd1 avatar sdsddsd1 commented on July 21, 2024

I would test, but I cant build dwl because of missing xwayland. I cannot find a way to disable it in the makefile.

from dwl.

alex-courtis avatar alex-courtis commented on July 21, 2024

xwayland is not optional; you'll need it to build and run.

from dwl.

djpohly avatar djpohly commented on July 21, 2024

It ought to be optional, really. You shouldn't have to install X11 cruft in order to run dwl.

from dwl.

djpohly avatar djpohly commented on July 21, 2024

Fixed that. @sdsddsd1, give it another try!

from dwl.

sdsddsd1 avatar sdsddsd1 commented on July 21, 2024

I have no success to start dwl. It cannot become 'drm master' and ends with a segmention fault. There is chmod u+s /usr/bin/dwl.
Here is a strace, if that helps. https://termbin.com/195v

from dwl.

sdsddsd1 avatar sdsddsd1 commented on July 21, 2024

@LukasZumvorde , I somehow couldnt ping you in the first post.

from dwl.

sdsddsd1 avatar sdsddsd1 commented on July 21, 2024

Is this feature still relevant? As of linux 5.8 it is possible to become and drop drm_master for unprevileged users. This feature is available in the latest wlroots master. I can run other compositors with setgid on input as a user process.

chown :input /usr/bin/sway
chmod g+s    /usr/bin/sway

I can start also dwl like this, but firefox refuses to start because of allegedly root permissions.

from dwl.

djpohly avatar djpohly commented on July 21, 2024

@sdsddsd1 Do you still have an issue with this on your setup, or did the Linux fix (plus, perhaps, adding your user to the input group) solve it?

from dwl.

sdsddsd1 avatar sdsddsd1 commented on July 21, 2024

@djpohly : I dont have wayland setup at the moment to test on. My setup was the lines above and to be in the video group. I think I tried with to be in the input group aswell. When I remember right dwl was still started as a root process. My guess is, it does not know how to drop root.

from dwl.

yellowhat avatar yellowhat commented on July 21, 2024

Hi,
I have just tried to compile dwl but on running it the tty gets frozen even with:

chown :input dwl
chmod g+s dwl

Does dwl requires to be run as root?

Thanks

from dwl.

yellowhat avatar yellowhat commented on July 21, 2024

No having my user part of the input group was the problem.

from dwl.

djpohly avatar djpohly commented on July 21, 2024

I think this was due to missing either the input or video group for the running user, so I'm going to go ahead and close it.

from dwl.

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.