Where is the original desktop-session.conf?

Forum Forums New users New Users and General Questions Where is the original desktop-session.conf?

  • This topic has 3 replies, 4 voices, and was last updated Apr 3-4:19 am by symbol.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #80127
    Member
    ronqual

      I was trying to get a command/program to start every time I logged in. I eventually found (what I believe to be) canonical information on the wiki, to edit ~/.desktop-session/startup.

      Unfortunately, the wiki mentions some information that is incorrect:

      If, after having edited your configuration file, you later wonder “What’s changed, compared to the ‘original’ copy?”…
      you can find an original copy here: /etc/desktop-session/desktop-session.conf

      See the following listing of files, and note that /etc/desktop-session/desktop-session.conf does not exist:

      <usr-redact>@<host-redact>:~
      $ cd /etc/desktop-session/
      <usr-redact>@<host-redact>:/etc/desktop-session
      $ ls -la
      total 24
      drwxr-xr-x   2 root root  4096 Mar 27 15:56 .
      drwxr-xr-x 137 root root 12288 Mar 29 07:13 ..
      -rw-r--r--   1 root root   870 Dec 27  2014 file_compare
      -rw-r--r--   1 root root   366 Sep  2  2021 wallpaper-list.conf
      <usr-redact>@<host-redact>:/etc/desktop-session
      $ cd ~/.desktop-session
      <usr-redact>@<host-redact>:~/.desktop-session
      $ ls -la
      total 128
      drwxr-xr-x  2 <usr-redact> <usr-redact>  4096 Mar 30 09:04 .
      drwxr-xr-x 32 <usr-redact> <usr-redact>  4096 Mar 30 08:16 ..
      -rw-r--r--  1 <usr-redact> <usr-redact>   193 Aug 13  2017 automount.conf
      -rw-r--r--  1 <usr-redact> <usr-redact> 24720 Mar 30 09:14 current.log
      -rw-r--r--  1 <usr-redact> <usr-redact>    10 Mar 30 08:18 default-desktop
      -rw-r--r--  1 <usr-redact> <usr-redact>    10 Mar 30 08:18 desktop-code.0
      -rw-r--r--  1 <usr-redact> <usr-redact>   298 Apr 26  2014 desktop-defaults.conf
      -rw-r--r--  1 <usr-redact> <usr-redact>  4324 Mar 27 21:13 desktop-session.conf
      -rw-r--r--  1 <usr-redact> <usr-redact>   870 Dec 27  2014 file_compare
      -rw-r--r--  1 <usr-redact> <usr-redact>     0 Mar 27 15:29 finished-first-run
      -rw-r--r--  1 <usr-redact> <usr-redact>   584 Oct 31 11:17 mouse.conf
      -rw-r--r--  1 <usr-redact> <usr-redact>  3781 Mar 27 15:29 old-log-2022-03-27_15-30.log
      -rw-r--r--  1 <usr-redact> <usr-redact> 20063 Mar 27 21:17 old-log-2022-03-28_14-13.log
      -rw-r--r--  1 <usr-redact> <usr-redact>  3377 Mar 28 16:06 old-log-2022-03-28_16-06.log
      -rw-r--r--  1 <usr-redact> <usr-redact>  6394 Mar 29 07:11 old-log-2022-03-29_07-12.log
      -rw-r--r--  1 <usr-redact> <usr-redact>     5 Mar 30 08:18 ppid.0
      -rwxr-xr-x  1 <usr-redact> <usr-redact>  1901 Mar 30 09:04 startup
      -rw-r--r--  1 <usr-redact> <usr-redact>  2174 Mar 27 15:29 wallpaper.conf
      -rw-r--r--  1 <usr-redact> <usr-redact>   498 Mar 27 15:29 wallpaper-list.conf

      I assume the wiki information is simply out of date, but I don’t know enough to know whether or not it is typical or not for original config files to be located in this location. I have encountered the etc directory before but I know really know what it’s used for (I am used to the Windows filesystem). Does anyone here, perhaps a developer of antiX, know where (if anywhere) the original desktop-session.conf (and maybe even ~/.desktop-session/startup) file is located? I’m trying to keep diff files of all changes I make to the system configuration in order to save time in case I ever wipe my user directory. If actual originals exist that would make this job easier, as I currently have to maintain my own “originals” (copy the file before I make any changes myself).

      The “System” and “Info” headers of my inxi -zv7:

      System:
      Kernel: 5.10.57-antix.1-amd64-smp x86_64 bits: 64 compiler: gcc v: 10.2.1
      Desktop: IceWM 2.9.6 wm: Blackbox vt: 7 dm: N/A
      Distro: antiX-21_x64-full Grup Yorum 31 October 2021
      base: Debian GNU/Linux 11 (bullseye)
      Info:
      Processes: 186 Uptime: 1d 2h 16m wakeups: 2 Init: SysVinit v: 2.96
      runlevel: 5 default: 5 Compilers: gcc: 10.2.1 alt: 10 Packages: apt: 1658
      Shell: Bash v: 5.1.4 running-in: roxterm inxi: 3.3.06

      • This topic was modified 1 year, 1 month ago by ronqual. Reason: Attempt to use code "tags" to get a monospaced font on console output
      #80129
      Member
      ModdIt
        Helpful
        Up
        0
        ::

        Hi ronqual,
        I also do not know where the original file is located. Have never worried about it.
        To get a copy I would just take it from a running live stick or add a new user with home creation then copy
        from there.

        For learning may I recommend to make a snapshot of your system, put it on a live stick and ensure it works.
        With that you can at any time restore your system files or reinstall to the point before you made a breaking
        or non working change change.

        While experimenting with customisation a second user with home can provide a lot of reassurance, keep your
        essential user safe and test configuration in a disposable one.
        Really wreck things while changing user setup, delete the user, create a new one.

        Be more careful in the root file system, but you have a carbon copy live stick of your system on your desk,
        easy reinstall. Have fun exploring. It does take a while to forget the windoze way and just be confident that
        usage of antiX tools makes life easy, stress free and get you out of trouble pretty much anytime.

        #80139
        Forum Admin
        anticapitalista
          Helpful
          Up
          0
          ::

          It should be

          /etc/skel/.desktop-session/desktop-session.conf

          Philosophers have interpreted the world in many ways; the point is to change it.

          antiX with runit - leaner and meaner.

          #80511
          Member
          symbol
            Helpful
            Up
            0
            ::

            As of 2022, you can do it with “Set Run Action” from GUI, and it will help you change the default run program of a prototype of files.

            1. Right click and Select “Set Run Action”
            2. In the “Enter a shell command” change mu.pdf “$@” to okular “$@”
            As shown in attached 1.jpg and 2.jpg
            3. Click “Use Command”

            Attachments:
          Viewing 4 posts - 1 through 4 (of 4 total)
          • You must be logged in to reply to this topic.