Bug 19966

Summary: Xfce desktop shortcuts re-arrange location after boot
Product: Mageia Reporter: Bit Twister <bittwister2>
Component: RPM PackagesAssignee: Jani Välimaa <jani.valimaa>
Status: NEW --- QA Contact:
Severity: normal    
Priority: Normal CC: marja11, michel.autem
Version: CauldronKeywords: 6sta2
Target Milestone: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Source RPM: xfce4-session-4.12.1-11.mga6 CVE:
Status comment:
Attachments: bottom right placement.

Description Bit Twister 2016-12-17 13:58:51 CET
Description of problem:   6_s2:

 Xfce desktop shortcuts re-arrange location after boot

I have $ ls ~/Desktop/*desktop | wc -l
44  desktop shortcuts placed in a U shaped arrangement around the desktop.
I can log out/in and shortcut placement remains constant.

After a reboot, shortcuts become cluttered and placed vertically on left side of desktop.
 
Version-Release number of selected component (if applicable):


How reproducible: Always


Steps to Reproduce:
1. Create the following shortcuts in ~/Desktop
x10min.desktop        xgmail.desktop      xmtv.desktop      xterm4.desktop
xbittwister2.desktop  xgnumeric.desktop   xmythtv2.desktop  xterm.desktop
xbox2.desktop         xhome.desktop       xmythtv.desktop   xtoggle.desktop
xbrowser.desktop      xhotmail.desktop    xnew.desktop      xuser.desktop
xcalc.desktop         xisp.desktop        xpavu.desktop     xvbox.desktop
xcash.desktop         xisp_email.desktop  xroot.desktop     xwebcam2.desktop
xchase.desktop        xk3b.desktop        xslide.desktop    xwebcam3.desktop
xchase_email.desktop  xkill.desktop       xslrn.desktop     xwebcam4.desktop
xckmail.desktop       xltb.desktop        xtb.desktop       xwebcam.desktop
xdiamond.desktop      xmdbug.desktop      xterm2.desktop    xwork.desktop
xflight.desktop       xmoney.desktop      xterm3.desktop    xyahoo.desktop

Example shortcut content.
$ cat xltb.desktop 
[Desktop Entry]
Version=1.0
Type=Application
Name=ltb
Comment=ltb
Exec=/home/bittwister/local/bin/ltb
Icon=/local/icons/email.png
Path=
Terminal=false
StartupNotify=true


2. chmod +x *.desktop
3. arrange shortcuts in a U shape around the edges of the desktop. For best effect/testing, arrange some bottom right as seen in the attachment.

4. reboot and login.
Comment 1 Bit Twister 2016-12-17 14:00:26 CET
Created attachment 8794 [details]
bottom right placement.
Marja Van Waes 2016-12-17 17:48:26 CET

Assignee: bugsquad => jani.valimaa
CC: (none) => marja11

Bit Twister 2017-01-24 09:31:26 CET

Status comment: (none) => 6_s2
Summary: 6_s2: Xfce desktop shortcuts re-arrange location after boot => Xfce desktop shortcuts re-arrange location after boot

Bit Twister 2017-01-31 18:37:15 CET

Keywords: (none) => 6sta2
Status comment: 6_s2 => (none)

Bit Twister 2017-02-01 23:44:14 CET

Source RPM: (none) => xfce4-session-4.12.1-10.mga6.src.rpm

Comment 2 Bit Twister 2017-03-03 12:49:17 CET
I have also seen the problem upon log out/in.

Workaround:
arrange shortcuts as desired
cd ~/.config/xfce4/desktop
delete all *.rc files except the one with the latest date/time.
copy that file to same name.rc_default
create a startup script which copies whatever.rc_default to whatever.rc
create a desktop file in ~/.config/autostart to execute the startup script.

$ cat ~/.config/autostart/xfce_startup.desktop
[Desktop Entry]
Encoding=UTF-8
Version=0.9.4
Type=Application
Name=Xfce_startup
Comment=Local xfce_startup
Exec=/home/bittwister/local/bin/xfce_startup.sh
OnlyShowIn=XFCE;
StartupNotify=false
Terminal=false
Hidden=false



code snippet from /home/bittwister/local/bin/xfce_startup.sh

    if [ -d $HOME/.config/xfce4/desktop ] ; then
      cd $HOME/.config/xfce4/desktop
      _fn=$(ls *_default 2> /dev/null)
      if [ -n "$_fn" ] ; then
         cp $_fn ${_fn%%_default}
      fi
    fi

    sleep 3
Comment 3 Bit Twister 2017-03-21 11:16:30 CET
I think I see what causes the problem in my setup. When xfce starts up it it launches the top/bottom panels, computes remaining desktop space, creates new $HOME/.config/xfce4/desktop/icons.screen0-whatever destroying my shortcut placements.

My placement at bottom of screen is in the same space as panel 2 which is set always Auto hide.

I believe if xfce would set user panel configuration first, then compute screen size my problem would be resolved.

Source RPM: xfce4-session-4.12.1-10.mga6.src.rpm => xfce4-session-4.12.1-11.mga6

Comment 4 Michel AUTEM 2022-02-10 09:17:22 CET
I got also this bug in the past. It had been gone for quite a while but it's back...

It's not systematic, let us say once on three, and I can't reproduce it at will. I always shut down my computer in the same way but sometimes the last ~/.config/xfce4/desktop/*.rc is corrupted. And I don't see any external event, like a power cut, which might explain that.

OK, I wrote a workaround script, but it's not completely satisfying ...

CC: (none) => michel.autem