You are not logged in.

#1 2019-06-27 14:43:50

Strykar
Member
Registered: 2018-02-17
Posts: 61
Website

How to add "Search on Google" to gnome-terminal's right-click menu

I've tried converting the Debian gnome-terminal-data package, but that didn't work with arch's gnome-terminal.


https://i.stack.imgur.com/QZ1Qf.png

Mod Edit: Removed oversized image -- V1del

Last edited by V1del (2019-06-27 15:13:32)

Offline

#2 2019-06-27 15:32:54

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,373

Re: How to add "Search on Google" to gnome-terminal's right-click menu

Please don't post oversized images: https://wiki.archlinux.org/index.php/Co … s_and_code

A quick google search suggests you could try to apply this patch: https://gist.githubusercontent.com/tual … port.patch

See https://wiki.archlinux.org/index.php/Arch_Build_System and https://wiki.archlinux.org/index.php/Pa … ng_patches for information on how to do that.

Offline

#3 2019-06-28 21:59:41

Strykar
Member
Registered: 2018-02-17
Posts: 61
Website

Re: How to add "Search on Google" to gnome-terminal's right-click menu

Thanks, but that patch was likely for an older version of gnome-terminal and no longer applies cleanly.

[strykar@i-5 extra-x86_64]$ updpkgsums
==> Retrieving sources...
  -> Found add_google_search_support.patch
==> Generating checksums for source files...
[strykar@i-5 extra-x86_64]$ makepkg
==> Making package: gnome-terminal 3.32.2-1 (Sat 29 Jun 2019 03:24:04 AM IST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating gnome-terminal git repo...
Fetching origin
  -> Found add_google_search_support.patch
==> Validating source files with sha256sums...
    gnome-terminal ... Skipped
    add_google_search_support.patch ... Passed
==> Extracting sources...
  -> Creating working copy of gnome-terminal git repo...
Reset branch 'makepkg'
==> Starting prepare()...
patching file src/terminal-util.c
Hunk #1 succeeded at 111 with fuzz 1 (offset -14 lines).
patching file src/terminal-util.h
Hunk #1 succeeded at 39 with fuzz 1 (offset -7 lines).
patching file src/terminal-window.c
Hunk #1 FAILED at 1233.
Hunk #2 FAILED at 1345.
Hunk #3 FAILED at 1944.
3 out of 3 hunks FAILED -- saving rejects to file src/terminal-window.c.rej
can't find file to patch at input line 78
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/src/terminal.xml b/src/terminal.xml
|index 91329d3..21a08ac 100644
|--- a/src/terminal.xml
|+++ b/src/terminal.xml
--------------------------
File to patch: ^C
==> ERROR: Aborted by user! Exiting...

Thanks to your different keyword idea, I found - https://ypokhilko.linkpc.net/2018/12/05 … ntu-18-04/
Which does patch cleanly and works, tho the final Arch package is 1MB bigger!

Should I create an aur for this?

Last edited by Strykar (2019-06-30 07:09:32)

Offline

Board footer

Powered by FluxBB