FORUM ARCHIVED

Linux: .desktop file (launcher) for Dredmor does not work

Discussion in 'Dungeons of Dredmor General' started by borsook, Aug 27, 2012.

  1. borsook

    borsook Member

    I have a silly problem. I can run DoD under my Linux system if I go to its folder and run the executable manually, but if I try to create a .desktop file for it, clicking on it does just nothing... everything looks fine and I'm at a loss. Here's my .desktop file:

    Code:
    [Desktop Entry]
    Version=1.0
    Type=Application
    Name=Dredmor
    Comment=
    Exec=/home/nick/dredmor/Dredmor-x86
    Icon=
    Path=/home/nick/dredmor
    Terminal=false
    StartupNotify=false
    
     
  2. onesandzeroes

    onesandzeroes Member

    A few quick questions:
    Where did you install Dredmor from? Humble Store, Desura, somewhere else?
    Have you tried installing all the dependencies? You need openAL, SDL, and a couple others. Let me know if you need some help with the exact packages to install.
    Where are you saving the .desktop file? If you save it in
    Code:
    ~/.local/share/applications
    (on Ubumtu at least, I think this can vary a bit by distro) it should show up in your menu automatically.
     
  3. borsook

    borsook Member

    I installed it via steam. (yes, it does include linux files, yay!). I just copied the folder to my home. It works fine is I browse there. But if I create a launcher on desktop it just doesn't start... I use Xubuntu 12.04 btw
     
  4. analogline

    analogline Member

    Hrm, XFCE. I've had that be flaky when trying to create custom launchers when I have used it previously. Can you get it to work if you create a launcher as a menu item (rather than on the desktop)?
     
  5. onesandzeroes

    onesandzeroes Member

    Hmmm, not sure what's going on. Here's my working .desktop file, for reference:

    Code:
    [Desktop Entry]
    Version=1.0
    Type=Application
    Terminal=false
    Name=Dredmor
    Comment=Dungeons of Dredmor
    Exec="/home/username/desura/common/dungeons-of-dredmor/Dredmor-amd64"
    Path=/home/username/desura/common/dungeons-of-dredmor/
    Icon=/home/username/desura/common/dungeons-of-dredmor/ui/magic_gate64.png
    Categories=Game;
    The only difference I can really see is that I've closed off the Path= line with a trailing slash (/). Also, mine is saved in /home/username/.local/share/applications, which is where you put these files in order to have them automatically show up in your applications menus. I'm not sure that double-clicking on the actual .desktop file will launch the application, even if your file is right. It's best to chuck it in .~/.local/share/applications and then try launching the app from the main menu.
     
  6. borsook

    borsook Member

    after I dropped the file in .local/share/applications it works! I do not understand why it does not work from XFCE's desktop but that's no biggy. Thanks everyone for being so helpful!

    BTW - does anyone know where I can get an icon file for Dredmor?