By default, Bugzilla does not search the list of RESOLVED bugs.
You can force it to do so by putting the upper-case word ALL in front of your search query, e.g.: ALL tdelibs
We recommend searching for bugs this way, as you may discover that your bug has already been resolved and fixed in a later release.
Bug 1963 - No GUI method exists to permanently modify konqueror View Mode
Summary: No GUI method exists to permanently modify konqueror View Mode
Status: NEW
Alias: None
Product: TDE
Classification: Unclassified
Component: tdebase (show other bugs)
Version: R14.0.x [Trinity]
Hardware: Other Linux
: P5 normal
Assignee: Timothy Pearson
URL:
: 2881 (view as bug list)
Depends on:
Blocks: 2968
  Show dependency treegraph
 
Reported: 2014-02-23 21:11 CST by Darrell
Modified: 2018-08-30 02:52 CDT (History)
6 users (show)

See Also:
Compiler Version:
TDE Version String:
Application Version:
Application Name:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Darrell 2014-02-23 21:11:16 CST
The default Konqueror View Mode is Icon Mode. This is defined in tdebase/konqueror/profile_filemanagement.desktop, installed to /opt/trinity/share/apps/konqueror/profiles/filemanagement.

Changing the default view mode is a frustrating experience. I know of only two methods to modify the global default view mode and neither is acceptable for users.

The first method is modify tdebase/konqueror/profile_filemanagement.desktop during compilation or /opt/trinity/share/apps/konqueror/profiles/filemanagement after compilation. Change the View2_ServiceName key from konq_iconview to konq_${DESIRED_VIEW}.

The second method is available to users but is neither intuitive nor obvious. That method is to modify the inode/directory mimetype (through the directory Properties dialog or kcontrol File Associations).

Reconfiguring the konqueror view mode and then saving the new view mode in a new konqueror profile alleviates only part of the problem. For example, with a new profile, open konqueror with the file management profile (the Home button in the panel). Modify the view mode to tree view and save the profile. From that moment forward opening the konqueror filemanagement profile will use tree view. Close konqueror and then open konqueror with the web browser profile (the browser icon in the panel). Select the Home button. Voila, back to icon view.

Yet even again saving a new profile does not change the global defaults for the user.

Changing the default view mode was possible in Windows back in the 1990s. There is no excuse that no direct GUI method exists for users to manage this feature.

The KDE4 devs finally got this fixed and Trinity should get fixed too.

The KDE4 devs added a new View->Adjust View Properties menu item (both Dolphin and Konqueror), but they also moved several items from the View menu into this dialog.

Rather than replicate the new KDE4 dialog, a consistent design option is to add the missing "View Properties" option in the Konqueror Appearance dialog.

The request here is to provide a simple and direct method to globally change the view mode for the user without resaving the konqueror profiles every time. Currently in Trinity this is a global setting but hidden from users. The proposed new dialog options would look like this:

...
[] Underline filenames

[] Display file sizes in bytes

_______________________________
View Properties

View mode: [drop-down list box]
_______________________________

 OK  Apply  Cancel

The default possible view mode options:

iconview
listview
treeview
multicolumnview
infolistview
textview
detailedlistview

Changes in the global default view mode are stored in the user's Trinity profile at ~/.trinity/share/config/profilerc.

Using the new dialog option will have to work the same as using kcontrol->file associations (Embedded) to create the new profilerc.
Comment 1 Michele Calgaro 2014-02-24 00:26:29 CST
Thanks Darrell,
I always wanted to file such bug and always forgot to do so. I share your view.
Comment 2 Darrell 2014-02-24 00:51:40 CST
For about two years I have been using option number one: changing tdebase/konqueror/profile_filemanagement.desktop when I compile tdebase. I never liked icon view mode and I am mystified that anyone does. I get confused using icon mode, but I cut my teeth on computers back in the 1970s/1980s and list views are all I am comfortble with. Probably the leading reason I stick with Trinity is tree view. No other file manager supports tree view (excluding KDE4 but even they did not add tree view to the new version of Dolphin until well into the 4.x branch).

You hack. I test.
Comment 3 Michele Calgaro 2018-08-05 05:50:07 CDT
*** Bug 2881 has been marked as a duplicate of this bug. ***
Comment 4 Ray Vine 2018-08-09 14:34:44 CDT
In KDE3 the konqueror View Mode is set in konquerorrc by the entry

[MainView Settings]
ViewMode=konq_xxxxview

This is absent in TDE, which then defaults to Icon View.

TDE konqueror tabs can be individually set to a View Mode and those settings are saved via
Settings > Save View Profile "File Management" in the file ~/.trinity/share/apps/konqueror/profiles/filemanagement and for individual tabs are stored as
for example

[Profile]
ViewT0_ServiceName=konq_treeview
..
ViewT1_ServiceName=konq_multicolumnview

So in this case, konqueror would launch with two tabs:
tab 1 would be Tree View
tab 2 would be Multi Column View

But then opening a third tab would be in the TDE default of Icon View.


Adding 
[MainView Settings]
ViewMode=konq_xxxxview

to konquerorrc in TDE will enable the third and subsequent tabs to open in xxxx View Mode.

But making and saving changes to konqueror filemanagement in TDE via Settings... never changes this entry and so a new tab will always launch in xxxx View Mode.

In KDE3, this entry *is* changed, and new tabs can be in whatever View Mode the user wants.


So I think the problem is that TDE doesn't create or write [MainView Settings] in konquerorrc, but will read it. It should do all three.


I don't know and can't work out what process should write [MainView Settings] - hope someone else can.
Comment 5 Michele Calgaro 2018-08-09 20:49:04 CDT
Thanks Ray, 
really useful. Sounds like a regression issue.
Comment 6 Ray Vine 2018-08-11 09:33:38 CDT
Had to go back to KDE3 to find these lines - turns out they were removed from tdebase in commit 10e41144596f in 2009.

View Mode now works correctly.

There are now two icons on the toolbar for setting View Mode -
one for the Icon View group - Icon View and MultiColumn View
one for the List View group - Tree View, Info List View, Detailed List View and Text View.

Starting from a fresh install, the default view mode is Icon View.
Changing this from the toolbar creates the [MainView Settings] entry in konquerorrc - the last set view mode becomes the konqueror filemanager default.

File Management profile can still be set through Settings|Save View Profile "File Management" which sets up the file ~/.trinity/share/apps/konqueror/profiles/filemanagement when it's first run. konqueror then opens with that profile and new tabs open according to the last set view mode.



--- konqueror/listview/konq_detailedlistview.desktop
+++ konqueror/listview/konq_detailedlistview.desktop
@@ -86,0 +87 @@
+X-TDE-BrowserView-Built-Into=konqueror
--- konqueror/iconview/konq_iconview.desktop
+++ konqueror/iconview/konq_iconview.desktop
@@ -87,0 +88 @@
+X-TDE-BrowserView-Built-Into=konqueror
--- konqueror/iconview/konq_multicolumnview.desktop
+++ konqueror/iconview/konq_multicolumnview.desktop
@@ -87,0 +88 @@
+X-TDE-BrowserView-Built-Into=konqueror
--- konqueror/listview/konq_infolistview.desktop
+++ konqueror/listview/konq_infolistview.desktop
@@ -84,0 +85 @@
+X-TDE-BrowserView-Built-Into=konqueror
--- konqueror/listview/konq_textview.desktop
+++ konqueror/listview/konq_textview.desktop
@@ -87,0 +88 @@
+X-TDE-BrowserView-Built-Into=konqueror
--- konqueror/listview/konq_treeview.desktop
+++ konqueror/listview/konq_treeview.desktop
@@ -87,0 +88 @@
+X-TDE-BrowserView-Built-Into=konqueror
Comment 7 Michele Calgaro 2018-08-11 23:47:01 CDT
Hi Ray,
thanks for the patch, I tested already.
Although it brings back the lost functionality, I am not particularly happy with this solution, for the following reasons.

1) with the patch, the toolbar uses three icon menus to show all available display modes. Without the patch, all modes are under the same icon menu. Given the toolbar is already populated with many icons, additional icons just add clutter.

2) behavior becomes inconsistent. Example:
 - open Konqueror with a selected profile (filemanagement): default view "Detailed list"
 - change to "icon view" 
 - open new Konqueror with default profile (e.g. Alt+F2 -> Konqueror). Konqueror opens and remember the "icon view" mode. OK.
 - open new Konqueror with a selected profile (filemanagement): default view "Detailed list". OK
 - open new Konqueror with default profile (e.g. Alt+F2 -> Konqueror). Konqueror opens and show "icon view" mode. Not ok, since the last open view was "Detailed list".

We need some extra work before we can accept the patch.
1) only one icon should be used on toolbar for all view modes.
2) changing the view mode (through menu or toolbar) or opening another konqueror with a selected profile, should update the view mode (either to the selected view mode in the first case or to the view mode of the latest tab opened).

Point 1) is definitely a must. 
Point 2) is debatable and I would like to hear the opinion of Slavek or others as well.

If you intend to work on this, please let me know. I will explain you a better way to proposed patches, which will also make collaboration easier.
Comment 8 Ray Vine 2018-08-12 07:07:59 CDT
Hi Michele,

What you describe is KDE3 behaviour which I'm entirely happy with.

> - open new Konqueror with default profile (e.g. Alt+F2 -> Konqueror). Konqueror opens and show "icon 
view" mode. Not ok, since the last open view was "Detailed list".

 This is OK in the context of KDE3 behaviour - you hadn't made any view mode *changes* to konqueror so konquerorrc view mode hadn't been updated. The profile sets how konqueror looks when launched, and konquerorrc sets a default fallback profile in which the last change had set view mode to 'Icon View'. Detailed list view is the *filemanagement* profile view mode.

I think it's correct as different profiles are being loaded, set to different view modes. This is unlikely to cause any confusion - users having set their profiles are unlikely to subsequently want to launch a 'default profile (e.g. Alt+F2 -> Konqueror)'.


I agree that all view modes would be better under one icon. However the third group - Photobook, File Size View, and File Replace View derive from tdegraphics, tdeaddons and tdeutils, so I would think there will need to be some comprehensive code changes for that.

As I've pointed out before, I'm not a programmer and writing code is beyond my capabilities. But if I can find a patch through 'prior art' which seems to resolve a bug, I feel I can make a contribution by proposing it. So I won't be doing any further work on this, simply because I don't have the knowledge to do so.

I'll be including this patch in my tdebase builds and look forward to the time when you and the other TDE developers implement the commit for your 'Point 1)'. I think changes for 'Point 2)' are unnecessary.
Comment 9 Michele Calgaro 2018-08-12 08:52:30 CDT
Hi Ray,
thanks for the work you have put into this and also for your opinion.
You are probably right, point 2) is not really very important and probably different users would have different preferences anyway.

So to wrap up all the comments, work on point 1) is required.
We will use your patch as starting point. Hopefully sooner or later we will find the time to look into this as well :-)