![]() |
|
OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD. |
![]() |
|
Thread Tools | Display Modes |
|
|||
![]()
I'm on OpenBSD 6.5 with fluxbox, which doesn't really have a desktop. Therefore, I don't have (or want) a ~/Desktop directory.
Much to my surprise, something on my system periodically creates a ~/Desktop directory. It happens randomly, I delete it when it appears, a few days later it shows up again, and the cycle repeats. I'm guessing a badly-behaved GUI application is to blame, but I use very few GUI applications. The only ones I use at least weekly are xterm, xfe, thunderbird, iridium, filezilla, mpv, redshift, xscreensaver. I think that's it (iridium runs with unveil, so it's probably not a suspect). I appended a line to ~/.config/user-dirs.dirs, so that it now looks like this: Code:
XDG_DOWNLOAD_DIR="$HOME/Downloads" XDG_DESKTOP_DIR="$HOME" Code:
export XDG_CONFIG_HOME=/home/bruno/.config Last edited by brudan; 20th May 2019 at 09:59 PM. Reason: clarification |
|
||||
![]()
I am using Fluxbox, myself, but recently. Was using OpenBox, and Fvwm usually. I don't know, but it does seem like if you removed/deleted the directory, it should not just come back all by itself. Were there any files in it , before you deleted it ?
I have just now tried, as a experiment, I renamed my Desktop directory, since it has a lot of files and I do use it, but out of curiosity to see if a new one appears later. It does seem odd to me.
__________________
My best friends are parrots |
|
|||
![]()
chown root:wheel ~/Desktop and then launch every of your apps through terminal and detect which one outputs an error related to ~/Desktop directory
|
|
|||
![]()
I believe ~/Desktop is produced by Firefox. I have almost the same entry in ~/.config/user-dirs.dirs as brudan but it's slightly different.
XDG_DESKTOP_DIR="$HOME/" XDG_DOCUMENTS_DIR="$HOME/" XDG_DOWNLOAD_DIR="$HOME/" This works for me. |
|
||||
![]() Quote:
Do you remember how/when the first instance of a "Desktop" directory got created ? I ask because on a fresh , default install of OpenBsd, there is no Desktop directory created in the /home directory. On my system, the /home directory is in the sd0k partition, normally no sub directories are created until I create them. In my case the "Desktop" directory was made when I transferred copied all the files/directories in my /home directory on my old Linux system, to the fresh OpenBsd system, this was way back when OpenBsd was 5.3 or 5.4, but any way the Desktop directory was created because there was a Desktop dir in the home dir I copied. Just now tried some downloads using Firefox, and so far no new Desktop dir has been made. I do agree, I would find it rather disturbing if something unknown was creating any directories with out me telling it to,
__________________
My best friends are parrots |
|
||||
![]()
All though Firefox, did not do this, just now tried "Seamonkey", and it immediately created a new Desktop directory. Than is sad, in my mind that classifies as mal ware, no Browser should do that.
Well, maybe not excatly mal ware, it seems harmless enough, but in any event no browser should be makeing un wanted directories, like that. Quote:
===edit ====== Trying Iridium my self, and seems ok, no Desktop dir got created so far.
__________________
My best friends are parrots Last edited by PapaParrot; 21st May 2019 at 02:44 PM. |
|
|||
![]()
Thank you all for the suggestions.
Regarding firefox: Internet searches give many hits about firefox doing this, but I don't have firefox installed. However, I do use thunderbird which is/was made by same folks. I'm going to try changing Code:
XDG_DESKTOP_DIR="$HOME" Code:
XDG_DESKTOP_DIR="/home/bruno" I never created ~/Desktop myself; when it gets auto-created, the directory is empty. @victorvas: That's an excellent idea, but the creation of ~/Desktop happens only rarely. I already tried launching all my X applications one at a time, and was not able to reproduce. It only happens when I'm not expecting ![]() In the meantime, I'll always have this script running in the background, so at least I'll know what processes were running ~when it happens again: Code:
#!/bin/sh busted() { aucat -i /path/to/alarm.wav date >$HOME/suspects.txt ps axuww >>$HOME/suspects.txt exit } while true; do [ -d $HOME/Desktop ] && busted sleep 1 done Last edited by brudan; 22nd May 2019 at 12:29 AM. |
|
|||
![]()
My script above helped me find the culprit: thunderbird.
Just normal usage of thunderbird (starting it, sending and receiving email, uploading/downloading attachments, closing it) is fine, but certain operations (e.g., clicking on Edit then Preferences) reliably cause ~/Desktop to be created if ~/.config/user-dirs.dirs contains XDG_DESKTOP_DIR="$HOME" (note the lack of a final forward slash) or no entry specifying desktop dir. To make thunderbird stop automatically creating ~/Desktop, having any of these in ~/.config/user-dirs.dirs does the trick: XDG_DESKTOP_DIR="$HOME/" XDG_DESKTOP_DIR="/home/username" XDG_DESKTOP_DIR="/home/username/" So I was just missing a forward slash after $HOME. Who would have thought?! P.S. For you fellow minimalists out there, I discovered that exporting XDG_CONFIG_HOME in ~/.xsession (as I mentioned in the original post) is not necessary--at least as far as thunderbird is concerned. In other words, it seems that looking for user-dirs.dirs in ~/.config/ is the default. Last edited by brudan; 22nd May 2019 at 12:29 PM. Reason: PS about .xsession |
![]() |
Tags |
desktop, solved, xdg, xenocara |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Recommend an app for creating galleries | Sonya | General software and network | 4 | 15th July 2013 10:37 PM |
Help creating a slice | kly | FreeBSD Installation and Upgrading | 4 | 22nd May 2010 04:37 PM |
Creating port | backrow | OpenBSD Packages and Ports | 9 | 9th September 2009 11:55 AM |
Creating 2 slices | Beastie | FreeBSD Installation and Upgrading | 7 | 23rd March 2009 12:22 AM |
strange "~" directory in home directory | gosha | OpenBSD General | 5 | 23rd February 2009 06:12 PM |