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 654775 - desktop file required to add to favorites in the dash
desktop file required to add to favorites in the dash
Status: RESOLVED OBSOLETE
Product: gnome-shell
Classification: Core
Component: general
3.24.x
Other Linux
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
: 688592 766995 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2011-07-17 09:41 UTC by Martin Dosch
Modified: 2021-07-05 14:41 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
appFavorites: forbid to add applications without desktop (2.99 KB, patch)
2011-07-17 20:07 UTC, Maxim Ermilov
needs-work Details | Review

Description Martin Dosch 2011-07-17 09:41:23 UTC
# apt-cache show gnome-shell 
Package: gnome-shell
Version: 3.0.2-1

# uname -a
Linux schlepptop 2.6.39-2-amd64 #1 SMP Tue Jul 5 02:51:22 UTC 2011 x86_64 GNU/Linux

I'm using debian testing with Gnome3 out of experimental/unstable.

I want to use the current releases of Firefox and Thunderbird, so i download them and unzip them to opt.
Then I do "ln -s /opt/firefox/firefox /usr/local/bin/firefox" and the same for thunderbird.
Fx and Tb can be opened via Alt+F2 and typing "firefox" or "thunderbird" and there is the icon at the shells left side. But if i add them to the favorites and close them, the icons take no effect. No Fx or Tb are starting after clicking the icon.
Comment 1 Martin Dosch 2011-07-17 14:59:31 UTC
I forgot to mention that it's the same issue with the java-homebanking tool jameica/hibiscus [1] that's unzipped to /opt/ and linked to /usr/local/bin due to missing debian packages.
Does the favorite bar only work with programmes installed via apt?
Is this a wanted behaviour or a bug?

[1] http://www.willuhn.de/products/jameica/
Comment 2 Jasper St. Pierre (not reading bugmail) 2011-07-17 16:39:39 UTC
Applications require a .desktop file to be tracked and launched, yes.
Comment 3 Martin Dosch 2011-07-17 18:08:27 UTC
Thank you, works fine after creating .desktop files.
Are there any possibilities and plans to make this more user-friendly in coming releases?
I guess there are a lot of people that use some programs that are not in their distributions repositories and some may be not willing to manually create .desktop files.

btw, i'm using Gnome3 for 3 days now and i think i like it. There are some things that could get improved but it's very good to use according to that it's the first version of a completely new surface/DE.
Comment 4 Maxim Ermilov 2011-07-17 20:07:55 UTC
Created attachment 192144 [details] [review]
appFavorites: forbid to add applications without desktop

It show the reason in notification area.
Comment 5 John Stowers 2011-07-17 23:21:55 UTC
(In reply to comment #4)
> Created an attachment (id=192144) [details] [review]
> appFavorites: forbid to add applications without desktop
> 
> It show the reason in notification area.

Instead of showing a message, why not just help the user and create the correctly named .desktop file in ~/.config/ ?
Comment 6 Maxim Ermilov 2011-07-18 06:31:32 UTC
> Instead of showing a message, why not just help the user and create the
> correctly named .desktop file in ~/.config/ ?
We can get executable name with command line and environment variables (and put this in desktop file).
It will not work in some cases.
For emxample:
1. application can be started via script
   (google-chrome)
2. application can have gui as separate executable
Comment 7 Jasper St. Pierre (not reading bugmail) 2011-08-03 19:18:41 UTC
Review of attachment 192144 [details] [review]:

::: js/ui/appFavorites.js
@@ +87,3 @@
+        if (app.is_transient()) {
+            let message = _("%s can't be added to favorites.").format(app.get_name());
+            let body = _("Application doesn't have desktop file.");

This is a worthless error message for the user. What is a "desktop file"? How can my application get one?

IMHO, we should just disable icon dragging for transient applications and put a separator between them and real apps.
Comment 8 Martin Dosch 2011-08-05 23:02:18 UTC
I prefer Maxims suggestion. In one of the actual cases, when it's not possible you can use the way Jasper suggested.
Comment 9 John Stowers 2011-08-05 23:07:13 UTC
(In reply to comment #6)
> > Instead of showing a message, why not just help the user and create the
> > correctly named .desktop file in ~/.config/ ?
> We can get executable name with command line and environment variables (and put
> this in desktop file).
> It will not work in some cases.
> For emxample:
> 1. application can be started via script
>    (google-chrome)
> 2. application can have gui as separate executable

FWIW the old alt+f2 run dialog could automatically create desktop files for launching arbitrary commands.
Comment 10 Jasper St. Pierre (not reading bugmail) 2012-05-21 23:19:39 UTC
Do we have a suggestion for this one? Adel?
Comment 11 Alessio Bolognino 2012-12-21 18:29:19 UTC
*** Bug 688592 has been marked as a duplicate of this bug. ***
Comment 12 Florian Müllner 2016-05-29 21:16:25 UTC
*** Bug 766995 has been marked as a duplicate of this bug. ***
Comment 13 GNOME Infrastructure Team 2021-07-05 14:41:39 UTC
GNOME is going to shut down bugzilla.gnome.org in favor of  gitlab.gnome.org.
As part of that, we are mass-closing older open tickets in bugzilla.gnome.org
which have not seen updates for a longer time (resources are unfortunately
quite limited so not every ticket can get handled).

If you can still reproduce the situation described in this ticket in a recent
and supported software version, then please follow
  https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines
and create a new ticket at
  https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/

Thank you for your understanding and your help.