Fedora Linux Support Community & Resources Center
  #1  
Old 3rd November 2011, 11:49 AM
Japplo Offline
Registered User
 
Join Date: Sep 2010
Posts: 76
linuxfirefox
Hide applications in Gnome 3 dock

Hello Fedorausers!

I have added a quick vlc starter to my gnome dock:

Code:
cat /usr/bin/vlc-starter
#!/bin/sh
vlc /Channels/dvb-c-free-tv-channels-190211.conf $*

cat /usr/share/applications/vlc-starter.desktop
[Desktop Entry]
Version=1.0
Name=VLC media player TV digital
Comment=Read, capture, broadcast your multimedia streams
Exec=vlc-starter
Icon=/Icons/vlc-tv-digital.png
Terminal=false
Type=Application
Categories=AudioVideo;Player;
X-Desktop-File-Install-Version=0.18
If I use the starter, I have two vlc Icons in my dock, like in the attachment gnome3-2.png.
How can I prevent this? I need only the starter Icon in the dock like in the attachment
gnome3-1.png.

Many thanks,
Japplo
Attached Thumbnails
Click image for larger version

Name:	gnome3-1.png
Views:	124
Size:	43.2 KB
ID:	22009   Click image for larger version

Name:	gnome3-2.png
Views:	134
Size:	51.0 KB
ID:	22010  

Last edited by Japplo; 3rd November 2011 at 01:41 PM.
Reply With Quote
  #2  
Old 3rd November 2011, 04:31 PM
Gareth Jones Offline
Official Gnome 3 Sales Rep. (and Adminstrator)
 
Join Date: Jul 2011
Location: Birmingham, UK
Age: 32
Posts: 2,771
linuxfirefox
Re: Hide allications in Gnome 3 dock

The problem here is that the dash is used for switching between running programs, as well as starting new programs. (Running applications are indicated by the white "shadow" under the icons.)

When you start your script, it runs VLC. The shell recognizes the VLC window as VLC rather than your script, so it adds the vanilla VLC icon to the dash for switching to it.

I'm afraid I've no idea how to make the shell recognize your script's VLC as special though.

Gareth

---------- Post added at 03:29 PM ---------- Previous post was at 03:25 PM ----------

Also, if all your script does is start VLC, you could change the last line to "exec vlc /Channels/...", which will cause the script to replace itself with VLC rather than hanging around in the background until VLC exits.

It's possible (but unlikely I suppose) that gnome-shell tracks launched processes, in which case this might also fix your problem.

Gareth

---------- Post added at 03:31 PM ---------- Previous post was at 03:29 PM ----------

P.S.: Also, use '"$@"' rather than '$*' on the VLC line, so that arguments containing spaces are handled properly. $* will cause them to be split into separate arguments at the spaces, whereas "$@" keeps them as originally specified.
Reply With Quote
  #3  
Old 5th November 2011, 09:37 AM
Japplo Offline
Registered User
 
Join Date: Sep 2010
Posts: 76
linuxfirefox
Re: Hide allications in Gnome 3 dock

Hi Gareth,
thank you for reply. I will look for an extension, but currently I could not find a "starter" extension which is independent from the dock

Japplo
Reply With Quote
  #4  
Old 23rd June 2012, 02:34 PM
Japplo Offline
Registered User
 
Join Date: Sep 2010
Posts: 76
linuxfirefox
Re: Hide applications in Gnome 3 dock

Has anybody an idea how to fix that without replacing the gnome 3 dock?
Reply With Quote
Reply

Tags
applications, dock, gnome, hide

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
how do you get the gnome 3 dock? sillyshy Using Fedora 2 29th May 2011 01:40 AM
[SOLVED] F14 gnome-applet Mini-Commander will not dock to gnome-panel LionelHutz Using Fedora 4 28th November 2010 06:28 PM
List of Installed Applications in Gnome Applications Menu BandC Using Fedora 4 7th May 2009 07:19 PM
Gnome Notification hide ACiD GRiM Using Fedora 2 5th January 2009 02:50 AM
A dock panel for Gnome TheRoom Using Fedora 3 8th October 2006 12:53 AM


Current GMT-time: 09:10 (Saturday, 01-11-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat
Reutlingen - Gragnano Photos on Instagram - Mehdia Travel Photos on Instagram