Skip to content

strange behaviour when desktop is set to home #1867

@SArpnt

Description

@SArpnt
Expected Behavior

see possible solution

Current Behavior

image
if i click the home folder, it highlights the home folder on the left, and says Desktop at the top, even though the folder name
is not Desktop and the purpose of the folder is not as a desktop.
if i click Desktop, it highlights until i let go of the mouse button, which then it highlights the home folder on the left and behaves the same. if i right click on the left to hide Home or Desktop, both hide at the same time, and both unhide at the same time.

Possible Solution

if the desktop directory is the home directory, remove Desktop from the list and treat home as home.

Steps to Reproduce (for bugs)
  1. in ~/config/user-dirs.dirs, set XDG_DESKTOP_DIR to "$HOME"
  2. maybe update user dirs with whatever relevant xdg command
  3. view file manager
Context

i use sway, and my own system of organizing files. there's no desktop icons, so a Desktop directory doesn't make sense.
my user-dirs.dirs file looks like this

XDG_DESKTOP_DIR="$HOME"
XDG_DOWNLOAD_DIR="$HOME/Downloads"
XDG_TEMPLATES_DIR="$HOME/Templates"
XDG_PUBLICSHARE_DIR="$HOME"
XDG_DOCUMENTS_DIR="$HOME"
XDG_MUSIC_DIR="$HOME"
XDG_PICTURES_DIR="$HOME"
XDG_VIDEOS_DIR="$HOME"

if there's a way to completely unset the desktop dir, i would prefer it but i haven't seen any way to do that.
trying to leave the string empty just causes it to reset to default.

System Information
  • PcManFm-qt version: 1.4.1-1
  • Distribution & Version: arch linux
  • Qt Version: 5.15.12+kde+r150-1
  • liblxqt Version: 5.15.12+kde+r150-1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions