Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13

Thread: automatically starting program

  1. #11
    Join Date
    Oct 2012
    Beans
    50

    Re: automatically starting program

    Quote Originally Posted by slickymaster View Post
    The xfce4-session program starts up the Xfce Desktop Environment and is typically executed by your login manager. It will load your last session or a default session that includes the standard Xfce programs if no saved session is available.

    xfce4-session uses the contents of the ~/.cache/sessions/ directory for starting previously saved sessions and reads its configuration from the file $XDG_CONFIG_DIRS/xfce4-session/xfce4-session.rc.

    xfce4-session stores its session data into $XDG_CACHE_HOME/sessions/.

    All the information is available in the Xfce Docs.
    Strange. Can I found an actual documentation somewhere? I show what I mean:
    Code:
    z@x4tmp:~$ echo $XDG_CONFIG_DIRS
    /etc/xdg/xdg-xubuntu:/etc/xdg:/etc/xdg
    z@x4tmp:~$ echo $XDG_CACHE_HOME
    
    z@x4tmp:~$ ls /etc/xdg/
    autostart  Thunar          user-dirs.conf      xdg-xubuntu
    menus      Trolltech.conf  user-dirs.defaults  xfce4
    z@x4tmp:~$ ls /etc/xdg/autostart/
    at-spi-dbus-bus.desktop                      print-applet.desktop
    blueman.desktop                              pulseaudio.desktop
    gnome-keyring-gpg.desktop                    pulseaudio-kde.desktop
    gnome-keyring-pkcs11.desktop                 update-notifier.desktop
    gnome-keyring-secrets.desktop                user-dirs-update-gtk.desktop
    gnome-keyring-ssh.desktop                    xfce4-notes-autostart.desktop
    gsettings-data-convert.desktop               xfce4-power-manager.desktop
    nm-applet.desktop                            xfce4-volumed.desktop
    onboard-autostart.desktop                    xfsettingsd.desktop
    polkit-gnome-authentication-agent-1.desktop  xscreensaver.desktop
    File doesn't exist in this folder and as you can see $XDG_CACHE_HOME is not set.

  2. #12
    Join Date
    Jun 2005
    Location
    Toronto, Canada
    Beans
    Hidden!
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: automatically starting program

    What does the following return:
    Code:
    fgrep -r evince ~/.cache/sessions/*

  3. #13
    Join Date
    Oct 2012
    Beans
    50

    Re: automatically starting program

    Quote Originally Posted by Toz View Post
    What does the following return:
    Code:
    fgrep -r evince ~/.cache/sessions/*
    Yess! This is the one. I post it:
    Code:
    ~$ fgrep -r evince ~/.cache/sessions/*
    ...
    Client7_CloneCommand=evince
    Client7_DiscardCommand=/bin/rm,-rf,/home/z/.config/session-state/evince-1354915301.desktop
    Client7_RestartCommand=evince,--sm-client-id,2d635dc88-87e0-4351-b299-7c5e60348958,--sm-client-state-file,/home/z/.config/session-state/evince-1354915301.desktop
    Client7_DesktopFile=file:///usr/share/applications/evince.desktop
    Client7_Program=evince
    ...
    These lines were in ~/.cache/session/xfce4-session-x4tmp\:0. I made a (safe) copy of this file and deleted this (bold) line from original ~/.cache/sessions/xfce4-session-x4tmp\:0 where fgrep shown before.
    I restarted and . It is solved.
    Thanks for help.

Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •