Palemoon creates a ~/Desktop directory when started

Support and discussions for the x86/x64 Linux version of Pale Moon.

Moderators: trava90, Indalecio, satrow

brwno
Moongazer
Moongazer
Posts: 13
Joined: Mon Jul 28, 2014 2:21 am
Location: Brazil

Palemoon creates a ~/Desktop directory when started

Postby brwno » Sun Sep 10, 2017 4:07 pm

Problem: PM (on Archlinux) creates a ~/Desktop directory/folder every time that it is started.

More info:
1. It also used to create a ~/Downloads folder, but that was fixed by changing somethings in 'about:config'.
2. I don't see anything in 'Preferences' nor in 'about:config' that could fix it.
3. I am not using the portable version.
4. I tried with all addons disabled.

User avatar
lightning slinger
Fanatic
Fanatic
Posts: 135
Joined: Mon Jul 27, 2015 5:50 pm
Location: England

Re: Palemoon creates a ~/Desktop directory when started

Postby lightning slinger » Sun Sep 10, 2017 4:54 pm

Not in my Arch Linux it doesn't!
Perhaps you can tell us how you installed PM, manually from tar.bz2, pminstaller.sh or palemoon or palemoon-bin from the AUR?
Arch Linux Xfce x86_64
Xubuntu 16.04 LTS x86_64

User avatar
adesh
Fanatic
Fanatic
Posts: 216
Joined: Tue Jun 06, 2017 7:38 am

Re: Palemoon creates a ~/Desktop directory when started

Postby adesh » Sun Sep 10, 2017 5:14 pm

Maybe Pale Moon thinks ~/Desktop is the download directory. Search about:config for "Desktop" to find any references and reset/modify the preferences to your liking.

brwno
Moongazer
Moongazer
Posts: 13
Joined: Mon Jul 28, 2014 2:21 am
Location: Brazil

Re: Palemoon creates a ~/Desktop directory when started

Postby brwno » Sun Sep 10, 2017 6:24 pm

1. I installed PM from the AUR (https://aur.archlinux.org/packages/palemoon-bin/). [PS: Correction: It was 'https://aur.archlinux.org/packages/palemoon/'.]

2. Neither 'browser.download.dir' nor 'browser.download.lastDir' point to '~/Desktop' and I couldn't find anything else in 'about:config' that did. (Also checked the 'Preferences' for the default download folder and even searched for 'Desktop' in the 'prefs.js' file in the profile folder with no results.)

User avatar
lightning slinger
Fanatic
Fanatic
Posts: 135
Joined: Mon Jul 27, 2015 5:50 pm
Location: England

Re: Palemoon creates a ~/Desktop directory when started

Postby lightning slinger » Sun Sep 10, 2017 7:02 pm

brwno wrote:....
2. Neither 'browser.download.dir' nor 'browser.download.lastDir' point to '~/Desktop' and I couldn't find anything else in 'about:config' that did. (Also checked the 'Preferences' for the default download folder....

Strange, I don't have browser.download.dir in my about:config which was installed with pminstaller.sh together with a new profile when PM27 was released!

Perhaps time to backup your existing profile and try a new profile for test purposes.
Arch Linux Xfce x86_64
Xubuntu 16.04 LTS x86_64

User avatar
trava90
Contributing developer
Contributing developer
Posts: 1291
Joined: Mon May 20, 2013 6:19 pm
Location: Earth
Contact:

Re: Palemoon creates a ~/Desktop directory when started

Postby trava90 » Sun Sep 10, 2017 11:35 pm

Let me remind everyone that most of the builds from the AUR do not use recommended configurations, will differ from our official builds (including potential stability issues, bugs, etc.), and are not recommended for use.

I'm unable to reproduce on Manjaro or Mint using the official builds.

brwno
Moongazer
Moongazer
Posts: 13
Joined: Mon Jul 28, 2014 2:21 am
Location: Brazil

Re: Palemoon creates a ~/Desktop directory when started

Postby brwno » Mon Sep 11, 2017 1:29 am

1. Created a new profile, but it also generates a ~/Desktop directory.

(Indeed, the new profile does not have the 'browser.download.dir' and 'browser.download.lastDir' preferences, which I presume were created by an addon. However, in the old profile, the value of such preferences was not '~/Desktop'.)

2. Reinstalled PM: didn't work.

3. Will try other things.

User avatar
helloimustbegoing
Board Warrior
Board Warrior
Posts: 1581
Joined: Thu Jun 28, 2012 1:20 am
Location: Mel's Diner

Re: Palemoon creates a ~/Desktop directory when started

Postby helloimustbegoing » Mon Sep 11, 2017 8:22 pm

brwno wrote:
2. Reinstalled PM: didn't work

How? By using the official build as suggested by trava90?

distantpluto
Hobby Astronomer
Hobby Astronomer
Posts: 24
Joined: Thu Dec 17, 2015 6:28 pm
Location: UK

Re: Palemoon creates a ~/Desktop directory when started

Postby distantpluto » Tue Sep 12, 2017 3:25 pm

I've been building from the AUR (https://aur.archlinux.org/packages/palemoon/) for a while and never suffered any problem. I don't have any directories created under home apart from the profile directory and where I've specifically pointed downloads to.

trava90 wrote:Let me remind everyone that most of the builds from the AUR do not use recommended configurations, will differ from our official builds (including potential stability issues, bugs, etc.), and are not recommended for use.


I'm genuinely curious in which way they differ and what stability issues and bugs they suffer from?

User avatar
trava90
Contributing developer
Contributing developer
Posts: 1291
Joined: Mon May 20, 2013 6:19 pm
Location: Earth
Contact:

Re: Palemoon creates a ~/Desktop directory when started

Postby trava90 » Tue Sep 12, 2017 10:05 pm

distantpluto wrote:I'm genuinely curious in which way they differ and what stability issues and bugs they suffer from?

In short the majority of the AUR maintainers have been let's say, "less than enthusiastic" (and in some cases even hateful) about using sane mozconfig/build environment settings per my suggestions. These differences range from unsupported/untested build options, using compilers known to cause crashes, experimental/potentially unsafe compiler flags and optimizations, etc. As such, we cannot recommend or really provide support for AUR builds.

distantpluto
Hobby Astronomer
Hobby Astronomer
Posts: 24
Joined: Thu Dec 17, 2015 6:28 pm
Location: UK

Re: Palemoon creates a ~/Desktop directory when started

Postby distantpluto » Wed Sep 13, 2017 11:45 am

trava90 wrote:In short the majority of the AUR maintainers have been let's say, "less than enthusiastic" (and in some cases even hateful) about using sane mozconfig/build environment settings per my suggestions. These differences range from unsupported/untested build options, using compilers known to cause crashes, experimental/potentially unsafe compiler flags and optimizations, etc. As such, we cannot recommend or really provide support for AUR builds.


I wasn't aware of any of this as I have only used the one AUR package I mentioned previously and the maintainer (WorMzy) appears to be have implemented all requests from upstream, from what I can tell. WorMzy also maintains 'palemoon-bin', which my wife uses, so I can't imagine any problems there either, it's a very simple package. Personally, I've had zero problems related to using Pale Moon from either.

Anyway, there is no way I would expect you to recommend or support any AUR builds anyway, Arch users accept the risks of using such packages!

Many thanks for all your hard work (everyone involved), I'd be lost without this browser :) And apologies for the off-topic.

brwno
Moongazer
Moongazer
Posts: 13
Joined: Mon Jul 28, 2014 2:21 am
Location: Brazil

Re: Palemoon creates a ~/Desktop directory when started

Postby brwno » Fri Sep 15, 2017 1:37 am

(Took me long to reply; sorry.)

Yes, I did use an official build. I just now:

1. Uninstalled the AUR Palemoon ('sudo pacman -Rs palemoon');
2. Donwloaded the tarball at <http://linux.palemoon.org/download/mainline/> (x64);
3. Extracted it with 'tar xjz palemoon-27.4.2.en-US.linux-x86_64.tar.bz2';
4. Ran it with '$ ./palemoon --safe-mode --no-remote -P'; and, finally,
5. Created a new profile.

And it still creates the ~/Desktop directory.

So:

1. Perhaps I am at fault, since I am a noob Linux user (just a few months); or
2. Some feature of my specific Linux configuration leads Palemoon to create the folder. (In this regard, I have no desktop environment or any such thing installed; only i3, started from '.xinitrc'. Could this "plebeian" configuration have triggered the strange behavior of Palemoon?)

(Incidentally, for what it is worth, I would say, with distantpluto, that I too never experienced problems with the AUR Palemoon.)

dinosaur
Moon lover
Moon lover
Posts: 95
Joined: Tue Jun 03, 2014 9:26 am
Location: France

Re: Palemoon creates a ~/Desktop directory when started

Postby dinosaur » Mon Sep 18, 2017 11:39 pm

I saw the same thing happening in Mandriva and forks (Rosa, PCLinuxOS...).

I solved it by editing ~/.config/user-dirs.dirs and removing all the silly Windows-like directory names there, to read:

Code: Select all

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

User avatar
gracious1
Lunatic
Lunatic
Posts: 384
Joined: Sun May 15, 2016 5:00 am
Location: gloomy upstate NY
Contact:

Re: Palemoon creates a ~/Desktop directory when started

Postby gracious1 » Tue Sep 19, 2017 8:44 am

dinosaur wrote:I solved it by editing ~/.config/user-dirs.dirs and removing all the silly Windows-like directory names there

Hmm... :think: XDG refers to the organization formerly known as X Desktop Group, now called Freedesktop.org. It has nothing to do with Microsoft Windows; it's about X Windows. It's using Unix (& GNU/Linux) naming conventions for variables. It is situating all these directories in your home directory. ($HOME).

brwno wrote:2. Some feature of my specific Linux configuration leads Palemoon to create the folder. (In this regard, I have no desktop environment or any such thing installed; only i3, started from '.xinitrc'. Could this "plebeian" configuration have triggered the strange behavior of Palemoon?)

So since this involves XDG I think that yes, there is a relation between the lack of a desktop environment and the creation of these directories, since Freedesktop.org develops or facilitates development of software for desktop environments.

The file is written by xdg-user-dirs-update. Rather than delete those directories, however, I think you should just change them:

Code: Select all

XDG_DESKTOP_DIR="$HOME/Desktop"
XDG_DOWNLOAD_DIR="$HOME/Downloads"
XDG_TEMPLATES_DIR="$HOME/Templates"
XDG_PUBLICSHARE_DIR="$HOME/Public"
XDG_DOCUMENTS_DIR="$HOME/Documents"
XDG_MUSIC_DIR="$HOME/Music"
XDG_PICTURES_DIR="$HOME/Pictures"
XDG_VIDEOS_DIR="$HOME/Videos"

This is how they look in my user-dirs.dirs file. By just having them set to "$HOME/" (which is a curious setting), xdg-user-dirs is creating new directories, I'm guessing. But generally xdg-user-dirs runs at login, so why it would run at the execution of Pale Moon I am not sure.

Or, okay, so you don't want any kind of ~/Downloads or ~/Pictures or whatever? If you really want to, you can disable this altogether. But don't delete the directory entries! Try this instead:

Code: Select all

echo "enabled=False" | tee -a ~/.config/user-dirs.conf


Whew! Hope this helps. :mrgreen:
ImageBe not the first by whom the new are tried, nor yet the last to lay the old aside. — Alexander Pope

dinosaur
Moon lover
Moon lover
Posts: 95
Joined: Tue Jun 03, 2014 9:26 am
Location: France

Re: Palemoon creates a ~/Desktop directory when started

Postby dinosaur » Tue Sep 19, 2017 3:30 pm

gracious1 wrote:
dinosaur wrote:I solved it by editing ~/.config/user-dirs.dirs and removing all the silly Windows-like directory names there

Hmm... :think: XDG refers to the organization formerly known as X Desktop Group, now called Freedesktop.org. It has nothing to do with Microsoft Windows; it's about X Windows. It's using Unix (& GNU/Linux) naming conventions for variables. It is situating all these directories in your home directory. ($HOME).

I wrote Windows-like (I never said it was Windows, but it was certainly done to look like it). I've been using Linux (and before that, Xenix) for decades, so please, don't take me for a noob...
Yes, this is a Windows-like way to try and impose a directory structure and sub-directory names in a user directory. I hate this, and just like the initiator of this thread did (please re-read their message), I deleted all those silly directories and do not want them to come back ever !

So since this involves XDG I think that yes, there is a relation between the lack of a desktop environment and the creation of these directories, since Freedesktop.org develops or facilitates development of software for desktop environments.

The file is written by xdg-user-dirs-update. Rather than delete those directories, however, I think you should just change them:
.../...

NO !!! If you change them back to what you advise, the directories will be re-created ! Instead, doing l like I wrote, those directories will never, ever be re-created by XDG (since all the environment variables point to the user directory instead, which does exist).

Or, okay, so you don't want any kind of ~/Downloads or ~/Pictures or whatever? If you really want to, you can disable this altogether. But don't delete the directory entries! Try this instead:

Code: Select all

echo "enabled=False" | tee -a ~/.config/user-dirs.conf

In my experience (with Gnome 2 and Mate v1.14, at least) , this setting is insufficient to prevent the re-creation of the directories (also, it seems specific to some distros, since it controls the behaviour of a 'xdg-user-dirs-update' command, which I don't have in the distros I am using).

distantpluto
Hobby Astronomer
Hobby Astronomer
Posts: 24
Joined: Thu Dec 17, 2015 6:28 pm
Location: UK

Re: Palemoon creates a ~/Desktop directory when started

Postby distantpluto » Wed Sep 20, 2017 6:27 pm

dinosaur wrote:I solved it by editing ~/.config/user-dirs.dirs and removing all the silly Windows-like directory names there...[snip][/code]


I'm totally with you on that one. I edited my ~/.config/users-dirs.dirs to this a long time ago...

Code: Select all

XDG_DESKTOP_DIR="$HOME/temp/xdg_dirs_dump"
XDG_DOWNLOAD_DIR="$HOME/downloads"
XDG_TEMPLATES_DIR="$HOME/temp/xdg_dirs_dump"
XDG_PUBLICSHARE_DIR="$HOME/temp/xdg_dirs_dump"
XDG_DOCUMENTS_DIR="$HOME/temp/xdg_dirs_dump"
XDG_MUSIC_DIR="$HOME/temp/xdg_dirs_dump"
XDG_PICTURES_DIR="$HOME/temp/xdg_dirs_dump"
XDG_VIDEOS_DIR="$HOME/temp/xdg_dirs_dump"

'xdg_dirs_dump' is of course just a directory i created where this crap gets contained ;)


Return to “Pale Moon for Linux”

Who is online

Users browsing this forum: CraigPD and 8 guests