How to add an working shortcut in the start menu properly?

Help with the version of MX KDE officially released by the Development Team.
When asking for help, use Quick System Info from MX Tools. It will be properly formatted using the following steps.
1. Click on Quick System Info in MX Tools
2. Right click in your post and paste.
Message
Author
IAMNewbie
Posts: 33
Joined: Fri Feb 10, 2023 3:37 pm

How to add an working shortcut in the start menu properly?

#1 Post by IAMNewbie »

I have downloaded Ventoy and placed it under /opt folder like this /opt/ventoy

I wanted to add it to the start menu using that Menu Editor tool but it won't give me access to its path and neither to open its path to choose an icon. Running it as root won't work either.

So, I right clicked on start menu and choose "Edit applications..." This allows me to access its path and choose the binary and its icon but the shortcut created doesn't do anything and the shortcut isn't visible to the first Menu Editor app above.

First tool creates a shortcut in the /usr/share/applications named Ventoy.desktop
Second creates the shortcut in the .local/share/applications for the specific user.
None of them is working.

If I go in the terminal in the /usr/share/applications and then do the follwoing:

Code: Select all

chomd +7777 Ventoy.desktop
chmod +X Ventoy.desktop
./Ventoy.desktop   ---> It runs very well as it should be.
If I open it from the start menu then it doesn't happen anything.
Why?
I places Ventoy.desktop in both paths: /usr/share/applications and also in the .loca/share/applications and still not working.

This is the content of Ventoy.desktop:

Code: Select all

[Desktop Entry]
Comment=Flash multiple OS images to SD cards and USB drives, safely and easily.
Exec=sudo /opt/ventoy/tool/x86_64/Ventoy2Disk.gtk3 %U
Icon=ventoy
Name=Ventoy
NoDisplay=false
Path[$e]=
StartupNotify=true
Terminal=0
TerminalOptions=
Type=Application
X-KDE-SubstituteUID=false
X-KDE-Username=
System Info:

Code: Select all

System:    Kernel: 6.0.0-6mx-amd64 [6.0.12-1~mx21+1] x86_64 bits: 64 compiler: gcc v: 10.2.1 
           parameters: BOOT_IMAGE=/boot/vmlinuz-6.0.0-6mx-amd64 
           root=UUID=<filter> ro splash 
           Desktop: KDE Plasma 5.20.5 wm: kwin_x11 vt: 1 dm: startx 
           Distro: Debian GNU/Linux 11 (bullseye) 
Machine:   Type: Desktop System: Gigabyte product: N/A v: N/A serial: <filter> Chassis: type: 3 
           serial: <filter> 
           Mobo: Gigabyte model: H61M-DS2 4.0 v: x.x serial: <filter> UEFI: American Megatrends 
           v: F2 date: 08/30/2013 
CPU:       Info: Quad Core model: Intel Core i7-2600 bits: 64 type: MT MCP arch: Sandy Bridge 
           family: 6 model-id: 2A (42) stepping: 7 microcode: 2F cache: L2: 8 MiB 
           flags: avx lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 54272 
           Speed: 2225 MHz min/max: 1600/3800 MHz Core speeds (MHz): 1: 2225 2: 2186 3: 2954 
           4: 2195 5: 2575 6: 1636 7: 1596 8: 1600 
           Vulnerabilities: Type: itlb_multihit status: KVM: VMX disabled 
           Type: l1tf mitigation: PTE Inversion; VMX: conditional cache flushes, SMT vulnerable 
           Type: mds mitigation: Clear CPU buffers; SMT vulnerable 
           Type: meltdown mitigation: PTI 
           Type: mmio_stale_data status: Unknown: No mitigations 
           Type: retbleed status: Not affected 
           Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via prctl 
           Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization 
           Type: spectre_v2 mitigation: Retpolines, IBPB: conditional, IBRS_FW, STIBP: 
           conditional, RSB filling, PBRSB-eIBRS: Not affected 
           Type: srbds status: Not affected 
           Type: tsx_async_abort status: Not affected 
Graphics:  Device-1: NVIDIA G96C [GeForce 9400 GT] driver: nouveau v: kernel bus-ID: 01:00.0 
           chip-ID: 10de:0641 class-ID: 0300 
           Display: server: X.Org 1.20.14 compositor: kwin_x11 driver: loaded: modesetting 
           unloaded: fbdev,vesa display-ID: :0 screens: 1 
           Screen-1: 0 s-res: 1280x1024 s-dpi: 96 s-size: 338x270mm (13.3x10.6") 
           s-diag: 433mm (17") 
           Monitor-1: VGA-1 res: 1280x1024 hz: 60 dpi: 96 size: 338x270mm (13.3x10.6") 
           diag: 433mm (17") 
           OpenGL: renderer: NV96 v: 3.3 Mesa 22.0.5 direct render: Yes 
Audio:     Device-1: Intel 6 Series/C200 Series Family High Definition Audio vendor: Gigabyte 
           driver: snd_hda_intel v: kernel bus-ID: 00:1b.0 chip-ID: 8086:1c20 class-ID: 0403 
           Sound Server-1: ALSA v: k6.0.0-6mx-amd64 running: yes 
           Sound Server-2: PulseAudio v: 14.2 running: yes 
Network:   Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: Gigabyte 
           driver: r8169 v: kernel port: d000 bus-ID: 03:00.0 chip-ID: 10ec:8168 class-ID: 0200 
           IF: eth0 state: up speed: 1000 Mbps duplex: full mac: <filter> 
Drives:    Local Storage: total: 689.34 GiB used: 33.32 GiB (4.8%) 
           SMART Message: Unable to run smartctl. Root privileges required. 
           ID-1: /dev/sda maj-min: 8:0 vendor: Western Digital model: WDS240G2G0A-00JH30 
           size: 223.58 GiB block-size: physical: 512 B logical: 512 B speed: 3.0 Gb/s type: SSD 
           serial: <filter> rev: 0000 scheme: GPT 
           ID-2: /dev/sdb maj-min: 8:16 vendor: Samsung model: SSD 870 EVO 500GB size: 465.76 GiB 
           block-size: physical: 512 B logical: 512 B speed: 3.0 Gb/s type: SSD serial: <filter> 
           rev: 2B6Q scheme: GPT 
Partition: ID-1: / raw-size: 457.5 GiB size: 449.25 GiB (98.20%) used: 33.32 GiB (7.4%) fs: ext4 
           dev: /dev/sdb2 maj-min: 8:18 
           ID-2: /boot/efi raw-size: 256 MiB size: 252 MiB (98.46%) used: 282 KiB (0.1%) fs: vfat 
           dev: /dev/sdb1 maj-min: 8:17 
Swap:      Kernel: swappiness: 15 (default 60) cache-pressure: 100 (default) 
           ID-1: swap-1 type: partition size: 8 GiB used: 0 KiB (0.0%) priority: -2 dev: /dev/sdb3 
           maj-min: 8:19 
Sensors:   System Temperatures: cpu: 29.8 C mobo: 27.8 C gpu: nouveau temp: 59.0 C 
           Fan Speeds (RPM): N/A gpu: nouveau fan: 0 
Repos:     Packages: note: see --pkg apt: 3140 lib: 1523 flatpak: 0 
           No active apt repos in: /etc/apt/sources.list 
           Active apt repos in: /etc/apt/sources.list.d/balena-etcher.list 
           1: deb [signed-by=/usr/share/keyrings/balena-etcher-archive-keyring.gpg] https://dl.cloudsmith.io/public/balena/etcher/deb/debian bullseye main
           2: deb-src [signed-by=/usr/share/keyrings/balena-etcher-archive-keyring.gpg] https://dl.cloudsmith.io/public/balena/etcher/deb/debian bullseye main
           No active apt repos in: /etc/apt/sources.list.d/brave-browser-release.list 
           Active apt repos in: /etc/apt/sources.list.d/debian-stable-updates.list 
           1: deb http://deb.debian.org/debian bullseye-updates main contrib non-free
           Active apt repos in: /etc/apt/sources.list.d/debian.list 
           1: deb http://deb.debian.org/debian bullseye main contrib non-free
           2: deb http://security.debian.org/debian-security bullseye-security main contrib non-free
           Active apt repos in: /etc/apt/sources.list.d/microsoft-edge-dev.list 
           1: deb [arch=amd64] https://packages.microsoft.com/repos/edge/ stable main
           Active apt repos in: /etc/apt/sources.list.d/mx.list 
           1: deb https://mirrors.netix.net/mx/MX-Packages/mx/repo/ bullseye main non-free
           2: deb https://mirrors.netix.net/mx/MX-Packages/mx/repo/ bullseye ahs
           Active apt repos in: /etc/apt/sources.list.d/opera-stable.list 
           1: deb https://deb.opera.com/opera-stable/ stable non-free #Opera Browser (final releases)
           Active apt repos in: /etc/apt/sources.list.d/vivaldi.list 
           1: deb [arch=amd64] https://repo.vivaldi.com/stable/deb/ stable main
           Active apt repos in: /etc/apt/sources.list.d/vscode.list 
           1: deb [arch=amd64,arm64,armhf] http://packages.microsoft.com/repos/code stable main
Info:      Processes: 241 Uptime: 22m wakeups: 1 Memory: 7.73 GiB used: 1.9 GiB (24.6%) 
           Init: SysVinit v: 2.96 runlevel: 5 default: 5 tool: systemctl Compilers: gcc: 10.2.1 
           Client: shell wrapper v: 5.1.4-release inxi: 3.3.06 
Boot Mode: UEFI
Thank you in advance!

Jakob77
Posts: 658
Joined: Thu Feb 09, 2023 3:09 am

Re: How to add an working shortcut in the start menu properly?

#2 Post by Jakob77 »

Edit: Sorry, I was in the wrong sub forum. I can't erase the bumb myself. Hope you get it solved. :)

IAMNewbie
Posts: 33
Joined: Fri Feb 10, 2023 3:37 pm

Re: How to add an working shortcut in the start menu properly?

#3 Post by IAMNewbie »

Jakob77 wrote: Sat Mar 04, 2023 3:22 pm Edit: Sorry, I was in the wrong sub forum. I can't erase the bumb myself. Hope you get it solved. :)
I didn't read your reply. I don't know how to solve it.

Thanks!

User avatar
markol
Posts: 415
Joined: Sat Jan 30, 2021 8:33 am

Re: How to add an working shortcut in the start menu properly?

#4 Post by markol »

Right click on the menu icon, select "Edit Applications"
Click on the desired category (probably Utilities) and then click on the "New Item" button. Enter the name, path, icon... and then "Save"

Post Reply

Return to “MX KDE Official Release”