Article 6D7PR two finger touchpad navigation in browser

two finger touchpad navigation in browser

by
aacid
from LinuxQuestions.org on (#6D7PR)
Hi,
I have Thinkpad T460 and I installed OpenSUSE Tumbleweed on it. I really like the experience there is just one thing I really miss from windows and that is using two finger swipe left or right on the touchpad to move back/forward in browsing history.

I know it works in Firefox, but I'm so used to chrome based browsers (I use Brave currently) so Firefox wasn't for me.

I did a lot of research, I found out brave (and other chrome browsers) have feature called TouchpadOverscrollHistoryNavigation and I can run brave using Code:brave-browser --enable-features="TouchpadOverscrollHistoryNavigation"there is also similar flag in brave://flags (Overscroll history navigation) but I had no success with it.
but the --enable-features option works great.

Problem is I don't always want to start browser from terminal and with lengthy arguments.
my solution for terminal was to alias brave-browser to brave-browser with arguments.
to solve it in KDE I was able to edit brave desktop file in /usr/share/applications. this works pretty well, when I open brave from app menu or taskbar gestures work.

problem is that from time to time .desktop file gets updated/replaced (I guess during update) and my changes disappear.
my solution to this was to write a script that will grep the file to see if it contains that argument and if it doesn't it will add it using sed.
issue is I'm not sure when to run this script, I need to run it each time apps are updated.

I guess my real questions is this is the best I can do.
isn't it possible to enable this feature permanently in brave?
Is there better way to modify startup of desktop apps that won't get replaced each update?
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments