Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 849575 - www-client/surf - add link into Application menu
Summary: www-client/surf - add link into Application menu
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Petr Vaněk
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2022-06-03 23:28 UTC by Bogdan
Modified: 2022-06-09 07:38 UTC (History)
1 user (show)

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


Attachments
surf.desktop (surf.desktop,168 bytes, application/x-desktop)
2022-06-03 23:28 UTC, Bogdan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bogdan 2022-06-03 23:28:04 UTC
Created attachment 782618 [details]
surf.desktop

Please, add file, which create item for www-client/surf in Application menu.

File attached (surf.desktop).

This file must be installed into /usr/share/applications directory from surf ebuild.


Alternatively, ebuild may be modified without this file.
Something like this (as in netsurf-gtk3-netsurf.desktop file):

  inherit desktop
  src_install() {
    make_desktop_entry \              # Command to create new desktop file
      "${EPREFIX}/usr/bin/surf %u" \  # 'Exec' value of 'surf.desktop' file
      Surf \                          # 'Name' value
      "" \                            # 'Icon' value
      "Network;WebBrowser"            # 'Categories' value
  }
Comment 1 Larry the Git Cow gentoo-dev 2022-06-09 07:38:01 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6dc892886363fad983c305e2ccc1bd84d55ce62a

commit 6dc892886363fad983c305e2ccc1bd84d55ce62a
Author:     Petr Vaněk <arkamar@atlas.cz>
AuthorDate: 2022-06-08 07:01:26 +0000
Commit:     Florian Schmaus <flow@gentoo.org>
CommitDate: 2022-06-09 07:37:55 +0000

    www-client/surf: add xdg desktop entry
    
    This commit basically copies changes from live ebuild introduced in
    commit f57556a029ef ("www-client/surf: add xdg desktop entry"), however
    double quotes around newicon creation are changed to my liking and
    Desktop Entry Exec key is extended with %u (a single url) argument as it
    was suggested in [1].
    
    [1] https://bugs.gentoo.org/849575#c0
    
    Closes: https://bugs.gentoo.org/849575
    Signed-off-by: Petr Vaněk <arkamar@atlas.cz>
    Signed-off-by: Florian Schmaus <flow@gentoo.org>

 .../surf/{surf-2.1.ebuild => surf-2.1-r1.ebuild}   | 28 +++++++++++++++++++---
 1 file changed, 25 insertions(+), 3 deletions(-)