Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 582470 - kde-apps/okular-15.08.3-r1 does not have "trim margins" in the menu
Summary: kde-apps/okular-15.08.3-r1 does not have "trim margins" in the menu
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-08 18:27 UTC by Pastafarianist
Modified: 2016-08-20 18:01 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
screenshot (2016-05-12-02_00_43_TheElementsofStatisticalLearning-DataMining,Inference,andPrediction.pdf–Okular_001.png,195.96 KB, image/png)
2016-05-11 23:02 UTC, Pastafarianist
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pastafarianist 2016-05-08 18:27:29 UTC
I realize that this is unlikely to be a Gentoo-specific problem, but regardless I'd like to know where to start looking for a solution.

On Kubuntu, Okular 0.24.2 has a feature called "Trim margins" in the "View" menu. In my installation of Gentoo, there is simply no such entry in the same menu in Okular 15.08.3-r1.

For the reference, I have poppler-0.32.0 on Gentoo and poppler 0.41.0-0ubuntu1 on Kubuntu, but I've been told that this feature is present with poppler 0.24.5-2ubuntu4.3.
Comment 1 Michael Palimaka (kensington) gentoo-dev 2016-05-11 19:41:39 UTC
I see "View" -> "Trim View" -> "Trim Margins" - is that the option?
Comment 2 Pastafarianist 2016-05-11 23:02:40 UTC
Created attachment 434014 [details]
screenshot

I don't have that one. See the screenshot.
Comment 3 Michael Palimaka (kensington) gentoo-dev 2016-05-12 09:08:36 UTC
I wasn't able to find anything in the okular code that might make it conditional.

Could you please try with English selected in case it's an issue with our translation handling, and failing that with a new user?
Comment 4 Pastafarianist 2016-05-13 10:19:54 UTC
- Switching to English didn't work;
- Creating a new user and running Okular from there DID work.

By trial and error, I established that the culprit is the file at ~/.kde4/share/apps/okular/part.rc. It contained the line

<Action name="view_trim_mode"/>

Changing it to

<Action name="view_trim_margins"/>

solved the problem.

I wonder how it could contain a wrong menu item identifier in the first place.
Comment 5 Andreas Sturmlechner gentoo-dev 2016-07-23 21:30:55 UTC
Since it worked with a new user, your change should be wrong, actually. Because that's how the part.rc file would look like there.

Did you run a diff between your old and your new user's part.rc?