Sponsored Content
Operating Systems Linux Ubuntu editing the unity dash main menu Post 302539379 by programAngel on Sunday 17th of July 2011 03:56:12 AM
Old 07-17-2011
well apparently the dash menu is not work like the menu in windows in which you have directory the resemble the sub-menus and link inside them that resemble the apps.

Instead there are files with the extension .desktop, the content of those files tell ubuntu in what sub-menus of the dash the app should be included.
Desktop Entry Specification
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

a main menu option?

I have created a main menu in the following way: while true; do echo " " echo "Main Menu: " echo "Please Select An Option Using The Options Provided." echo " " echo "1 - Search All Files" echo " " echo "2 - Search Individual Files" echo " " ... (1 Reply)
Discussion started by: amatuer_lee_3
1 Replies

2. Shell Programming and Scripting

Menu in Menu script issue

Problem: I am trying to create a menu in a menu script and I am running into an issue with the calculator portion of the script. I am first presented with the ==Options Menu== which all 5 options working correctly. Now comes the fun part. I select option 1 which takes me to my ==Calculator... (1 Reply)
Discussion started by: iDdraig
1 Replies

3. UNIX for Dummies Questions & Answers

removing application from the unity menu

Hello I have removed wine but the symbols of it application were in the unity menu (though nothing happened when I clicked on them). How can I remove symbols from the unity menu? (1 Reply)
Discussion started by: programAngel
1 Replies

4. Ubuntu

Gewtting Unity (or the Panel) to start

For some reason my installation of Ubuntu 11.04 is messed up and Unity doesn't start automatically. I can't find what command I need to start it nor how to make it start at boot time. (Running unity in a terminal gives some output but no GUI.) What can I do? I'd be happy to go back to... (2 Replies)
Discussion started by: CRGreathouse
2 Replies

5. Shell Programming and Scripting

Need help in create menu with 3 sub menu using the case command

hi all i am a newbie to this is there any examples on creating a main menu with 3 sub menu main menu -> option a , b and c a menu -> option 1 ,2 and 3 b menu -> option 1 ,2 c menu -> option 1 ,2 i am getting headache as my code kept getting unexpected EOF ---------- Post... (0 Replies)
Discussion started by: chercm
0 Replies

6. Shell Programming and Scripting

Convert vi editing to text editing

Dear Guru's I'm using Putty and want to edit a file. I know we generally use vi editor to do it. As I'm not good in using vi editor, I want to convert the vi into something like text pad. Is there any option in Putty to do the same ? Thanks for your response. Srini (6 Replies)
Discussion started by: thummi9090
6 Replies

7. What is on Your Mind?

UserCP Main Menu Moved to UIM

After a lot of consideration and work .... in Beta 5 for the new "User Information Modal (UIM) I have moved most UserCP menu to the UIM. Note to Mods: I have also moved the moderation tasks items from the legacy UserCP menu to the UIM Moderation tab. ... (0 Replies)
Discussion started by: Neo
0 Replies

8. Shell Programming and Scripting

A dash to GOTO or a dash from GOTO, that is the question...

Well, guys I saw a question about GOTO for Python. So this gave me the inspiration to attempt a GOTO function for 'dash', (bash and ksh too). Machine: MBP OSX 10.14.3, default bash terminal, calling '#!/usr/local/bin/dash'... This is purely a fun project to see if it is possible in PURE... (3 Replies)
Discussion started by: wisecracker
3 Replies

9. UNIX for Beginners Questions & Answers

Gnome 3.28.3 menu item dissapears under the system menu

I installed CentOS 8 with Gnome 3.28.2 and I noticed that the "switch user" menu item disappeared from under the system menu of Gnome classic (Both X11 & Wayland). I checked google and this problem seems to have a history going back several releases of Gnome. Unfortunately, I never found a... (1 Reply)
Discussion started by: bodisha
1 Replies
X11::FreeDesktop::DesktopEntry(3pm)			User Contributed Perl Documentation		       X11::FreeDesktop::DesktopEntry(3pm)

NAME
X11::FreeDesktop::DesktopEntry - an interface to Freedesktop.org .desktop files. SYNOPSIS
use X11::FreeDesktop::DesktopEntry; my $entry = X11::FreeDesktop::DesktopEntry->new_from_data($data); print $entry->get_value('Name'); print $entry->Exec; $entry->set_value('Name', 'Example Program'); print $entry->as_string; $entry->reset; DESCRIPTION
This module provides an object-oriented interface to files that comply with the Freedesktop.org desktop entry specification. You can query the file for available values, modify them, and also get locale information as well. CONSTRUCTOR
X11::FreeDesktop::DesktopEntry doesn't have the standard "new()" constructor. This allows subclasses to implement their own backend- specific constructor without needing to re-implement the constructor, which can be a pain (for an example subclass that uses Gnome2::VFS as a backend, see the "PerlPanel::DesktopEntry" module in the PerlPanel distribution). my $entry = X11::FreeDesktop::DesktopEntry->new_from_data($data); If there is an error reading or parsing the data, the constructor will "carp()" and return an undefined value. METHODS
$entry->is_valid($locale); Returns a true or false valid depending on whether the required keys exist for the given $locale. A list of the required keys can be found in the Freedesktop.org specification. If $locale is omitted, it will default to '"C"'. my @groups = $entry->groups; This returns an array of scalars containing the group names included in the file. Groups are defined by a line like the following in the file itself: [Desktop Entry] A valid desktop entry file will always have one of these, at the top. $entry->has_group($group); Returns true or false depending on whether the file has a section with the name of $group. my @keys = $entry->keys($group, $locale); Returns an array of the available keys in $group and the $locale locale. Both these values revert to defaults if they're undefined. When $locale is defined, the array will be folded in with the keys from '"C"', since locales inherit keys from the default locale. See the "get_value()" method for another example of this inheritance. $entry->has_key($key, $group); Returns true or false depending on whether the file has a key with the name of $key in the $group section. If $group is omitted, then the default group ('Desktop Entry') will be used. my @locales = $entry->locales($key, $group); Returns an array of strings naming all the available locales for the given $key. If $key or $group don't exist in the file, this method will "carp()" and return undef. There should always be at least one locale in the returned array - the default locale, '"C"'. my $string = $entry->get_value($key, $group, $locale); Returns the value of the key named by $key. $group is optional, and will be set to the default if omitted (see above). $locale is also optional, and defines the locale for the string (defaults to '"C"' if omitted). If the requested key does not exist for a non-default $locale of the form "xx_YY", then the module will search for a value for the "xx" locale. If nothing is found, this method will attempt to return the value for the '"C"' locale. If this value does not exist, this method will return undef. $entry->set_value($key, $value, $locale, $group); This method sets the value of the $key key in the $locale locale and $group group to be $value. If $locale and $group are omitted, the defaults are used. $value is always interpreted as a string. This method always returns true. my $data = $entry->as_string; This method returns a scalar containing the full entry in .desktop format. This data can then be used to write the entry to disk. $entry->reset; This method restores the entry to its initial state - it undoes any changes made to the values stored in the entry. CONVENIENCE METHODS
my $name = $entry->Name($locale); my $generic_name = $entry->GenericName($locale); my $comment = $entry->Comment($locale); my $type = $entry->Type($locale); my $icon = $entry->Icon($locale); my $exec = $entry->Exec($locale); my $url = $entry->URL($locale); my $startup_notify = $entry->StartupNotify($locale); These methods are shortcuts for the mostly commonly accessed fields from a desktop entry file. If undefined, $locale reverts to the default. NOTES
Please note that according to the Freedesktop.org spec, key names are case-sensitive. SEE ALSO
The Freedesktop.org Desktop Entry Specification at <http://www.freedesktop.org/Standards/desktop-entry-spec>. AUTHOR
Gavin Brown <gavin.brown@uk.com>. COPYRIGHT
Copyright (c) 2005 Gavin Brown. This program is free software, you can use it and/or modify it under the same terms as Perl itself. perl v5.10.0 2009-01-10 X11::FreeDesktop::DesktopEntry(3pm)
All times are GMT -4. The time now is 05:02 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy