Code Monkey home page Code Monkey logo

Comments (9)

fedeizzo avatar fedeizzo commented on August 30, 2024 1

I think that this is the cleanest solution that follow the rule "do one thing and do it well". In my opinion you resolved my issue.

from emptty.

tvrzna avatar tvrzna commented on August 30, 2024

Hello,

you are right, these scripts are not started. Until it's developed, you can use workaround:

  1. set DBUS_LAUNCH=false in /etc/emptty/conf
  2. create .emptty in your home dir
  3. run chmod +x .emptty
  4. put this inside .emptty file
#!/bin/sh

xrdb -merge ~/.Xresources
xmodmap ~/.Xmodmap

exec dbus-launch bspwm

I know, that this is not cleanest solution, but it is faster than to wait until it's fixed.

edit: fixed script for loading files

from emptty.

tvrzna avatar tvrzna commented on August 30, 2024

I've done some research and I've found out, that there is large number of possibilities, how to handle this specific issue.
Proposed .emptty solution wouldn't be as bad as it is, if there was option to run selected WM/DE. Some Display Managers prefers starting .xinitrc/.xsession files, some uses .xprofile and others.

I like quite a variant using .xprofile (~/.xprofile, /etc/xprofile), since it's "just" script, that runs before WM/DE is started and does not start WM/DE itself.

And here's the question, what is your standard way to invoke .Xresources and .Xmodmap? Is that by .xinitrc, by .xsession, .xprofile or some other way?

from emptty.

fedeizzo avatar fedeizzo commented on August 30, 2024

Hi, thanks for the reply. I used only two ways to start wm. The first one (in the past) through login in tty and manually launch of Xorg. Then i switched to lightdm and it does all the things for me. If I'm not wrong lightdm call all script individually without .xinitrc, .xsession, ecc.

from emptty.

tvrzna avatar tvrzna commented on August 30, 2024

Hello,
I've tried many way how to handle loading configs and run scripts. I've learned, that many of these scripts are DM-specific. Plus the worst thing I've seen, different distros with different display managers use some of these scripts quite differently. I don't think, that is good idea to take responsibility out of users, so I've added option XINITRC_LAUNCH, which could be set to true or false (default false).

If it is defined to true and user have .xinitrc file within own home folder, the magic could be done. But not by emptty, just by user's intention. I am aware, that it looks like I'm trying to cover myself with alibi, but even they're just scripts, they could be quite complicated.

Please take a look on Samples page.

from emptty.

fish47 avatar fish47 commented on August 30, 2024

Hi everyone, I am an ArchLinux user too. But here comes a problem: why my "/etc/profile" is not sourced?
It seems that LightDM always sources "/etc/profile" before launch the DE, but emptty does not, is it by design too?
https://github.com/canonical/lightdm/blob/lightdm-1-30/debian/lightdm-session#L38

from emptty.

tvrzna avatar tvrzna commented on August 30, 2024

Hello, as it was said in #8, it is up to user to configure own login script.

from emptty.

fish47 avatar fish47 commented on August 30, 2024

Some DMs have adopted the "wrapper-script" to initialize envs before the DE launch, such as
ly https://github.com/nullgemm/ly/blob/master/res/wsetup.sh
sddm https://github.com/sddm/sddm/blob/v0.18.1/data/scripts/Xsession
LightDM https://github.com/canonical/lightdm/blob/lightdm-1-30/debian/lightdm-session#L38

Maybe we should do it for dumb end users?
For experts, provide an option to disable the "wrapper-script", and let them play around the ~/.config/emptty script.

from emptty.

tvrzna avatar tvrzna commented on August 30, 2024

I am aware of this kind of scripts and I was thinking about them in some of initial commits. I understand the motivation, but there could be so many shells with custom profile/rc scripts. And of course there are scripts just for Xorg environment. I don't think I could be able to keep it correctly configured for Xorg and Wayland.

But don't get easily scared, I appreciate each input.

from emptty.

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.