Menu questions

Technical issues/questions of an intermediate or advanced nature.
User avatar
Ed_P
Contributor
Contributor
Posts: 8374
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Menu questions

Post#1 by Ed_P » 25 Feb 2024, 06:03

I know how to create .desktop files and I know the Categories= parm creates menu entries for .desktop files in the /usr/share/applications/ folder. What I'd like to know is:

1. Are there other folders with .desktop files with entries in the menu a user can copy files to?
2. What does one need to do to have a new .desktop file's menu entry show in the menu without rebooting?

:)
Ed

benkenobi36
White ninja
White ninja
Posts: 4
Joined: 08 Jan 2024, 21:05
Distribution: Linux Mint

Menu questions

Post#2 by benkenobi36 » 25 Feb 2024, 08:20

For
2. What does one need to do to have a new .desktop file's menu entry show in the menu without rebooting?
use

Code: Select all

/opt/porteus-scripts/xorg/update-menu

Vic
Samurai
Samurai
Posts: 122
Joined: 10 Aug 2016, 05:36
Distribution: Porteux V-0.1 64 KDE
Location: Utopia in Tampa, Florida, USA

Menu questions

Post#3 by Vic » 25 Feb 2024, 12:14

Hi Ed.

I got the basic info from the net and added the outline after much trial and error.

Hope this helps...

Code: Select all

https://askubuntu.com/questions/674403/when-creating-a-desktop-file-what-are-valid-categories

=============================================

Categories=

Applications; IS NOTHING

SUB-HEADERS NEED THE MAIN HEADER

Development               -- Development;
    Translation           -- Development;Translation;
    Web Development       -- Development;WebDevelopment;
Education                 -- Education;
    Languages             -- Education;Languages;
    Mathematics           -- Education;Math;
    Miscellaneous         -- Education;  == WHEN AN ITEM IS PLACED UNDER Education ONLY, THE SUB-HEADER Miscellaneous IS CREATED WITH THE ITEM INSIDE ==
    Science               -- Education;Science;
Games                     -- Game;
    Arcade                -- Game;ArcadeGame;
    Board Games           -- Game;BoardGame;
    Card Games            -- Game;CardGame;
    Games for Kids        -- Game;KidsGame;
    Logic Games           -- Game;LogicGame;
    Tactics  Strategy     -- Game;StrategyGame;
Graphics                  -- Graphics;Viewer;Photography;
    More Applications     -- X-KDE-More;
Internet                  -- Network;FileTransfer;P2P;
    More Applications     -- X-KDE-More;
Lost Found                -- EITHER NO ENTRY OR ANY OF THE FOLLOWING ... Qt;GTK;GNOME;KDE;Motif;Java;ConsoleOnly;Robotics;Sports;ParallelComputing;Amusement;Documentation;Clock;Calculator;
Multimedia                -- AudioVideo;Audio;Video;Player;TV;
    More Applications     -- X-KDE-More;
Office                    -- Office;Viewer;
    More Applications     -- X-KDE-More;
Science  Math             -- Science; AND/OR Math;Physics;  == WITHOUT Education; THIS HEADER IS CREATED ==
Settings                  -- Settings;
System                    -- System;Compression;
    More Applications     -- X-KDE-More;
Utilities                 -- Utility;TextEditor;Accessibility;Documentation;
    More Applications     -- X-KDE-More;
ZZZ-SINGLES               -- Core;KDE;

============================================================

DEVELOPMENT
    TRANSLATION
    WEB DEVELOPMENT
EDUCATION
    LANGUAGES
    MATHEMATICS
    MISCELLANEOUS
    SCIENCE
GAMES
    ARCADE
    BOARD GAMES
    CARD GAMES
    GAMES FOR KIDS
    LOGIC GAMES
    TACTICS & STRATEGY
GRAPHICS
    MORE APPLICATIONS
INTERNET
    MORE APPLICATIONS
MULTIMEDIA
    MORE APPLICATIONS
OFFICE
    MORE APPLICATIONS
SCIENCE & MATH
SETTINGS
SYSTEM
    MORE APPLICATIONS
UTILITIES
    MORE APPLICATIONS

=======================================================


Main Categories. Note that category names are case-sensitive.

Audio
AudioVideo
Development
Education
Game
Graphics
Network
Office
Settings
Utility
Video

AudioVideo;Audio;Video;Development;Education;Game;Graphics;Network;Office;Settings;Utility;

=======================================================

Additional categories

2DGraphics
3DGraphics
Accessibility
ActionGame
AdventureGame
Amusement
ArcadeGame
Archiving
Art
ArtificialIntelligence
Astronomy
AudioVideoEditing
Biology
BlocksGame
BoardGame
Building
Calculator
Calendar
CardGame
Chart
Chat
Chemistry
Clock
Compression
ComputerScience
ConsoleOnly
Construction
ContactManagement
Core
DataVisualization
Database
Debugger
DesktopSettings
Dialup
Dictionary
DiscBurning
Documentation
Economy
Electricity
Electronics
Email
Emulator
Engineering
FileManager
FileTools
FileTransfer
Filesystem
Finance
FlowChart
GNOME
GTK
GUIDesigner
Geography
Geology
Geoscience
HamRadio
HardwareSettings
History
IDE
IRCClient
ImageProcessing
InstantMessaging
Java
KDE
KidsGame
Languages
Literature
LogicGame
Math
MedicalSoftware
Midi
Mixer
Monitor
Motif
Music
News
NumericalAnalysis
OCR
P2P
PDA
PackageManager
ParallelComputing
Photography
Physics
Player
Presentation
Printing
Profiling
ProjectManagement
Publishing
Qt
RasterGraphics
Recorder
RemoteAccess
RevisionControl
Robotics
RolePlaying
Scanning
Science
Security
Sequencer
Simulation
Sports
SportsGame
Spreadsheet
StrategyGame
TV
Telephony
TelephonyTools
TerminalEmulator
TextEditor
TextTools
Translation
Tuner
VectorGraphics
VideoConference
Viewer
WebBrowser
WebDevelopment
WordProcessor

Building;Debugger;IDE;GUIDesigner;Profiling;RevisionControl;Translation;Calendar;ContactManagement;Database;Dictionary;Chart;Email;Finance;FlowChart;PDA;ProjectManagement;Presentation;Spreadsheet;WordProcessor;2DGraphics;VectorGraphics;RasterGraphics;3DGraphics;Scanning;OCR;Photography;Publishing;Viewer;TextTools;DesktopSettings;HardwareSettings;Printing;PackageManager;Dialup;InstantMessaging;Chat;IRCClient;FileTransfer;HamRadio;News;P2P;RemoteAccess;Telephony;TelephonyTools;VideoConference;WebBrowser;WebDevelopment;Midi;Mixer;Sequencer;Tuner;TV;AudioVideoEditing;Player;Recorder;DiscBurning;ActionGame;AdventureGame;ArcadeGame;BoardGame;BlocksGame;CardGame;KidsGame;LogicGame;RolePlaying;Simulation;SportsGame;StrategyGame;Art;Construction;Music;Languages;Science;ArtificialIntelligence;Astronomy;Biology;Chemistry;ComputerScience;DataVisualization;Economy;Electricity;Geography;Geology;Geoscience;History;ImageProcessing;Literature;Math;NumericalAnalysis;MedicalSoftware;Physics;Robotics;Sports;ParallelComputing;Amusement;Archiving;Compression;Electronics;Emulator;Engineering;FileTools;FileManager;TerminalEmulator;Filesystem;Monitor;Security;Accessibility;Calculator;Clock;TextEditor;Documentation;Core;KDE;GNOME;GTK;Qt;Motif;Java;ConsoleOnly;

========================================================

Reserved categories

Applet
Screensaver
Shell
TrayIcon

Screensaver;TrayIcon;Applet;Shell;

=======================================================
Vic

donald
Full of knowledge
Full of knowledge
Posts: 2073
Joined: 17 Jun 2013, 13:17
Distribution: Porteus 3.2.2 XFCE 32bit
Location: Germany

Menu questions

Post#4 by donald » 25 Feb 2024, 18:59

Ed_P wrote:
25 Feb 2024, 06:03
2. What does one need to do to have a new .desktop file's menu entry show in the menu without rebooting?
It depends on which DE is used.

In xfce I could do:

Code: Select all

xfce4-panel -r
I don't know much about cinnamon but maybe:
right-click on panel > troubleshoot > Restart Cinnamon

User avatar
Ed_P
Contributor
Contributor
Posts: 8374
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Menu questions

Post#5 by Ed_P » 25 Feb 2024, 19:30

:shock: Thank you guys :friends: Excellent suggestions and info. :thumbsup: :beer:
Ed

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 3941
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

Menu questions

Post#6 by ncmprhnsbl » 27 Feb 2024, 00:05

Ed_P wrote:
25 Feb 2024, 06:03
1. Are there other folders with .desktop files with entries in the menu a user can copy files to?
/home/guest/.local/share/applications
and do (as guest)

Code: Select all

update-desktop-database /home/guest/.local/share/applications
pretty sure cinnamons menu should update without restarting..
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

User avatar
Ed_P
Contributor
Contributor
Posts: 8374
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Menu questions

Post#7 by Ed_P » 27 Feb 2024, 04:08

ncmprhnsbl wrote:
27 Feb 2024, 00:05
/home/guest/.local/share/applications
Thank you ncmp. :worship: Those suggestions work. :happy62:
Ed

Post Reply