unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#23094: icecat is missing a desktop file
@ 2016-03-22 19:20 Danny Milosavljevic
  2016-03-23 17:38 ` Leo Famulari
  2016-04-10 10:04 ` bug#23094: [PATCH] " Danny Milosavljevic
  0 siblings, 2 replies; 9+ messages in thread
From: Danny Milosavljevic @ 2016-03-22 19:20 UTC (permalink / raw)
  To: 23094

icecat is missing a desktop file and thus it doesn't show up in any application menus. Comparison with hexchat (which does have it) below:

$ find /gnu/store/vwbw8070vy7ikaxbgs6pmi0isw3yzxvm-icecat-38.6.0-gnu1 -name "*.desktop"
$ find /gnu/store/vz1cs171wyj9bq48r4kz8s56hpk6gayy-hexchat-2.10.1 -name "hexchat.desktop"
/gnu/store/vz1cs171wyj9bq48r4kz8s56hpk6gayy-hexchat-2.10.1/share/applications/hexchat.desktop
$ cat /gnu/store/vz1cs171wyj9bq48r4kz8s56hpk6gayy-hexchat-2.10.1/share/applications/hexchat.desktop

[Desktop Entry]
Name=HexChat
Name[de]=HexChat
Name[en_GB]=HexChat
Name[es]=HexChat
Name[fr]=HexChat
Name[it]=HexChat
Name[ja_JP]=HexChat
Name[ko]=헥스채트
Name[pl]=HexChat
Name[sq]=HexChat
Name[zh_CN]=HexChat
GenericName=IRC Client
GenericName[de]=IRC-Client
GenericName[en_GB]=IRC Client
GenericName[es]=Cliente de IRC
GenericName[fi]=IRC Client
GenericName[fr]=Client IRC
GenericName[it]=Client IRC
GenericName[ja_JP]=IRCクライアント
GenericName[ko]=IRC 클라이언트
GenericName[pl]=Klient IRC
GenericName[sq]=Klient IRC
GenericName[zh_CN]=IRC 客户端
Comment=Chat with other people online
Comment[de]=Chatte online mit anderen Leuten
Comment[en_GB]=Chat with other people online
Comment[es]=Chatea con otras personas en línea
Comment[fr]=Parlez avec d'autres personnes en ligne
Comment[it]=Chiacchiera con altri utenti online
Comment[ja_JP]=他の人とオンラインチャットをします
Comment[ko]=온라인에 있는 사람들과 대화합니다
Comment[pl]=Rozmawiaj z innymi ludźmi przez internet
Comment[sq]=Bisedoni në linjë me persona të tjerë
Comment[zh_CN]=与其他人在线聊天
Keywords=IM;Chat;
Keywords[de]=IM;Chat;
Keywords[en_GB]=IM;Chat;
Keywords[es]=IM;Chat;
Keywords[fr]=IM;Chat;
Keywords[it]=IM;Chat;Messaggistica Istantanea;IRC;
Keywords[ko]=IM;인스턴트 메신저;Chat;대화;
Keywords[pl]=IM;Chat;
Keywords[sq]=IM;Fjalosje;
Keywords[zh_CN]=IM;聊天;
Exec=hexchat %U
Icon=hexchat
Terminal=false
Type=Application
Categories=GTK;Network;IRCClient;
StartupNotify=true
X-GNOME-UsesNotifications=true
MimeType=x-scheme-handler/irc;x-scheme-handler/ircs;
Actions=SafeMode;

[Desktop Action SafeMode]
Name=Open Safe Mode
Name[de]=Im sicheren Modus öffnen
Name[en_GB]=Open Safe Mode
Name[es]=Abrir en modo seguro
Name[fr]=Ouvrir le mode sans échec
Name[it]=Apri modalità sicura
Name[ja_JP]=セーフモードで開く
Name[ko]=공개 안전 모드
Name[pl]=Otwórz tryb bezpieczny
Name[sq]=Hap Mënyrën e Sigurt
Name[zh_CN]=打开安全模式
Exec=hexchat --no-auto --no-plugins

^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#23094: icecat is missing a desktop file
  2016-03-22 19:20 bug#23094: icecat is missing a desktop file Danny Milosavljevic
@ 2016-03-23 17:38 ` Leo Famulari
  2016-04-10 10:04 ` bug#23094: [PATCH] " Danny Milosavljevic
  1 sibling, 0 replies; 9+ messages in thread
From: Leo Famulari @ 2016-03-23 17:38 UTC (permalink / raw)
  To: Danny Milosavljevic; +Cc: 23094

On Tue, Mar 22, 2016 at 08:20:04PM +0100, Danny Milosavljevic wrote:
> icecat is missing a desktop file and thus it doesn't show up in any application menus. Comparison with hexchat (which does have it) below:

As with transmission-gtk, can you try to fix this and send a patch to
guix-devel@gnu.org?

> 
> $ find /gnu/store/vwbw8070vy7ikaxbgs6pmi0isw3yzxvm-icecat-38.6.0-gnu1 -name "*.desktop"
> $ find /gnu/store/vz1cs171wyj9bq48r4kz8s56hpk6gayy-hexchat-2.10.1 -name "hexchat.desktop"
> /gnu/store/vz1cs171wyj9bq48r4kz8s56hpk6gayy-hexchat-2.10.1/share/applications/hexchat.desktop
> $ cat /gnu/store/vz1cs171wyj9bq48r4kz8s56hpk6gayy-hexchat-2.10.1/share/applications/hexchat.desktop
> 
> [Desktop Entry]
> Name=HexChat
> Name[de]=HexChat
> Name[en_GB]=HexChat
> Name[es]=HexChat
> Name[fr]=HexChat
> Name[it]=HexChat
> Name[ja_JP]=HexChat
> Name[ko]=헥스채트
> Name[pl]=HexChat
> Name[sq]=HexChat
> Name[zh_CN]=HexChat
> GenericName=IRC Client
> GenericName[de]=IRC-Client
> GenericName[en_GB]=IRC Client
> GenericName[es]=Cliente de IRC
> GenericName[fi]=IRC Client
> GenericName[fr]=Client IRC
> GenericName[it]=Client IRC
> GenericName[ja_JP]=IRCクライアント
> GenericName[ko]=IRC 클라이언트
> GenericName[pl]=Klient IRC
> GenericName[sq]=Klient IRC
> GenericName[zh_CN]=IRC 客户端
> Comment=Chat with other people online
> Comment[de]=Chatte online mit anderen Leuten
> Comment[en_GB]=Chat with other people online
> Comment[es]=Chatea con otras personas en línea
> Comment[fr]=Parlez avec d'autres personnes en ligne
> Comment[it]=Chiacchiera con altri utenti online
> Comment[ja_JP]=他の人とオンラインチャットをします
> Comment[ko]=온라인에 있는 사람들과 대화합니다
> Comment[pl]=Rozmawiaj z innymi ludźmi przez internet
> Comment[sq]=Bisedoni në linjë me persona të tjerë
> Comment[zh_CN]=与其他人在线聊天
> Keywords=IM;Chat;
> Keywords[de]=IM;Chat;
> Keywords[en_GB]=IM;Chat;
> Keywords[es]=IM;Chat;
> Keywords[fr]=IM;Chat;
> Keywords[it]=IM;Chat;Messaggistica Istantanea;IRC;
> Keywords[ko]=IM;인스턴트 메신저;Chat;대화;
> Keywords[pl]=IM;Chat;
> Keywords[sq]=IM;Fjalosje;
> Keywords[zh_CN]=IM;聊天;
> Exec=hexchat %U
> Icon=hexchat
> Terminal=false
> Type=Application
> Categories=GTK;Network;IRCClient;
> StartupNotify=true
> X-GNOME-UsesNotifications=true
> MimeType=x-scheme-handler/irc;x-scheme-handler/ircs;
> Actions=SafeMode;
> 
> [Desktop Action SafeMode]
> Name=Open Safe Mode
> Name[de]=Im sicheren Modus öffnen
> Name[en_GB]=Open Safe Mode
> Name[es]=Abrir en modo seguro
> Name[fr]=Ouvrir le mode sans échec
> Name[it]=Apri modalità sicura
> Name[ja_JP]=セーフモードで開く
> Name[ko]=공개 안전 모드
> Name[pl]=Otwórz tryb bezpieczny
> Name[sq]=Hap Mënyrën e Sigurt
> Name[zh_CN]=打开安全模式
> Exec=hexchat --no-auto --no-plugins
> 
> 
> 

^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#23094: [PATCH] Re: bug#23094: icecat is missing a desktop file
  2016-03-22 19:20 bug#23094: icecat is missing a desktop file Danny Milosavljevic
  2016-03-23 17:38 ` Leo Famulari
@ 2016-04-10 10:04 ` Danny Milosavljevic
  2016-04-16 18:15   ` bug#23094: [PATCHv2] " Danny Milosavljevic
  1 sibling, 1 reply; 9+ messages in thread
From: Danny Milosavljevic @ 2016-04-10 10:04 UTC (permalink / raw)
  To: 23094

Here's a patch which adds a desktop file to icecat:

Note that there's still a maintenance problem with the icon - version "38.6.0" is currently hard-coded, so if icecat updates, it won't be able to find its icon. What is the usual way to fix this?

diff --git a/gnu/packages/gnuzilla.scm b/gnu/packages/gnuzilla.scm
index b4892d7..2c38458 100644
--- a/gnu/packages/gnuzilla.scm
+++ b/gnu/packages/gnuzilla.scm
@@ -519,7 +519,40 @@ standards.")
               (format #t "configure flags: ~s~%" flags)
               (zero? (apply system* bash
                             (string-append srcdir "/configure")
-                            flags))))))))
+                            flags)))))
+         (add-after
+          'install
+          'install-desktop-entry
+          (lambda* (#:key outputs #:allow-other-keys)
+            (let ((applications (string-append (assoc-ref outputs "out") "/share/applications")))
+              (mkdir-p applications)
+              (call-with-output-file (string-append applications "/icecat.desktop")
+                (lambda (port)
+                  (format port "~
+[Desktop Entry]~@
+Version=1.0~@
+Name=GNU IceCat~@
+GenericName=Web Browser~@
+Comment=Browse the World Wide Web~@
+Keywords=Internet;WWW;Browser;Web~@
+Exec=~a/bin/icecat %u~@
+Terminal=false~@
+X-MultipleArgs=false~@
+Type=Application~@
+Icon=~a/lib/icecat-38.6.0/browser/icons/mozicon128.png~@
+Categories=GNOME;GTK;Network;WebBrowser;~@
+MimeType=text/html;text/xml;application/xhtml+xml;application/xml;application/rss+xml;application/rdf+xml;image/gif;image/jpeg;image/png;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/ftp;x-scheme-handler/chrome;video/webm;application/x-xpinstall;~@
+StartupNotify=true~@
+Actions=NewWindow;NewPrivateWindow~@
+~@
+[Desktop Action NewWindow]~@
+Name=Open a New Window~@
+Exec=~a/bin/icecat --new-window~@
+~@
+[Desktop Action NewPrivateWindow]~@
+Name=Open a New Private Window~@
+Exec=~a/bin/icecat -private-window~@
+" (assoc-ref outputs "out") (assoc-ref outputs "out") (assoc-ref outputs "out") (assoc-ref outputs "out")))))))))) ; FIXME version
     (home-page "http://www.gnu.org/software/gnuzilla/")
     (synopsis "Entirely free browser derived from Mozilla Firefox")
     (description

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* bug#23094: [PATCHv2] Re: bug#23094: icecat is missing a desktop file
  2016-04-10 10:04 ` bug#23094: [PATCH] " Danny Milosavljevic
@ 2016-04-16 18:15   ` Danny Milosavljevic
  2016-05-28 15:22     ` Ludovic Courtès
  0 siblings, 1 reply; 9+ messages in thread
From: Danny Milosavljevic @ 2016-04-16 18:15 UTC (permalink / raw)
  To: 23094

Any news on this? I just got a merge conflict so I was reminded of it again...

The current version of the patch that I'm successfully using is below - although I still can't get the version number into the installation lambda.

diff --git a/gnu/packages/gnuzilla.scm b/gnu/packages/gnuzilla.scm
index 1ae97b2..96d32a1 100644
--- a/gnu/packages/gnuzilla.scm
+++ b/gnu/packages/gnuzilla.scm
@@ -501,7 +501,46 @@ standards.")
               (format #t "configure flags: ~s~%" flags)
               (zero? (apply system* bash
                             (string-append srcdir "/configure")
-                            flags))))))))
+                            flags)))))
+         (add-after
+          'install
+          'install-desktop-entry
+          (lambda* (#:key outputs #:allow-other-keys)
+            (let* ((out (assoc-ref outputs "out"))
+                   (applications (string-append out "/share/applications")))
+              (mkdir-p applications)
+              (call-with-output-file (string-append applications "/icecat.desktop")
+                (lambda (port)
+                  (format port "~
+[Desktop Entry]~@
+Version=1.0~@
+Name=GNU IceCat~@
+GenericName=Web Browser~@
+Comment=Browse the World Wide Web~@
+Keywords=Internet;WWW;Browser;Web~@
+Exec=~a/bin/icecat %u~@
+Terminal=false~@
+X-MultipleArgs=false~@
+Type=Application~@
+Icon=~a/lib/icecat-~a/browser/icons/mozicon128.png~@
+Categories=GNOME;GTK;Network;WebBrowser;~@
+MimeType=text/html;text/xml;application/xhtml+xml;application/xml;application/rss+xml;application/rdf+xml;image/gif;image/jpeg;image/png;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/ftp;x-scheme-handler/chrome;video/webm;application/x-xpinstall;~@
+StartupNotify=true~@
+Actions=NewWindow;NewPrivateWindow~@
+~@
+[Desktop Action NewWindow]~@
+Name=Open a New Window~@
+Exec=~a/bin/icecat --new-window~@
+~@
+[Desktop Action NewPrivateWindow]~@
+Name=Open a New Private Window~@
+Exec=~a/bin/icecat -private-window~@
+"
+                          out
+                          out
+                          (string-drop-right "38.7.1-gnu1" (string-length "-gnu1")) ; FIXME do not hardcode
+                          out
+                          out)))))))))
     (home-page "http://www.gnu.org/software/gnuzilla/")
     (synopsis "Entirely free browser derived from Mozilla Firefox")
     (description

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* bug#23094: [PATCHv2] Re: bug#23094: icecat is missing a desktop file
  2016-04-16 18:15   ` bug#23094: [PATCHv2] " Danny Milosavljevic
@ 2016-05-28 15:22     ` Ludovic Courtès
  2016-05-30 21:02       ` Danny Milosavljevic
  0 siblings, 1 reply; 9+ messages in thread
From: Ludovic Courtès @ 2016-05-28 15:22 UTC (permalink / raw)
  To: Danny Milosavljevic; +Cc: 23094

[-- Attachment #1: Type: text/plain, Size: 150 bytes --]

Hi!

I figured there’s already a desktop entry template in the source, and
it’s more complete (it includes translations), hence this patch:


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 1367 bytes --]

diff --git a/gnu/packages/gnuzilla.scm b/gnu/packages/gnuzilla.scm
index 7e52534..2baf4d7 100644
--- a/gnu/packages/gnuzilla.scm
+++ b/gnu/packages/gnuzilla.scm
@@ -509,7 +509,23 @@ standards.")
               (format #t "configure flags: ~s~%" flags)
               (zero? (apply system* bash
                             (string-append srcdir "/configure")
-                            flags))))))))
+                            flags)))))
+         (add-after 'install 'install-desktop-entry
+           (lambda* (#:key outputs #:allow-other-keys)
+             (let* ((out (assoc-ref outputs "out"))
+                    (applications (string-append out "/share/applications")))
+               (mkdir-p applications)
+               (copy-file "debian/icecat.desktop.in"
+                          "debian/icecat.desktop")
+               (substitute* "debian/icecat.desktop"
+                 (("@MOZ_DISPLAY_NAME@")
+                  "GNU IceCat")
+                 (("^Exec=@MOZ_APP_NAME@")
+                  (string-append "Exec=" out "/bin/icecat"))
+                 (("@MOZ_APP_NAME@")
+                  "icecat"))
+               (install-file "debian/icecat.desktop" applications)
+               #t))))))
     (home-page "http://www.gnu.org/software/gnuzilla/")
     (synopsis "Entirely free browser derived from Mozilla Firefox")
     (description

[-- Attachment #3: Type: text/plain, Size: 87 bytes --]


I haven’t been able to test it, so your feedback is welcome!

Thanks,
Ludo’.

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* bug#23094: [PATCHv2] Re: bug#23094: icecat is missing a desktop file
  2016-05-28 15:22     ` Ludovic Courtès
@ 2016-05-30 21:02       ` Danny Milosavljevic
  2016-05-31 13:47         ` Ludovic Courtès
  0 siblings, 1 reply; 9+ messages in thread
From: Danny Milosavljevic @ 2016-05-30 21:02 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 23094

Hi Ludo,

On Sat, 28 May 2016 17:22:41 +0200
ludo@gnu.org (Ludovic Courtès) wrote:

> I figured there’s already a desktop entry template in the source, and
> it’s more complete (it includes translations), hence this patch:

I tried your patch and I get:

make[1]: Leaving directory '/tmp/guix-build-icecat-38.8.0-gnu1.drv-0/build/browser/installer'
phase `install' succeeded after 51.4 seconds
starting phase `install-desktop-entry'
Backtrace:
In ice-9/boot-9.scm:
 157: 13 [catch #t #<catch-closure 8c9580> ...]
In unknown file:
   ?: 12 [apply-smob/1 #<catch-closure 8c9580>]
In ice-9/boot-9.scm:
  63: 11 [call-with-prompt prompt0 ...]
In ice-9/eval.scm:
 432: 10 [eval # #]
In ice-9/boot-9.scm:
2401: 9 [save-module-excursion #<procedure 8e6880 at ice-9/boot-9.scm:4045:3 ()>]
4050: 8 [#<procedure 8e6880 at ice-9/boot-9.scm:4045:3 ()>]
1724: 7 [%start-stack load-stack #<procedure 8f97c0 at ice-9/boot-9.scm:4041:10 ()>]
1729: 6 [#<procedure 8fcc60 ()>]
In unknown file:
   ?: 5 [primitive-load "/gnu/store/x6a3mbrpqdjqmw7jaj30hvicind0ysas-icecat-38.8.0-gnu1-guile-builder"]
In ice-9/eval.scm:
 387: 4 [eval # ()]
In srfi/srfi-1.scm:
 830: 3 [every1 #<procedure fc5920 at /gnu/store/vs75q74qsfr3h45vkbr559p5w6fn4mw2-module-import/guix/build/gnu-build-system.scm:589:9 (expr)> ...]
In /gnu/store/vs75q74qsfr3h45vkbr559p5w6fn4mw2-module-import/guix/build/gnu-build-system.scm:
 593: 2 [#<procedure fc5920 at /gnu/store/vs75q74qsfr3h45vkbr559p5w6fn4mw2-module-import/guix/build/gnu-build-system.scm:589:9 (expr)> #]
In ice-9/eval.scm:
 432: 1 [eval # #]
In unknown file:
   ?: 0 [copy-file "debian/icecat.desktop.in" "debian/icecat.desktop"]

ERROR: In procedure copy-file:
ERROR: In procedure copy-file: No such file or directory
builder for `/gnu/store/dkg2y9dn89knaxvn8vd10si4nvdp5glh-icecat-38.8.0-gnu1.drv' failed with exit code 1

^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#23094: [PATCHv2] Re: bug#23094: icecat is missing a desktop file
  2016-05-30 21:02       ` Danny Milosavljevic
@ 2016-05-31 13:47         ` Ludovic Courtès
  2016-06-01 22:45           ` Danny Milosavljevic
  0 siblings, 1 reply; 9+ messages in thread
From: Ludovic Courtès @ 2016-05-31 13:47 UTC (permalink / raw)
  To: Danny Milosavljevic; +Cc: 23094

[-- Attachment #1: Type: text/plain, Size: 583 bytes --]

Danny Milosavljevic <dannym@scratchpost.org> skribis:

> On Sat, 28 May 2016 17:22:41 +0200
> ludo@gnu.org (Ludovic Courtès) wrote:
>
>> I figured there’s already a desktop entry template in the source, and
>> it’s more complete (it includes translations), hence this patch:
>
> I tried your patch and I get:

Oops, my bad.

I tested the attached one.  It works as expected, but there remain
“%%ifdef” things in it (see attached file), and I’m guessing GNOME &
co. will barf upon them, though I don’t know how to test.

Thoughts?

Thanks,
Ludo’.


[-- Attachment #2: icecat.desktop --]
[-- Type: application/octet-stream, Size: 10783 bytes --]

[Desktop Entry]
Version=1.0
%%ifdef MOZ_OFFICIAL_BRANDING
Name=IceCat Web Browser
Name[ar]=متصفح الويب فَيَرفُكْس
Name[ast]=Restolador web IceCat
Name[bn]=ফায়ারফক্স ওয়েব ব্রাউজার
Name[ca]=Navegador web IceCat
Name[cs]=IceCat Webový prohlížeč
Name[da]=IceCat - internetbrowser
Name[el]=Περιηγητής IceCat
Name[es]=Navegador web IceCat
Name[et]=IceCati veebibrauser
Name[fa]=مرورگر اینترنتی IceCat
Name[fi]=IceCat-selain
Name[fr]=Navigateur Web IceCat
Name[gl]=Navegador web IceCat
Name[he]=דפדפן האינטרנט IceCat
Name[hr]=IceCat web preglednik
Name[hu]=IceCat webböngésző
Name[it]=IceCat Browser Web
Name[ja]=IceCat ウェブ・ブラウザ
Name[ko]=IceCat 웹 브라우저
Name[ku]=Geroka torê IceCat
Name[lt]=IceCat interneto naršyklė
Name[nb]=IceCat Nettleser
Name[nl]=IceCat webbrowser
Name[nn]=IceCat Nettlesar
Name[no]=IceCat Nettleser
Name[pl]=Przeglądarka WWW IceCat
Name[pt]=IceCat Navegador Web
Name[pt_BR]=Navegador Web IceCat
Name[ro]=IceCat – Navigator Internet
Name[ru]=Веб-браузер IceCat
Name[sk]=IceCat - internetový prehliadač
Name[sl]=IceCat spletni brskalnik
Name[sv]=IceCat webbläsare
Name[tr]=IceCat Web Tarayıcısı
Name[ug]=IceCat توركۆرگۈ
Name[uk]=Веб-браузер IceCat
Name[vi]=Trình duyệt web IceCat
Name[zh_CN]=IceCat 网络浏览器
Name[zh_TW]=IceCat 網路瀏覽器
%%else
Name=GNU IceCat Web Browser
Name[ast]=Restolador web GNU IceCat
Name[ca]=Navegador web GNU IceCat
Name[cs]=GNU IceCat Webový prohlížeč
Name[da]=GNU IceCat - internetbrowser
Name[el]=Περιηγητής GNU IceCat
Name[es]=Navegador web GNU IceCat
Name[et]=GNU IceCati veebibrauser
Name[fa]=مرورگر اینترنتی GNU IceCat
Name[fi]=GNU IceCat-selain
Name[fr]=Navigateur Web GNU IceCat
Name[gl]=Navegador web GNU IceCat
Name[he]=דפדפן האינטרנט GNU IceCat
Name[hr]=GNU IceCat web preglednik
Name[hu]=GNU IceCat webböngésző
Name[it]=GNU IceCat Browser Web
Name[ja]=GNU IceCat ウェブ・ブラウザ
Name[ko]=GNU IceCat 웹 브라우저
Name[ku]=Geroka torê GNU IceCat
Name[lt]=GNU IceCat interneto naršyklė
Name[nb]=GNU IceCat Nettleser
Name[nl]=GNU IceCat webbrowser
Name[nn]=GNU IceCat Nettlesar
Name[no]=GNU IceCat Nettleser
Name[pl]=Przeglądarka WWW GNU IceCat
Name[pt]=GNU IceCat Navegador Web
Name[pt_BR]=Navegador Web GNU IceCat
Name[ro]=GNU IceCat – Navigator Internet
Name[ru]=Веб-браузер GNU IceCat
Name[sk]=GNU IceCat - internetový prehliadač
Name[sl]=GNU IceCat spletni brskalnik
Name[sv]=GNU IceCat webbläsare
Name[tr]=GNU IceCat Web Tarayıcısı
Name[ug]=GNU IceCat توركۆرگۈ
Name[uk]=Веб-браузер GNU IceCat
Name[vi]=Trình duyệt web GNU IceCat
Name[zh_CN]=GNU IceCat 网络浏览器
Name[zh_TW]=GNU IceCat 網路瀏覽器
%%endif
Comment=Browse the World Wide Web
Comment[ar]=تصفح الشبكة العنكبوتية العالمية
Comment[ast]=Restola pela Rede
Comment[bn]=ইন্টারনেট ব্রাউজ করুন
Comment[ca]=Navegueu per la web
Comment[cs]=Prohlížení stránek World Wide Webu
Comment[da]=Surf på internettet
Comment[de]=Im Internet surfen
Comment[el]=Μπορείτε να περιηγηθείτε στο διαδίκτυο (Web)
Comment[es]=Navegue por la web
Comment[et]=Lehitse veebi
Comment[fa]=صفحات شبکه جهانی اینترنت را مرور نمایید
Comment[fi]=Selaa Internetin WWW-sivuja
Comment[fr]=Naviguer sur le Web
Comment[gl]=Navegar pola rede
Comment[he]=גלישה ברחבי האינטרנט
Comment[hr]=Pretražite web
Comment[hu]=A világháló böngészése
Comment[it]=Esplora il web
Comment[ja]=ウェブを閲覧します
Comment[ko]=웹을 돌아 다닙니다
Comment[ku]=Li torê bigere
Comment[lt]=Naršykite internete
Comment[nb]=Surf på nettet
Comment[nl]=Verken het internet
Comment[nn]=Surf på nettet
Comment[no]=Surf på nettet
Comment[pl]=Przeglądanie stron WWW 
Comment[pt]=Navegue na Internet
Comment[pt_BR]=Navegue na Internet
Comment[ro]=Navigați pe Internet
Comment[ru]=Доступ в Интернет
Comment[sk]=Prehliadanie internetu
Comment[sl]=Brskajte po spletu
Comment[sv]=Surfa på webben
Comment[tr]=İnternet'te Gezinin
Comment[ug]=دۇنيادىكى توربەتلەرنى كۆرگىلى بولىدۇ
Comment[uk]=Перегляд сторінок Інтернету
Comment[vi]=Để duyệt các trang web
Comment[zh_CN]=浏览互联网
Comment[zh_TW]=瀏覽網際網路
GenericName=Web Browser
GenericName[ar]=متصفح ويب
GenericName[ast]=Restolador Web
GenericName[bn]=ওয়েব ব্রাউজার
GenericName[ca]=Navegador web
GenericName[cs]=Webový prohlížeč
GenericName[da]=Webbrowser
GenericName[el]=Περιηγητής διαδικτύου
GenericName[es]=Navegador web
GenericName[et]=Veebibrauser
GenericName[fa]=مرورگر اینترنتی
GenericName[fi]=WWW-selain
GenericName[fr]=Navigateur Web
GenericName[gl]=Navegador Web
GenericName[he]=דפדפן אינטרנט
GenericName[hr]=Web preglednik
GenericName[hu]=Webböngésző
GenericName[it]=Browser web
GenericName[ja]=ウェブ・ブラウザ
GenericName[ko]=웹 브라우저
GenericName[ku]=Geroka torê
GenericName[lt]=Interneto naršyklė
GenericName[nb]=Nettleser
GenericName[nl]=Webbrowser
GenericName[nn]=Nettlesar
GenericName[no]=Nettleser
GenericName[pl]=Przeglądarka WWW
GenericName[pt]=Navegador Web
GenericName[pt_BR]=Navegador Web
GenericName[ro]=Navigator Internet
GenericName[ru]=Веб-браузер
GenericName[sk]=Internetový prehliadač
GenericName[sl]=Spletni brskalnik
GenericName[sv]=Webbläsare
GenericName[tr]=Web Tarayıcı
GenericName[ug]=توركۆرگۈ
GenericName[uk]=Веб-браузер
GenericName[vi]=Trình duyệt Web
GenericName[zh_CN]=网络浏览器
GenericName[zh_TW]=網路瀏覽器
Keywords=Internet;WWW;Browser;Web;Explorer
Keywords[ar]=انترنت;إنترنت;متصفح;ويب;وب
Keywords[ast]=Internet;WWW;Restolador;Web;Esplorador
Keywords[ca]=Internet;WWW;Navegador;Web;Explorador;Explorer
Keywords[cs]=Internet;WWW;Prohlížeč;Web;Explorer
Keywords[da]=Internet;Internettet;WWW;Browser;Browse;Web;Surf;Nettet
Keywords[de]=Internet;WWW;Browser;Web;Explorer;Webseite;Site;surfen;online;browsen
Keywords[el]=Internet;WWW;Browser;Web;Explorer;Διαδίκτυο;Περιηγητής;IceCat;Φιρεφοχ;Ιντερνετ
Keywords[es]=Explorador;Internet;WWW
Keywords[fi]=Internet;WWW;Browser;Web;Explorer;selain;Internet-selain;internetselain;verkkoselain;netti;surffaa
Keywords[fr]=Internet;WWW;Browser;Web;Explorer;Fureteur;Surfer;Navigateur
Keywords[he]=דפדפן;אינטרנט;רשת;אתרים;אתר;פיירפוקס;מוזילה;
Keywords[hr]=Internet;WWW;preglednik;Web
Keywords[hu]=Internet;WWW;Böngésző;Web;Háló;Net;Explorer
Keywords[it]=Internet;WWW;Browser;Web;Navigatore
Keywords[is]=Internet;WWW;Vafri;Vefur;Netvafri;Flakk
Keywords[ja]=Internet;WWW;Web;インターネット;ブラウザ;ウェブ;エクスプローラ
Keywords[nb]=Internett;WWW;Nettleser;Explorer;Web;Browser;Nettside
Keywords[nl]=Internet;WWW;Browser;Web;Explorer;Verkenner;Website;Surfen;Online 
Keywords[pt]=Internet;WWW;Browser;Web;Explorador;Navegador
Keywords[pt_BR]=Internet;WWW;Browser;Web;Explorador;Navegador
Keywords[ru]=Internet;WWW;Browser;Web;Explorer;интернет;браузер;веб;файрфокс;огнелис
Keywords[sk]=Internet;WWW;Prehliadač;Web;Explorer
Keywords[sl]=Internet;WWW;Browser;Web;Explorer;Brskalnik;Splet
Keywords[tr]=İnternet;WWW;Tarayıcı;Web;Gezgin;Web sitesi;Site;sörf;çevrimiçi;tara
Keywords[uk]=Internet;WWW;Browser;Web;Explorer;Інтернет;мережа;переглядач;оглядач;браузер;веб;файрфокс;вогнелис;перегляд
Keywords[vi]=Internet;WWW;Browser;Web;Explorer;Trình duyệt;Trang web
Keywords[zh_CN]=Internet;WWW;Browser;Web;Explorer;网页;浏览;上网;火狐;IceCat;ff;互联网;网站;
Keywords[zh_TW]=Internet;WWW;Browser;Web;Explorer;網際網路;網路;瀏覽器;上網;網頁;火狐
Exec=/gnu/store/6mh9l6s13nx3vq3814l8xn7x3ck1jdl9-icecat-38.8.0-gnu1/bin/icecat %u
Terminal=false
X-MultipleArgs=false
Type=Application
Icon=icecat
Categories=GNOME;GTK;Network;WebBrowser;
MimeType=text/html;text/xml;application/xhtml+xml;application/xml;application/rss+xml;application/rdf+xml;image/gif;image/jpeg;image/png;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/ftp;x-scheme-handler/chrome;video/webm;application/x-xpinstall;
StartupNotify=true
Actions=NewWindow;NewPrivateWindow;

[Desktop Action NewWindow]
Name=Open a New Window
Name[ar]=افتح نافذة جديدة
Name[ast]=Abrir una ventana nueva
Name[bn]=Abrir una ventana nueva
Name[ca]=Obre una finestra nova
Name[cs]=Otevřít nové okno
Name[da]=Åbn et nyt vindue
Name[de]=Ein neues Fenster öffnen
Name[el]=Άνοιγμα νέου παραθύρου
Name[es]=Abrir una ventana nueva
Name[fi]=Avaa uusi ikkuna
Name[fr]=Ouvrir une nouvelle fenêtre
Name[gl]=Abrir unha nova xanela
Name[he]=פתיחת חלון חדש
Name[hr]=Otvori novi prozor
Name[hu]=Új ablak nyitása
Name[it]=Apri una nuova finestra
Name[ja]=新しいウィンドウを開く
Name[ko]=새 창 열기
Name[ku]=Paceyeke nû veke
Name[lt]=Atverti naują langą
Name[nb]=Åpne et nytt vindu
Name[nl]=Nieuw venster openen
Name[pt]=Abrir nova janela
Name[pt_BR]=Abrir nova janela
Name[ro]=Deschide o fereastră nouă
Name[ru]=Новое окно
Name[sk]=Otvoriť nové okno
Name[sl]=Odpri novo okno
Name[sv]=Öppna ett nytt fönster
Name[tr]=Yeni pencere aç 
Name[ug]=يېڭى كۆزنەك ئېچىش
Name[uk]=Відкрити нове вікно
Name[vi]=Mở cửa sổ mới
Name[zh_CN]=新建窗口
Name[zh_TW]=開啟新視窗
Exec=/gnu/store/6mh9l6s13nx3vq3814l8xn7x3ck1jdl9-icecat-38.8.0-gnu1/bin/icecat -new-window
OnlyShowIn=Unity;

[Desktop Action NewPrivateWindow]
Name=Open a New Private Window
Name[ar]=افتح نافذة جديدة للتصفح الخاص
Name[ca]=Obre una finestra nova en mode d'incògnit
Name[de]=Ein neues privates Fenster öffnen
Name[es]=Abrir una ventana privada nueva
Name[fi]=Avaa uusi yksityinen ikkuna
Name[fr]=Ouvrir une nouvelle fenêtre de navigation privée
Name[he]=פתיחת חלון גלישה פרטית חדש
Name[hu]=Új privát ablak nyitása
Name[it]=Apri una nuova finestra anonima
Name[nb]=Åpne et nytt privat vindu
Name[ru]=Новое приватное окно
Name[sl]=Odpri novo okno zasebnega brskanja
Name[tr]=Yeni bir pencere aç
Name[uk]=Відкрити нове вікно у потайливому режимі
Name[zh_TW]=開啟新隱私瀏覽視窗
Exec=/gnu/store/6mh9l6s13nx3vq3814l8xn7x3ck1jdl9-icecat-38.8.0-gnu1/bin/icecat -private-window
OnlyShowIn=Unity;

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #3: Type: text/x-patch, Size: 1416 bytes --]

diff --git a/gnu/packages/gnuzilla.scm b/gnu/packages/gnuzilla.scm
index 7e52534..264a754 100644
--- a/gnu/packages/gnuzilla.scm
+++ b/gnu/packages/gnuzilla.scm
@@ -509,7 +509,24 @@ standards.")
               (format #t "configure flags: ~s~%" flags)
               (zero? (apply system* bash
                             (string-append srcdir "/configure")
-                            flags))))))))
+                            flags)))))
+         (add-before 'configure 'install-desktop-entry
+           (lambda* (#:key outputs #:allow-other-keys)
+             ;; Install the '.desktop' file.
+             (let* ((out (assoc-ref outputs "out"))
+                    (applications (string-append out "/share/applications")))
+               (mkdir-p applications)
+               (copy-file "debian/icecat.desktop.in"
+                          "debian/icecat.desktop")
+               (substitute* "debian/icecat.desktop"
+                 (("@MOZ_DISPLAY_NAME@")
+                  "GNU IceCat")
+                 (("^Exec=@MOZ_APP_NAME@")
+                  (string-append "Exec=" out "/bin/icecat"))
+                 (("@MOZ_APP_NAME@")
+                  "icecat"))
+               (install-file "debian/icecat.desktop" applications)
+               #t))))))
     (home-page "http://www.gnu.org/software/gnuzilla/")
     (synopsis "Entirely free browser derived from Mozilla Firefox")
     (description

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* bug#23094: icecat is missing a desktop file
  2016-05-31 13:47         ` Ludovic Courtès
@ 2016-06-01 22:45           ` Danny Milosavljevic
  2016-06-02 19:32             ` Ludovic Courtès
  0 siblings, 1 reply; 9+ messages in thread
From: Danny Milosavljevic @ 2016-06-01 22:45 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 23094

Hi Ludo,

On Tue, 31 May 2016 15:47:35 +0200
ludo@gnu.org (Ludovic Courtès) wrote:

> I tested the attached one.  It works as expected, but there remain
> “%%ifdef” things in it (see attached file), and I’m guessing GNOME &
> co. will barf upon them, though I don’t know how to test.

I think the easiest way to test (with few dependencies too) is:

$ guix package -i rofi
$ rofi -show drun

Then check whether icecat shows up in the list of applications (it doesn't).

But on the other hand

$ mkdir -p ${HOME}/dd/applications
$ cp ~/.guix-profile/share/applications/icecat.desktop ${HOME}/dd/applications/
$ export XDG_DATA_DIRS="${HOME}/dd:${XDG_DATA_DIRS}"
$ emacs ${HOME}/dd/applications/icecat.desktop
(remove just the %% lines)
$ rofi -show drun

shows icecat.

(Just today I had the same problem (with iceweasel) in Debian in LXDE while I was showing GNU Linux to someone else. Apparently the LXDE desktop environment doesn't let you add applications it doesn't know (i.e. ones without desktop file) to the panel. That... didn't give a good impression)

^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#23094: icecat is missing a desktop file
  2016-06-01 22:45           ` Danny Milosavljevic
@ 2016-06-02 19:32             ` Ludovic Courtès
  0 siblings, 0 replies; 9+ messages in thread
From: Ludovic Courtès @ 2016-06-02 19:32 UTC (permalink / raw)
  To: Danny Milosavljevic; +Cc: 23094-done

Danny Milosavljevic <dannym@scratchpost.org> skribis:

> On Tue, 31 May 2016 15:47:35 +0200
> ludo@gnu.org (Ludovic Courtès) wrote:
>
>> I tested the attached one.  It works as expected, but there remain
>> “%%ifdef” things in it (see attached file), and I’m guessing GNOME &
>> co. will barf upon them, though I don’t know how to test.
>
> I think the easiest way to test (with few dependencies too) is:
>
> $ guix package -i rofi
> $ rofi -show drun

Oh, thanks for the trick.

AFAICS commit 6cde5c34a1b7acb953e87055b845629015903888 fixes that.

Let me know if something’s still wrong with the .desktop entry!

Thanks for your patience,
Ludo’.

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2016-06-02 19:33 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-22 19:20 bug#23094: icecat is missing a desktop file Danny Milosavljevic
2016-03-23 17:38 ` Leo Famulari
2016-04-10 10:04 ` bug#23094: [PATCH] " Danny Milosavljevic
2016-04-16 18:15   ` bug#23094: [PATCHv2] " Danny Milosavljevic
2016-05-28 15:22     ` Ludovic Courtès
2016-05-30 21:02       ` Danny Milosavljevic
2016-05-31 13:47         ` Ludovic Courtès
2016-06-01 22:45           ` Danny Milosavljevic
2016-06-02 19:32             ` Ludovic Courtès

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).