LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 02-25-2019, 06:30 AM   #1
madmax25
Member
 
Registered: Aug 2018
Posts: 348

Rep: Reputation: Disabled
Xubuntu 18.04.2-32bit with Compiz - How to save position of desktop icons, please?


I hope I'm in the proper board for a Xubuntu question...

When I'm running the ordinary xfwm4 desktop, the positions of the desktop icons are ok.
They are all where I want them to be.

But when I boot to Xubuntu using Compiz, all desktop icons are sorted differently.

How can I prevent that from happening, please?

Last edited by madmax25; 02-25-2019 at 07:33 AM.
 
Old 02-26-2019, 01:42 AM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
xfdesktop is responsible for desktop icons on xfce.
i don't see how a change from compiz to xfwm could affect this.
maybe there's a difference in how these two options are started?
 
Old 02-26-2019, 03:49 AM   #3
madmax25
Member
 
Registered: Aug 2018
Posts: 348

Original Poster
Rep: Reputation: Disabled
The positions don't change, when I boot Xubuntu into xfwm4.

They stay in their wanted positions when I switch between xfwm4 and Compiz (and back again), using these commands within the terminal:

Code:
compiz --replace &
Code:
xfwm4 --replace &
But I've edited the following file:
Code:
~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-session.xml
I changed the line...
Code:
<property name="Client0_Command" type="empty"/>
...into this...
Code:
<property name="Client0_Command" type="array">
        <value type="string" value="compiz"/>
      </property>
So, I can boot directly into Compiz, but then, the position of the desktop icons is different, and I don't know, why?
 
Old 02-27-2019, 12:18 AM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
it's a long time i maintained an XFCE desktop, let's see my Xubuntu VM...

the xfce4-session.xml in your hoe is mostly empty; you need to look at the dfined values in /etc/xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-session.xml
- that looks a little different, you need to define more i guess.
you can also use the "Settings Editor" for this. Probably safer.
 
Old 02-28-2019, 12:36 PM   #5
madmax25
Member
 
Registered: Aug 2018
Posts: 348

Original Poster
Rep: Reputation: Disabled
Unfortunately, I cannot find any information on the web on how to save a desktop layout in the same way than it looks like in xfwm4.

Each time I boot into Compiz, the icons look like I had used the rearrange option of the context menu of the desktop.

Last edited by madmax25; 02-28-2019 at 01:16 PM.
 
Old 02-28-2019, 01:52 PM   #6
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by madmax25 View Post
Unfortunately, I cannot find any information on the web on how to save a desktop layout in the same way than it looks like in xfwm4.

Each time I boot into Compiz, the icons look like I had used the rearrange option of the context menu of the desktop.
this has nothing to do with what i suggested in my last post.
did you take a good look at the files & software mentioned? compare it to the output you posted?
 
Old 03-01-2019, 04:04 AM   #7
madmax25
Member
 
Registered: Aug 2018
Posts: 348

Original Poster
Rep: Reputation: Disabled
Now, I've got another problem.

After

Code:
xfwm4 --replace &
or when I boot in the ordinary xfwm4, I have only one of four workspaces left.

When I right-click that workspace in the taskbar and go to Settings, I see the number 1, but I cannot change that, because the up and down buttons are grayed out.

To be able to change that number I have to go to workspace settings in the same window, and enter a 4, but after the next reboot, that number is reset to 1 again.

As for the misplaced icons:
The only way I could think of, is to copy

Code:
/etc/xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-session.xml
to

Code:
~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-session.xml
but I cannot identify the line or lines to be edited and I don't know how to do it, i.e. what to enter as new commands.

EDIT:
Please ignore the 2nd problem about the missing workspaces.
Meanwhile, I was able to fix it by restoring that bar by means of Settings -> xfce-Panel-switch.

Last edited by madmax25; 03-01-2019 at 08:46 AM.
 
Old 03-09-2019, 10:57 AM   #8
madmax25
Member
 
Registered: Aug 2018
Posts: 348

Original Poster
Rep: Reputation: Disabled
Meanwhile I decided to use the following method:
With this command...
Code:
sudo chattr +i ~/.config/xfce4/desktop/icons*
...I removed the writing privileges of the according icons file
and added the following script to my autostart:
Code:
#!/bin/bash
sleep 20
xfdesktop --reload
That way, the icons are rearranged 20 seconds after booting, which, on my little netbook, is the perfect delay to have them rearranged right before I see them on my compiz desktop.

On my ordinary xfwm4 desktop they are rearranged a few seconds too late, but I don't care, because in that case they are already where I want them to be and therefore don't move anyway.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Lock position of some GNOME desktop icons? General Linux - Desktop 3 07-30-2020 03:06 PM
Desktop icons - size & position dtref Linux - Newbie 1 10-09-2018 03:06 PM
ubuntu-desktop vs. kubuntu-desktop vs. xubuntu-desktop vs. lubuntu-desktop vs. unity Kenny_Strawn Ubuntu 18 05-13-2011 09:20 AM
Fedora 13 32bit and then Linux Mint 32bit and then Ubuntu 10.04 32bit ciao303 Linux - Newbie 3 08-09-2010 11:03 PM
How to fix the Cairo-clock desktop position at startup? maiden2 Ubuntu 1 05-10-2009 05:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 12:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration