You are not logged in.

#1 2007-12-09 07:02:50

synthead
Member
Registered: 2006-05-09
Posts: 1,337

Creating .desktop files for XFCE's menu

I'm trying to create .desktop files for things I want in the XFCE menu, but I can't seem to get anything to work.  I've tried to replicate the files in ~/.local/share/applications and modify them to my needs, but it doesn't do anything.  Any good way to do this?

Why is it so hard to edit the menu in XFCE?

Offline

#2 2007-12-09 08:54:20

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,365
Website

Re: Creating .desktop files for XFCE's menu

echo $XDG_DATA_DIRS

If that does not have /home/(user)/.local/share in it then putting files there won't work.

In /etc/profile I have

export XDG_DATA_DIRS=$HOME/.local/share

Offline

#3 2007-12-09 09:30:52

synthead
Member
Registered: 2006-05-09
Posts: 1,337

Re: Creating .desktop files for XFCE's menu

I tried putting that into my /etc/profile, but when I logged out/in and started X w/ XFCE, there were several icons missing or wrong scattered all over the UI (panel, menu, desktop, etc.).

Offline

#4 2007-12-09 09:33:29

byte
Member
From: Düsseldorf (DE)
Registered: 2006-05-01
Posts: 2,046

Re: Creating .desktop files for XFCE's menu

That's to be expected. Use

export XDG_DATA_DIRS=$XDG_DATA_DIRS:$HOME/.local/share

instead.


1000

Offline

#5 2007-12-09 09:47:18

synthead
Member
Registered: 2006-05-09
Posts: 1,337

Re: Creating .desktop files for XFCE's menu

Looking good! big_smile

However, I can't get my file to make an entry in the menu.  Here's what I put:

  [Desktop Entry]
Encoding=UTF-8
Type=Application
NoDisplay=true
Name=xmahjongg
Exec=xmahjongg

I saved it as xmahjongg.xml.  I don't know what to use for the MimeType field, it's a video game.  Is it even necessary?

Offline

#6 2007-12-09 10:09:43

byte
Member
From: Düsseldorf (DE)
Registered: 2006-05-01
Posts: 2,046

Re: Creating .desktop files for XFCE's menu

http://standards.freedesktop.org/deskto … atest.html and 'desktop-file-validate your.desktop' help with that.


1000

Offline

#7 2007-12-09 10:40:45

synthead
Member
Registered: 2006-05-09
Posts: 1,337

Re: Creating .desktop files for XFCE's menu

Niiiiice, I'm going to read that when my own battery isn't at 5%.  Time for bed tongue  Thank you very much for all your support tonight.  I'll make sure to pass this knowledge on smile

Offline

Board footer

Powered by FluxBB