After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 670929 - Add Unity Launcher Quicklist
Add Unity Launcher Quicklist
Status: RESOLVED FIXED
Product: epiphany
Classification: Core
Component: General
3.3.x
Other Linux
: Normal enhancement
: ---
Assigned To: Epiphany Maintainers
Epiphany Maintainers
Depends on:
Blocks:
 
 
Reported: 2012-02-28 02:39 UTC by maxolasersquad
Modified: 2017-04-10 15:37 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch to add feature (632 bytes, patch)
2012-02-28 02:39 UTC, maxolasersquad
none Details | Review
Patch to add feature. (638 bytes, patch)
2012-02-28 03:15 UTC, maxolasersquad
needs-work Details | Review
New patch with freedesktop.org spec and translatable. (625 bytes, patch)
2012-03-20 03:47 UTC, maxolasersquad
none Details | Review
Add explicit New Window action (997 bytes, patch)
2017-02-28 03:56 UTC, Jeremy Bicha
committed Details | Review
Screenshot of Web on GNOME after patch (81.39 KB, image/png)
2017-02-28 17:45 UTC, Jeremy Bicha
  Details

Description maxolasersquad 2012-02-28 02:39:03 UTC
Add action items for display in the Unity Launcher's Quicklist

https://wiki.ubuntu.com/Unity/LauncherAPI
Comment 1 maxolasersquad 2012-02-28 02:39:43 UTC
Created attachment 208540 [details] [review]
Patch to add feature
Comment 2 maxolasersquad 2012-02-28 03:15:57 UTC
Created attachment 208541 [details] [review]
Patch to add feature.

I made a mistake in my original patch.  This has the fix.
Comment 3 André Klapper 2012-02-28 10:03:54 UTC
Review of attachment 208541 [details] [review]:

The values for X-Ayatana-Desktop-Shortcuts need to actually match the function values. See https://wiki.ubuntu.com/Unity/LauncherAPI#Quicklists
Comment 4 André Klapper 2012-03-05 14:14:48 UTC
Also, https://wiki.ubuntu.com/Unity/LauncherAPI#Quicklists does not list "TargetEnvironment" but "OnlyShowIn".
Comment 5 André Klapper 2012-03-05 14:46:49 UTC
Name should probably be _Name (same for other identifiers) so its value is marked as translatable.
Comment 6 maxolasersquad 2012-03-20 03:47:43 UTC
Created attachment 210137 [details] [review]
New patch with freedesktop.org spec and translatable.
Comment 7 maxolasersquad 2012-03-20 03:47:53 UTC
Thanks André.  The specification changed from a Unity specific one, to one matching the freedesktop.org  That's why what I submitted was differenct from the documentation at the time you pulled it up.  I've got a new patch using the new specification and using _name for translations.
Comment 8 maxolasersquad 2012-03-20 04:26:27 UTC
Comment on attachment 210137 [details] [review]
New patch with freedesktop.org spec and translatable.

>=== modified file 'data/epiphany.desktop.in.in'
>--- data/epiphany.desktop.in.in	2012-01-25 16:55:38 +0000
>+++ data/epiphany.desktop.in.in	2012-02-25 16:04:55 +0000
>@@ -14,3 +14,15 @@
> X-GNOME-Bugzilla-Version=@VERSION@
> Categories=Network;GNOME;GTK;WebBrowser;
> MimeType=text/html;text/xml;application/xhtml+xml;x-scheme-handler/http;x-scheme-handler/https;
>+
>+Actions=Screen;Window
>+
>+[Desktop Action NewWindow]
>+_Name=Open a New Window
>+Exec=epiphany --new-window
>+OnlyShowIn=Unity
>+
>+[Desktop Action PrivateWindow]
>+_Name=Open a New Window in private mode
>+Exec=epiphany --private-instance
>+OnlyShowIn=Unity
Comment 9 Jeremy Bicha 2012-05-18 03:20:10 UTC
To be consistent with the freedesktop specs, please add a semicolon to the end of the Actions line and the OnlyShowIn lines.
Comment 10 Xan Lopez 2012-07-31 14:19:55 UTC
Comment on attachment 210137 [details] [review]
New patch with freedesktop.org spec and translatable.

Per previous comments this seems to need some work still.
Comment 11 Jeremy Bicha 2017-02-28 03:56:44 UTC
Created attachment 346880 [details] [review]
Add explicit New Window action

This is needed for Unity but works fine in GNOME.

This is the same string used by gedit and elsewhere.
Comment 12 Michael Catanzaro 2017-02-28 17:34:03 UTC
Review of attachment 346880 [details] [review]:

It's just ignored in GNOME? Can you show me a screenshot please?
Comment 13 Jeremy Bicha 2017-02-28 17:45:55 UTC
Created attachment 346922 [details]
Screenshot of Web on GNOME after patch

Did you want a screenshot of Unity or of GNOME? Before or after?

Here's a screenshot using Dash to Dock but it looks the same in the Activities Overview.

I think the .desktop Action has to be named new-window for there not to be a duplicate "New Window" in GNOME.
Comment 14 Jeremy Bicha 2017-02-28 17:59:54 UTC
This is what gedit and nautilus already do.

https://git.gnome.org/browse/nautilus/commit/?id=a44b4996fa
Comment 15 Michael Catanzaro 2017-02-28 18:08:14 UTC
Review of attachment 346880 [details] [review]:

OK, I like it better this way anyway, since it removes the ugly separator between New Window and New Incognito Window. I think it's not a string freeze break since we already have New Window in the app menu. Let me know if you need me to commit it.
Comment 16 Jeremy Bicha 2017-02-28 18:21:06 UTC
Attachment 346880 [details] pushed as 942502e - Add explicit New Window action
Comment 17 Jeremy Bicha 2017-02-28 18:22:00 UTC
I should email the translators list to let them know, right?
Comment 18 Michael Catanzaro 2017-02-28 19:25:04 UTC
I don't think so, because we already have a "New Window" string; we shouldn't need any translation updates for this. If it was required, I would have asked to hold this until 3.26, since we are under string freeze and this doesn't seem worth a string freeze break.
Comment 19 Piotr Drąg 2017-02-28 20:18:26 UTC
There was no “New Window” string. You must be thinking about “_New Window”, which is a completely different string. :)
Comment 20 Michael Catanzaro 2017-02-28 21:51:31 UTC
Ugh, sorry. :( The app menu entries all have totally unnecessary underscores. Bummer.

Jeremy, I'm going to back this out to avoid adding the new string this late in the game. Feel free to add it as a downstream patch for now. I'll commit it next cycle. I'll also remove the useless underscores from the app menu strings at that time. They don't belong because accelerators are specified manually in the UI file, not by using underscores.
Comment 21 Jeremy Bicha 2017-02-28 22:03:06 UTC
Michael, no problem. I already distro-patched it for Ubuntu 17.04 which is sufficient for the Unity test case.
Comment 22 Michael Catanzaro 2017-04-10 15:37:46 UTC
Attachment 346880 [details] pushed as 681e320 - Add explicit New Window action