Re: Xfce desktop problem

2023-01-02 Thread David Wright
On Mon 02 Jan 2023 at 05:20:58 (-0500), Cindy Sue Causey wrote:
> On 1/1/23, David Wright  wrote:
> > On Sun 01 Jan 2023 at 15:31:04 (-0600), William Torrez Corea wrote:
> >> How to can restore my last configuration?
> >
> > So I assume your "last configuration" is in ~/.config/xfce4-session/
> > and ~/.config/xfce4/ .
> >
> >> Try resetting to defaults
> >
> > I assume that by this you mean "move my configuration out the way
> > and left a new set of defaults be created by running xfce", ie move:
> >
> >> mv ~/.config/xfce4-session/ ~/.config/xfce4-session-bak
> >> mv ~/.config/xfce4/ ~/.config/xfce4-bak
> >
> > and then run xfce.
> >
> >> When i want to restore the old configuration, i remove the -bak that's
> >> been appended to the old directories; but i don't get any result.
> 
> 
> David might have hit on something here with that, "[A]nd then run
> xfce."

Well, yes, I assume that when you're playing with the configuration
files, xfce is /not/ running. I have assumed that running xfce in the
absence of any configuration files, and then immediately exiting,
will leave behind a fresh set of default configuration files, in the
manner of, say, mc.¹

> What about.. some form of logging completely out to a [console]
> or root user's GUI, moving those files/directories aside, and then try
> logging back in again? I've experienced similar circular pains and
> have fixed them using both methods of accessing those stubborn
> "Whack-A-Mole" types of files.
> 
> The glitch that *might* be occurring is that maybe XFCE4 is instantly
> throwing up new but same config files as soon as the old are deleted,

Not being an xfce user, I have no idea how it behaves if you fiddle
with its configuration files while it is running.

> else crash and burn if it is in current use. It would end up being an
> endless battle because those instantly returning config files will
> reflect whatever personal choices are still showing on the screen...
> 
> Unless one logs an affected user out completely first...
> 
> Or not. :)

All this is way beyond me: I have no experience of running DEs.

¹ When a new version of mc is released, I do just that, and then
  reconcile mc's new defaults with my own configuration files.

Cheers,
David.


Re: Xfce desktop problem

2023-01-02 Thread Cindy Sue Causey
On 1/1/23, David Wright  wrote:
> On Sun 01 Jan 2023 at 15:31:04 (-0600), William Torrez Corea wrote:
>> How to can restore my last configuration?
>
> So I assume your "last configuration" is in ~/.config/xfce4-session/
> and ~/.config/xfce4/ .
>
>> Try resetting to defaults
>
> I assume that by this you mean "move my configuration out the way
> and left a new set of defaults be created by running xfce", ie move:
>
>> mv ~/.config/xfce4-session/ ~/.config/xfce4-session-bak
>> mv ~/.config/xfce4/ ~/.config/xfce4-bak
>
> and then run xfce.
>
>> When i want to restore the old configuration, i remove the -bak that's
>> been appended to the old directories; but i don't get any result.


David might have hit on something here with that, "[A]nd then run
xfce." What about.. some form of logging completely out to a [console]
or root user's GUI, moving those files/directories aside, and then try
logging back in again? I've experienced similar circular pains and
have fixed them using both methods of accessing those stubborn
"Whack-A-Mole" types of files.

The glitch that *might* be occurring is that maybe XFCE4 is instantly
throwing up new but same config files as soon as the old are deleted,
else crash and burn if it is in current use. It would end up being an
endless battle because those instantly returning config files will
reflect whatever personal choices are still showing on the screen...

Unless one logs an affected user out completely first...

Or not. :)

Cindy :)
-- 
Talking Rock, Pickens County, Georgia, USA
* Merry Happies! *



Re: Xfce desktop problem

2023-01-01 Thread Tim Woodall

On Sun, 1 Jan 2023, William Torrez Corea wrote:


How to can restore my last configuration?

Try resetting to defaults

mv ~/.config/xfce4-session/ ~/.config/xfce4-session-bak
mv ~/.config/xfce4/ ~/.config/xfce4-bak

When i want to restore the old configuration, i remove the -bak that's
been appended to the old directories; but i don't get any result.




Your move back isn't doing what you need (I assume):


mv ~/.config/xfce4-back/ ~/.config/xfce4


will move xfce4-bak *into* xfce4/ unless you delete xfce4/ first.

So you have xfce4/xfce4-bak/




Re: Xfce desktop problem

2023-01-01 Thread David Wright
On Sun 01 Jan 2023 at 15:31:04 (-0600), William Torrez Corea wrote:
> How to can restore my last configuration?

So I assume your "last configuration" is in ~/.config/xfce4-session/
and ~/.config/xfce4/ .

> Try resetting to defaults

I assume that by this you mean "move my configuration out the way
and left a new set of defaults be created by running xfce", ie move:

> mv ~/.config/xfce4-session/ ~/.config/xfce4-session-bak
> mv ~/.config/xfce4/ ~/.config/xfce4-bak

and then run xfce.

> When i want to restore the old configuration, i remove the -bak that's
> been appended to the old directories; but i don't get any result.

I assume that means you typed something like:

  mv ~/.config/xfce4-session-bak/ ~/.config/xfce4-session
  mv ~/.config/xfce4-bak/ ~/.config/xfce4

That depends with how you define "result". As far as file manipulation
is concerned, files /are/ moved. However, you don't appear to have
investigated /where/ they are moved. Why not look at:

  ls -l ~/.config/xf*

and observe that your own configuration finish in the wrong place,
and are probably ignored by xfce.

--✄--

$ emacs /tmp/myconfig/file{1,2}  # create my config files (size 32)
$ ls -Glg /tmp/myconfig/
total 8
-rw-r- 1 32 Jan  1 16:45 file1
-rw-r- 1 32 Jan  1 16:45 file2
$ mv -i /tmp/myconfig/ /tmp/myconfig-bak # move out of the way
$ ls -Glg /tmp/myconfig-bak/
total 8
-rw-r- 1 32 Jan  1 16:45 file1
-rw-r- 1 32 Jan  1 16:45 file2
$ emacs /tmp/myconfig/file{1,2}# simulate xfce creating its default config 
(size 14)
$ ls -Glg /tmp/my* # (emacs asks to create /tmp/myconfig/ when 
first file is saved)
/tmp/myconfig:
total 8
-rw-r- 1 14 Jan  1 16:48 file1   ← "default" config
-rw-r- 1 14 Jan  1 16:47 file2

/tmp/myconfig-bak:
total 8
-rw-r- 1 32 Jan  1 16:45 file1   ← my moved config
-rw-r- 1 32 Jan  1 16:45 file2

$ mv -i /tmp/myconfig-bak/ /tmp/myconfig # Intention: to restore my 
configuration files
$ ls -GlgR /tmp/my*
/tmp/myconfig:
total 12
-rw-r- 1   14 Jan  1 16:48 file1   ← "default" files still in 
active position
-rw-r- 1   14 Jan  1 16:47 file2
drwxr-x--- 2 4096 Jan  1 16:45 myconfig-bak← this is what mv actually did

/tmp/myconfig/myconfig-bak:
total 8
-rw-r- 1 32 Jan  1 16:45 file1 ← so my configuration files are
-rw-r- 1 32 Jan  1 16:45 file2 ← "hidden" in this subdirectory
$ 

Cheers,
David.


Re: Xfce desktop problem

2023-01-01 Thread Greg Wooledge
On Sun, Jan 01, 2023 at 09:43:15PM +, Andrew M.A. Cater wrote:
> On Sun, Jan 01, 2023 at 03:31:04PM -0600, William Torrez Corea wrote:
> > How to can restore my last configuration?
> > 
> > Try resetting to defaults
> > 
> > mv ~/.config/xfce4-session/ ~/.config/xfce4-session-bak
> > mv ~/.config/xfce4/ ~/.config/xfce4-bak
> > 
> > When i want to restore the old configuration, i remove the -bak that's
> > been appended to the old directories; but i don't get any result.
> > 
> 
> You're moving a directory to a file?

Renaming a directory.

One presumes that when XFCE starts up and ~/.config/xfce4/ does not
exist, XFCE will create it with default settings.

I don't understand the restoration part.  It's unclear how William is
going to "remove the -bak" when there are both directories in existence.



Re: Xfce desktop problem

2023-01-01 Thread Andrew M.A. Cater
On Sun, Jan 01, 2023 at 03:31:04PM -0600, William Torrez Corea wrote:
> How to can restore my last configuration?
> 
> Try resetting to defaults
> 
> mv ~/.config/xfce4-session/ ~/.config/xfce4-session-bak
> mv ~/.config/xfce4/ ~/.config/xfce4-bak
> 
> When i want to restore the old configuration, i remove the -bak that's
> been appended to the old directories; but i don't get any result.
> 

You're moving a directory to a file? I suspect you'd be better tarring
the directory up and just untarring it ... I think your mv command doesn't
do quite what it should?

Andy C

> -- 
> 
> With kindest regards, William.
> 
> ⢀⣴⠾⠻⢶⣦⠀
> ⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
> ⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
> ⠈⠳⣄
>