LXDE and Wine [SOLVED]

All questions and problems regarding LXDE components including LXSession, LXAppearance, GPicView, Leafpad, LXTerminal, Xarchiver, LXNM to be discussed here.

For PCManFM questions, please ask in the dedicated forum below.
Locked
Llama
Posts: 4
Joined: Mon Dec 06, 2010 6:35 pm

LXDE and Wine [SOLVED]

Post by Llama »

Hi,

I can't manage nicely a Win app in LXDE. For instance, I've got this (~/.local/share/applications/RH_Dictionary.desktop), created by KDE Menu Editor:

Code: Select all

    [Desktop Entry]
    Comment=
    Exec=LANG=ru_RU.UTF-8 wine /home/alexey/common/WinApps/random/rhudwcd.exe
    GenericName=Random House Dictionary
    Icon=accessories-dictionary
    Name=RH Dictionary
    NoDisplay=false
    Path[$e]=$HOME/common/WinApps/random
    StartupNotify=true
    Terminal=0
    TerminalOptions=
    Type=Application
    X-KDE-SubstituteUID=false
    X-KDE-Username=
I put it into ~/.config/lxpanel/LXDE/panels/top, like this:

Code: Select all

    Plugin {
        type = launchbar
        Config {
            Button {
                id=/home/user/.local/share/applications/gparted.desktop
            }
            Button {
                id=/home/user/.local/share/applications/RH_Dictionary.desktop
            }
        }
    }
but no, it won't run. gparted, for instance, created by the same KDE Menu Editor, runs fine.

Code: Select all

    [Desktop Entry]
    Categories=GNOME;System;Filesystem;
    Comment=Create, reorganize, and delete partitions
    Exec=kdesu /usr/sbin/gparted %f
    GenericName=Partition Editor
    Icon=gparted
    Name=GParted
    NoDisplay=false
    StartupNotify=true
    Terminal=0
    TerminalOptions=
    Type=Application
    X-KDE-SubstituteUID=false
    X-KDE-Username=
    _X-GNOME-FullName=GParted Partition Editor
Any suggestions?
Last edited by Llama on Mon Dec 13, 2010 12:07 pm, edited 1 time in total.
Marty Jack
Posts: 381
Joined: Mon Mar 23, 2009 5:14 am

Re: LXDE and Wine

Post by Marty Jack »

Two obvious differences are,
the Exec key has an environment variable assignment in it
the Path key has some garbage [$e] and refers to $HOME

I do not remember whether lxpanel supports environment variable assignments in the Exec key. I know this was added to lxsession at some point.
(This is the problem with having all of these pieces as separate little applications. They all have different features and bugs.)

I do not remember whether lxpanel supports the Path key, and even if it did, yours has a value outside anything that the Freedesktop standard defines.
The [$e] and the reference to $HOME are not standard.

I no longer have LXDE and I cannot try this myself.

If you want to experiment with editing your .desktop file, you need to log out and in, because lxpanel reads the .desktop file once when it loads the launchbar.
Llama
Posts: 4
Joined: Mon Dec 06, 2010 6:35 pm

Re: LXDE and Wine

Post by Llama »

Thank you, Marty Jack!

I've made a step or two. Close, but still no cigar.

Found this example.
Modified my ~/.local/share/applications/RH_Dictionary.desktop file:

Code: Select all

    [Desktop Entry]
    Comment=
    Exec=/home/alexey/.local/share/applications/RH_Dictionary.sh
    GenericName=Random House Dictionary
    Icon=accessories-dictionary
    Name=RH Dictionary
    NoDisplay=false
    Path=/home/alexey/common/WinApps/random
    StartupNotify=true
    Terminal=0
    TerminalOptions=
    Type=Application
    X-KDE-SubstituteUID=false
    X-KDE-Username=
It shows tooltip "RH Dictionary", and a nice icon, but nothing else.

~/.local/share/applications/RH_Dictionary.sh file:

Code: Select all

    #!/usr/bin/bash
    cd /home/alexey/common/WinApps/random
    LANG=ru_RU.UTF-8
    exec wine rhudwcd.exe
Started this way,

Code: Select all

    $ bash RH_Dictionary.sh
it works.

Can it be a scripting problem? I'm no expert.
Llama
Posts: 4
Joined: Mon Dec 06, 2010 6:35 pm

Re: LXDE and Wine

Post by Llama »

Scripting it is. #!/bin/bash and a permission to run. Shame on me...

By the way, why does it run

Code: Select all

    $ bash RH_Dictionary.sh
way without a proper permission?
Locked