Bug 454725 - R files are not longer linked to RKWard after update to 0.7.4
Summary: R files are not longer linked to RKWard after update to 0.7.4
Status: RESOLVED NOT A BUG
Alias: None
Product: rkward
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR major
Target Milestone: ---
Assignee: RKWard Team
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-06-02 07:13 UTC by Jan
Modified: 2022-06-03 10:02 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan 2022-06-02 07:13:20 UTC
SUMMARY
Double clicking R file does not open RKWard.

STEPS TO REPRODUCE
- older version of RKWard installed
- R files linked to open with RKWard
- update to RKWard 0.7.4 (0.7.4-1.2rkward.stable~focal)
- double click R file

OBSERVED RESULT
Nothing happens.

EXPECTED RESULT
R file is opened in RKWard.

SOFTWARE/OS VERSIONS
R version 4.2.0 (2022-04-22)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 20.04.4 LTS

rkward_0.7.4
Comment 1 Thomas Friedrichsmeier 2022-06-02 21:11:18 UTC
I tried in a fresh VM with (L)Ubuntu 20.04, and installed RKWard 0.7.4 from this PPA: https://launchpad.net/~rkward-devel/+archive/ubuntu/rkward-stable-cran

I cannot reproduce this problem with that (and neither in my regular setup). It also seems odd that "nothing happens" when you click the file. If the association would simply be missing, the system should prompt you to select an application (or open the file in kate or similiar).

Please
1. Check your file assocations for text/r in your system settings.
2. Verify that you can open the file from the command line using 'rkward filename.R' .

I suspect a configuration problem causing the latter to fail. Therefore:

3. What's the result of 'which rkward'?
4. In your Application Launcher, find RKWard, right click on it, select "Edit Application". What path is shown for the desktop file?
Comment 2 Jan 2022-06-03 10:02:11 UTC
Thank you for your quick response.

> 1. Check your file assocations for text/r in your system settings.
This settings was not set. That was the problem. More about this below.

> 2. Verify that you can open the file from the command line using 'rkward filename.R' .
This is working.

> 3. What's the result of 'which rkward'?
/usr/bin/rkward

> 4. In your Application Launcher, find RKWard, right click on it, select "Edit Application". What path is shown for the desktop file?
I use Lubuntu with LXQT. Unfortunately, right click inside the application menu does not work. I havn't found a configuration file that contains the path.
But I can start RKWard from the application menu without any problems.

> It also seems odd that "nothing happens" when you click the file.
The command "xdg-open anyfile.R" at the terminal just showed the contents of the file. With "ps ax | grep anyfile.R" I saw, that anyfile.R had been opened with "less". This makes it clear that nothing happens when you double-click a R file.

Solution:
I've added to "/home/jan/.config/mimeapps.list", section "[Default Applications]": text/r=org.kde.rkward.desktop;
Then logout, login.
Double-click R file: RKWard opens.

I also tried it on two other systems, there the problem did not occur. Therefore I close the bug.