~/.xsession do not exec

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

~/.xsession do not exec

Postby cefer » Sep 17th, '23, 20:35

Hi
I am new in mageia
I have one $HOME/.xsession script but it do not run
It run in arch and debian, but not is invoked for Mageia what ignore the script
I try chmod +x but nothing
ideas?
Thanks
cefer
 
Posts: 6
Joined: Sep 17th, '23, 20:31

Re: ~/.xsession do not exec

Postby doktor5000 » Sep 17th, '23, 20:59

Hi there, some more information would be appreciated.
What Mageia version do you use, what display manager, what desktop environment? Also, how do you start your X session currently?
And what do you want to put in your ~/.xsession ?
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18073
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: ~/.xsession do not exec

Postby cefer » Sep 17th, '23, 21:17

yesterday i have download and install xfce version. It use lightdm

My now test file ~/.xsession contain 2 lines:

#!/bin/bash
echo "Testing..." >~/xsession.log

But nothing happen
cefer
 
Posts: 6
Joined: Sep 17th, '23, 20:31

Re: ~/.xsession do not exec

Postby benmc » Sep 17th, '23, 23:29

does the command
cefer wrote:echo "Testing..." >~/xsession.log
have the desired output when run by itself in your terminal?
benmc
 
Posts: 1218
Joined: Sep 2nd, '11, 12:45
Location: Pirongia, New Zealand

Re: ~/.xsession do not exec

Postby cefer » Sep 18th, '23, 00:51

Investigating further, I have noticed that mageia does not run ~/.xsession ~/.xsessionrc ~/.xprofile ~/.xinitrc no any other script.
So I have modified /etc/X11/Xsession script adding one line:
Code: Select all
if [ -n "$DESKTOP" ]; then
    case $DESKTOP in
       failsafe)
        xsetroot -cursor_name left_ptr
   type -p rxvt > /dev/null >& 2 && exec rxvt -geometry 80x24-0-0
   type -p xterm > /dev/null >& 2 && exec xterm -geometry 80x24-0-0
   type -p xvt > /dev/null >& 2 && exec xvt
   type -p twm > /dev/null >& 2 && exec twm
   ;;
   default)
   ;;
   *)
   if type -p "$DESKTOP" > /dev/null; then
       . ~/.xsession & # <<<<<<~~~~~~~~~~~~~~~~~~~~ LINE 129 ADDED
            exec /bin/sh -c "$DESKTOP"
   elif


Now lightdm run a session startup script in $HOME
Last edited by isadora on Sep 18th, '23, 07:03, edited 1 time in total.
Reason: Please place command-output between {CODE]-tags, for improving readability
cefer
 
Posts: 6
Joined: Sep 17th, '23, 20:31


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest

cron