Re: [LAD] No sound after login

From: Ralf Mardorf <ralf.mardorf@email-addr-hidden>
Date: Thu Mar 03 2016 - 08:35:12 EET

On Wed, 2 Mar 2016 16:53:07 -0800 (PST), Len Ovens wrote:
>KDE uses XDG

Hi,

were autostart is located depends on the environment and on the used
distro. For my Ubuntu Wily install I needed to clear XDG_CONFIG_DIRS
at top of my openbox autostart config, to get rid of unwanted
autostarts.

I don't need to do this for my Arch Linux install.

  [weremouse@email-addr-hidden ~]$ grep XDG .config/openbox/autostart
  export XDG_CONFIG_DIRS=""
  [weremouse@email-addr-hidden ~]$ grep XDG /mnt/archlinux/home/rocketmouse/.config/openbox/autostart
  [weremouse@email-addr-hidden ~]$

At least /etc/xdg/autostart/ is active by default for Ubuntu flavours
and Ubuntu derivatives, what ever WM/DE you're using.

Instead of ~/.profile, I would use ~/.bashrc. Usually bash is the login
shell, so a ~/.bashrc is available. Instead of using two
locations, ~/.profile and ~/.bashrc, I would edit just one location,
~/.bashrc.

  [weremouse@email-addr-hidden ~]$ grep -v "#" .profile

  if [ -n "$BASH_VERSION" ]; then
      if [ -f "$HOME/.bashrc" ]; then
          . "$HOME/.bashrc"
      fi
  fi

  if [ -d "$HOME/bin" ] ; then
      PATH="$HOME/bin:$PATH"
  fi
  [weremouse@email-addr-hidden ~]$ ls -hAl /mnt/archlinux/home/rocketmouse/.profile
  ls: cannot access /mnt/archlinux/home/rocketmouse/.profile: No such file or directory

For Gene's purpose /etc/rc.local is asking for a race condition, it
seems to be better to run the command while starting a session and not
during startup.

IMO /etc/xdg/autostart/ is the appropriate location for Gene's purpose.

Regards,
Ralf
_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@email-addr-hidden
http://lists.linuxaudio.org/listinfo/linux-audio-dev
Received on Thu Mar 3 12:15:01 2016

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 12:15:02 EET