On a recent Leap 15.2 install, I seem not to be able to get KDE to remember file associations. More specifically, which application to run for the file. If I select a file in Konqueror, and then select an application in the dialog Konqueror provides, and click the box that says to remember this, when I click again on that same file, it once again asks which application to use. It never remembers the association. It does run the application after I select it. But never again unless I select the application again. When I say that the association should be remembered, I get the status window saying that something is being updated. There is no error. In the X log, I see this when the association is selected and being remembered: kbuildsycoca4 running... So if there is an error, it is not presented anywhere I see. Has anyone else seen this? -- Roger Oberholtzer
On 2021-02-17 09:08, Roger Oberholtzer wrote:
On a recent Leap 15.2 install, I seem not to be able to get KDE to remember file associations. More specifically, which application to run for the file.
If I select a file in Konqueror, and then select an application in the dialog Konqueror provides, and click the box that says to remember this, when I click again on that same file, it once again asks which application to use. It never remembers the association. It does run the application after I select it. But never again unless I select the application again.
When I say that the association should be remembered, I get the status window saying that something is being updated. There is no error. In the X log, I see this when the association is selected and being remembered:
kbuildsycoca4 running...
So if there is an error, it is not presented anywhere I see.
Has anyone else seen this?
No. But have you checked the files that it should change? I've got some a associations and they turn up in $HOME/.config/mimeapps.list and the associated desktop-file in /home/bengan/.local/share/applications/ -- /bengan
On Wed, Feb 17, 2021 at 9:41 AM Bengt Gördén <bengan@bag.org> wrote:
On 2021-02-17 09:08, Roger Oberholtzer wrote:
On a recent Leap 15.2 install, I seem not to be able to get KDE to remember file associations. More specifically, which application to run for the file.
If I select a file in Konqueror, and then select an application in the dialog Konqueror provides, and click the box that says to remember this, when I click again on that same file, it once again asks which application to use. It never remembers the association. It does run the application after I select it. But never again unless I select the application again.
When I say that the association should be remembered, I get the status window saying that something is being updated. There is no error. In the X log, I see this when the association is selected and being remembered:
kbuildsycoca4 running...
So if there is an error, it is not presented anywhere I see.
Has anyone else seen this?
No. But have you checked the files that it should change?
I've got some a associations and they turn up in
$HOME/.config/mimeapps.list
and the associated desktop-file in /home/bengan/.local/share/applications/
-- /bengan
On Tumbleweed (where it works), in $HOME/.config, I see this after the association: [Added Associations] application/x-wine-extension-set=remark.tcl.desktop; [Default Applications] application/x-wine-extension-set=remark.tcl.desktop; On 15.2 (where is does not work), I see this: [Added Associations] application/vnd.rst.rsoft-data-set=remark.tcl-5.desktop; inode/directory=konqbrowser.desktop; [Default Applications] application/vnd.rst.rsoft-data-set=remark.tcl-5.desktop; inode/directory=konqbrowser.desktop; The application I want to use is called remark.rcl. On both systems, the .desktop file looks reasonable: [Desktop Entry] Exec=/opt/rsoft/bin/remark.tcl MimeType=application/vnd.rst.rsoft-data-set; Name=remark.tcl NoDisplay=true Type=Application The thing is, on the 15.2 system, there are a number of desktop files for this: find .local/ -name remark*.desktop -ls 917964 4 -rw------- 1 rst users 142 Feb 15 15:26 .local/share/RecentDocuments/remark.tcl[2].desktop 917924 4 -rw------- 1 rst users 136 Feb 15 15:24 .local/share/RecentDocuments/remark.tcl.desktop 1441825 4 -rw------- 1 rst users 140 Feb 15 15:26 .local/share/applications/remark.tcl-5.desktop 1441821 4 -rw------- 1 rst users 140 Feb 15 14:35 .local/share/applications/remark.tcl.desktop 1441824 4 -rw------- 1 rst users 140 Feb 15 15:24 .local/share/applications/remark.tcl-4.desktop 1441822 4 -rw------- 1 rst users 140 Feb 15 14:40 .local/share/applications/remark.tcl-2.desktop 1441823 4 -rw------- 1 rst users 140 Feb 15 14:41 .local/share/applications/remark.tcl-3.desktop It's like it doesn't find the existing file, but when it writes it, it finds the old ones and uses a unique name. -- Roger Oberholtzer
I'm not sure what to try next. The system is up-to-date. So I would think that anyone else with the same should see the same thing. Could there be an issue with getting any packages from KDE Extras? Otherwise all is standard packages. On Wed, Feb 17, 2021 at 1:33 PM Roger Oberholtzer <roger.oberholtzer@gmail.com> wrote:
On Wed, Feb 17, 2021 at 9:41 AM Bengt Gördén <bengan@bag.org> wrote:
On 2021-02-17 09:08, Roger Oberholtzer wrote:
On a recent Leap 15.2 install, I seem not to be able to get KDE to remember file associations. More specifically, which application to run for the file.
If I select a file in Konqueror, and then select an application in the dialog Konqueror provides, and click the box that says to remember this, when I click again on that same file, it once again asks which application to use. It never remembers the association. It does run the application after I select it. But never again unless I select the application again.
When I say that the association should be remembered, I get the status window saying that something is being updated. There is no error. In the X log, I see this when the association is selected and being remembered:
kbuildsycoca4 running...
So if there is an error, it is not presented anywhere I see.
Has anyone else seen this?
No. But have you checked the files that it should change?
I've got some a associations and they turn up in
$HOME/.config/mimeapps.list
and the associated desktop-file in /home/bengan/.local/share/applications/
-- /bengan
On Tumbleweed (where it works), in $HOME/.config, I see this after the association:
[Added Associations] application/x-wine-extension-set=remark.tcl.desktop;
[Default Applications] application/x-wine-extension-set=remark.tcl.desktop;
On 15.2 (where is does not work), I see this:
[Added Associations] application/vnd.rst.rsoft-data-set=remark.tcl-5.desktop; inode/directory=konqbrowser.desktop;
[Default Applications] application/vnd.rst.rsoft-data-set=remark.tcl-5.desktop; inode/directory=konqbrowser.desktop;
The application I want to use is called remark.rcl.
On both systems, the .desktop file looks reasonable: [Desktop Entry] Exec=/opt/rsoft/bin/remark.tcl MimeType=application/vnd.rst.rsoft-data-set; Name=remark.tcl NoDisplay=true Type=Application
The thing is, on the 15.2 system, there are a number of desktop files for this:
find .local/ -name remark*.desktop -ls 917964 4 -rw------- 1 rst users 142 Feb 15 15:26 .local/share/RecentDocuments/remark.tcl[2].desktop 917924 4 -rw------- 1 rst users 136 Feb 15 15:24 .local/share/RecentDocuments/remark.tcl.desktop 1441825 4 -rw------- 1 rst users 140 Feb 15 15:26 .local/share/applications/remark.tcl-5.desktop 1441821 4 -rw------- 1 rst users 140 Feb 15 14:35 .local/share/applications/remark.tcl.desktop 1441824 4 -rw------- 1 rst users 140 Feb 15 15:24 .local/share/applications/remark.tcl-4.desktop 1441822 4 -rw------- 1 rst users 140 Feb 15 14:40 .local/share/applications/remark.tcl-2.desktop 1441823 4 -rw------- 1 rst users 140 Feb 15 14:41 .local/share/applications/remark.tcl-3.desktop
It's like it doesn't find the existing file, but when it writes it, it finds the old ones and uses a unique name.
-- Roger Oberholtzer
-- Roger Oberholtzer
On 2021-02-17 13:33, Roger Oberholtzer wrote:
On both systems, the .desktop file looks reasonable: [Desktop Entry] Exec=/opt/rsoft/bin/remark.tcl
Shouldn't it be something like Exec=/opt/rsoft/bin/remark.tcl %U My thought is that it should do something with the file it associates with. I also vaguely remember that some years ago it worked without %U but I had to switch to %U. How do start remark.tcl from command line? I'm thinking that remark.tcl needs a file as argument to operate on. Ex. remark.tcl myfile.tcl Also I'm no expert in tcl but I remember starting tcl-files with "wish" or "tclsh" depending on window or cli. -- /bengan
On Thu, Feb 18, 2021 at 1:32 PM Bengt Gördén <bengan@bag.org> wrote:
On 2021-02-17 13:33, Roger Oberholtzer wrote:
On both systems, the .desktop file looks reasonable: [Desktop Entry] Exec=/opt/rsoft/bin/remark.tcl
Shouldn't it be something like
Exec=/opt/rsoft/bin/remark.tcl %U
My thought is that it should do something with the file it associates with. I also vaguely remember that some years ago it worked without %U but I had to switch to %U.
How do start remark.tcl from command line? I'm thinking that remark.tcl needs a file as argument to operate on.
Ex. remark.tcl myfile.tcl
Exactly. But it seems that when KDE makes the association, it does not do this.
Also I'm no expert in tcl but I remember starting tcl-files with "wish" or "tclsh" depending on window or cli.
That part works fine. It has the proper shebang and all. This specific app has been working in this way in previous Leap releases, and is working correctly in Tumbleweed. It makes no matter what file and association I want to do. For example, jpeg files do not have an association on 15.2. Probably for the same basic reason. So if I make an association to, say, gwenview, it is also not kept. The problem is not limited to our own files and apps. -- Roger Oberholtzer
The issue has been solved. I had to run to run this once: update-mime-database /usr/share/mime After that, all works as expected. Why all my 15.2 installs start life requiring that I run this command is anyone's guess... On Thu, Feb 18, 2021 at 2:23 PM Roger Oberholtzer <roger.oberholtzer@gmail.com> wrote:
On Thu, Feb 18, 2021 at 1:32 PM Bengt Gördén <bengan@bag.org> wrote:
On 2021-02-17 13:33, Roger Oberholtzer wrote:
On both systems, the .desktop file looks reasonable: [Desktop Entry] Exec=/opt/rsoft/bin/remark.tcl
Shouldn't it be something like
Exec=/opt/rsoft/bin/remark.tcl %U
My thought is that it should do something with the file it associates with. I also vaguely remember that some years ago it worked without %U but I had to switch to %U.
How do start remark.tcl from command line? I'm thinking that remark.tcl needs a file as argument to operate on.
Ex. remark.tcl myfile.tcl
Exactly. But it seems that when KDE makes the association, it does not do this.
Also I'm no expert in tcl but I remember starting tcl-files with "wish" or "tclsh" depending on window or cli.
That part works fine. It has the proper shebang and all.
This specific app has been working in this way in previous Leap releases, and is working correctly in Tumbleweed.
It makes no matter what file and association I want to do. For example, jpeg files do not have an association on 15.2. Probably for the same basic reason. So if I make an association to, say, gwenview, it is also not kept. The problem is not limited to our own files and apps.
-- Roger Oberholtzer
-- Roger Oberholtzer
participants (2)
-
Bengt Gördén
-
Roger Oberholtzer