User-Agent: Opera/9.27 (X11; Linux x86_64; U; en) Build Identifier: xfdesktop shows a desktop file that contains the "OnlyShowIn=KDE;" line. According to the specification (http://standards.freedesktop.org/desktop-entry-spec/latest/ar01s05.html) that's not the intended behaviour. Reproducible: Always Steps to Reproduce: Create a xterm.desktop in ~/Desktop that contains ---------------------------------------- [Desktop Entry] Version=1.0 Encoding=UTF-8 Type=Application Name=xterm Comment= Categories=Application; Exec=xterm Icon= Terminal=false StartupNotify=false OnlyShowIn=KDE; ---------------------------------------- and restart Xfce. Actual Results: The xterm icon is shown. Expected Results: The xterm icon should not be shown because it's not KDE. I use Xfce 4.4.2 on openSUSE 11.0/Factory. The bug has been reported as https://bugzilla.novell.com/show_bug.cgi?id=379918.
xfdesktop doesn't do .desktop file parsing on its own. Benny, what do you think?
Thunar shows the same behaviour on my computer. This is IMHO somewhat controversial. Should a file manager[1] really hide otherwise non-hidden files from the user, like that? Or maybe they should just be considered as hidden files by Thunar, and only be visible in Thunar when regular hidden files are visible. [1]: I consider the desktop to be a [part of the] file manager, even if it's not Thunar managing the desktop.
(In reply to comment #2) > > This is IMHO somewhat controversial. Should a file manager[1] really hide > otherwise non-hidden files from the user, like that? Or maybe they should just > be considered as hidden files by Thunar, and only be visible in Thunar when > regular hidden files are visible. I don't think that this makes sense since the user doesn't know then *why* the file is hidden and how to make it visible again. > [1]: I consider the desktop to be a [part of the] file manager, even if it's > not Thunar managing the desktop. I disagree here. I think the file manager for a user is not the same as a destop. While this technically makes sense, from a user point of view I'd like to see all files in my file manager but only "some" files on the desktop. Bernhard
(In reply to comment #3) > I don't think that this makes sense since the user doesn't know then *why* the > file is hidden and how to make it visible again. Which file? Thunar doesn't show the real filename anyway. It uses the name from the desktop entry data, as well as the specified icon. > I disagree here. I think the file manager for a user is not the same as a > destop. While this technically makes sense, from a user point of view I'd like > to see all files in my file manager but only "some" files on the desktop. I find that to be rather inconsistent. "Why aren't the desktop showing all the files in my desktop directory? I can see them in file manager windows, but not on my desktop!"
(In reply to comment #4) > (In reply to comment #3) > > I don't think that this makes sense since the user doesn't know then *why* the > > file is hidden and how to make it visible again. > > Which file? Thunar doesn't show the real filename anyway. It uses the name from > the desktop entry data, as well as the specified icon. Right, but at least there you see *something*. I don't think a file manager should be arbitrarily hiding files from users depending on what environment is running. That just sounds wrong and confusing, and there might be security issues here. > > I disagree here. I think the file manager for a user is not the same as a > > destop. While this technically makes sense, from a user point of view I'd like > > to see all files in my file manager but only "some" files on the desktop. > > I find that to be rather inconsistent. > "Why aren't the desktop showing all the files in my desktop directory? I can > see them in file manager windows, but not on my desktop!" Because the file manager is a file manager, and the desktop is not. It makes sense for, say, KDE to be able to install launchers on the the user's desktop on first run, but for KDE-specific things that the user won't want to see on Xfce. The desktop isn't meant to be a folder, it's meant to be a desktop. But from the file manager's POV, ~/Desktop is a folder, and it should show the files in it. It's a common convention and pretty well-known that dot-files are supposed to be hidden files. I don't think we should add "sorta hidden depending on what DE you run" files to that list. It also seems weird to me to have a file manager that displays different things depending on what DE it runs under. What do KDE/Konqueror and GNOME/Nautilus do?
Please fix also NotShowIn keyword when fixing OnlyShowIn. http://standards.freedesktop.org/desktop-entry-spec/latest/ar01s05.html
I'm not convinced I want to implement this. I ask again: what do Nautilus/GNOME and Konqueror/KDE do?
GNOME doesn't show it on the desktop. It treats it as a hidden file in the file manager (Nautilus), i.e. the default is to not show the desktop file but it gets shown if you select "hidden files" from the context menu. Tested with GNOME 2.22.1 on openSUSE 11.0 Beta 2 Live DVD. KDE4 seems to ignore the entry in both the file manager (Dolphin) and the desktop. Tested with KDE 4.0.3 on openSUSE 11.0 Beta 2 Live DVD.
Ok, sounds reasonable to me, at least for xfdesktop. I'll assume GNOME and KDE have thought through the possible issues and deemed them not a particularly big deal. Not sure this will go into 4.4, but definitely for 4.6.
Any news?
(In reply to comment #10) > Any news? Don't spam the bug.
Checked into trunk, rev 27946. This is for xfdesktop only; if you think Thunar should behave the same way, please open a separate bug.