You are not logged in.

#1 2012-08-19 21:09:50

Gen2ly
Member
From: Sevierville, TN
Registered: 2009-03-06
Posts: 1,529
Website

[Solved] .desktop file not being recognized

I've got a .desktop file that I created in ~/.local/share/applications but is not showing up.  I thought I remembered how to do this but apparently forgot.  By putting it in ~/.local/share/applications it should show in the menu, right?  I created this, and made it executable:

[Desktop Entry]
Type=Application
Name=cVLC
GenericName=Media Player
GenericName[ca]=Reproductor multimèdia
GenericName[de]=Medienwiedergabe
GenericName[fr]=Lecteur multimédia
GenericName[it]=Lettore multimediale
GenericName[ja]=メディアプレーヤー
X-GNOME-FullName=Command Line VLC
Comment=Play movies and songs
Icon=vlc
TryExec=clvc
Exec=vlc %U
Terminal=false
Categories=AudioVideo;Audio;Video;Player;TV;
MimeType=video/dv;video/mpeg;video/x-mpeg;video/msvideo;video/quicktime;video/x-anim;video/x-avi;video/x-ms-asf;video/x-ms-wmv;video/x-msvideo;video/x-nsv;video/x-flc;video/x-fli;application/ogg;application/x-ogg;application/x-matroska;audio/x-mp3;audio/x-mpeg;audio/mpeg;audio/x-wav;audio/x-mpegurl;audio/x-scpls;audio/x-m4a;audio/x-ms-asf;audio/x-ms-asx;audio/x-ms-wax;application/vnd.rn-realmedia;audio/x-real-audio;audio/x-pn-realaudio;application/x-flac;audio/x-flac;application/x-shockwave-flash;misc/ultravox;audio/vnd.rn-realaudio;audio/x-pn-aiff;audio/x-pn-au;audio/x-pn-wav;audio/x-pn-windows-acm;image/vnd.rn-realpix;video/vnd.rn-realvideo;audio/x-pn-realaudio-plugin;application/x-extension-mp4;audio/mp4;video/mp4;video/mp4v-es;x-content/video-vcd;x-content/video-svcd;x-content/video-dvd;x-content/audio-cdda;x-content/audio-player;

Any ideas?

Last edited by Gen2ly (2012-08-20 02:31:15)


Setting Up a Scripting Environment | Proud donor to wikipedia - link

Offline

#2 2012-08-19 21:59:01

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: [Solved] .desktop file not being recognized

What window manager or DE are you using?

Offline

#3 2012-08-19 21:59:33

6ng4n
Member
Registered: 2012-02-07
Posts: 84

Re: [Solved] .desktop file not being recognized

I don't know what desktop env. you're using but in KDE it looks OK.Even i've never made it executable.

Edit: Whoops it runs standart vlc

Last edited by 6ng4n (2012-08-19 22:22:15)

Offline

#4 2012-08-19 22:13:39

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: [Solved] .desktop file not being recognized

Typo: "clvc" should be "cvlc".


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#5 2012-08-20 00:20:01

Gen2ly
Member
From: Sevierville, TN
Registered: 2009-03-06
Posts: 1,529
Website

Re: [Solved] .desktop file not being recognized

Oh my god... I can't believe I did that.  Must be dyslexic.  Thanks all.


Setting Up a Scripting Environment | Proud donor to wikipedia - link

Offline

#6 2012-08-20 01:13:21

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: [Solved] .desktop file not being recognized

Don't forget to mark the thread as solved if this indeed solves the problem!


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

Board footer

Powered by FluxBB