The i3 FAQ has migrated to https://www.reddit.com/r/i3wm/. All content here is read-only.
Ask Your Question
0

wine in ubuntu on i3

asked 2013-11-30 23:17:31 +0000

bondorky gravatar image

i don't know how to open the .exe applications that i use through the wine program on my ubuntu computer when i'm using i3. the dmenu shows a number of things which contain the word wine, but none of them opened. thanks for any help anyone can offer

edit retag flag offensive close merge delete

Comments

Consider capitalizing and adding some tags, like `wine` and `dmenu`. I cannot edit your question due to my low carma.

geo909 gravatar imagegeo909 ( 2013-12-01 11:17:35 +0000 )edit

2 answers

Sort by ยป oldest newest most voted
0

answered 2013-12-01 09:58:02 +0000

geo909 gravatar image

updated 2013-12-02 16:52:21 +0000

EDIT: I added Answer 2, check that one first.


Answer 1

I don't have wine so I haven't tried it, but the following should work. Not sure if there's a simpler way. For every windows program appname.exe you need to run, create a file appname like so:

#!/bin/bash 
# File appname
wine "C:\Program Files\appname\appname.exe"

Of course, you should make sure that you put the correct path name to your appname.exe.. Then move this newly created file to /usr/bin:

sudo mv appname /usr/bin

Now appname should appear in dmenu. In fact you should be able to run any script or manually installed program from dmenu this way. Furthermore this should give a command appname in the terminal, too.


Answer 2

Sorry, this is also not tested, but I just read the following lines in ~/.i3/config:

# There also is the (new) i3-dmenu-desktop which only displays applications
# shipping a .desktop file. It is a wrapper around dmenu, so you need that
# installed.
# bindsym $mod+d exec --no-startup-id i3-dmenu-desktop

Unless I'm missing something, the above suggests that if wine creates menu items automatically (again, I don't know), you should be able to access them from i3-dmenu-desktop.

So, do the following.

  • sudo apt-get install i3-dmenu-desktop in case this is not installed by default in ubuntu; I don't have ubuntu, so I don't know
  • Fire up dmenu with mod+d and run i3-dmenu-desktop; an identical-looking dmenu will appear on the top bar
  • Start typing the name of your windows application. If it doesn't appear, forget about this answer. If it appears, then go back to your ~/.i3/config, comment the line about dmenu_run and uncomment the line about i3-dmenu-desktop. That is, your config file should now read:

    # start dmenu (a program launcher)
    # bindsym $mod+d exec dmenu_run
    # There also is the (new) i3-dmenu-desktop which only displays 
    # shipping a .desktop file. It is a wrapper around dmenu, so you need that
    # installed.
    bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
    

If that works and you want to further tweak things around, there's a program called j4-dmenu-desktop which claims to do the same thigs as i3-dmenu-desktop but much faster.

edit flag offensive delete link more

Comments

thank you 'geo909' for such a quick and thorough response. i tried to install i3-dmenu-desktop but the terminal was unable to locate the package, so i've started to implement your first idea. i'll try to work on it some more tomorrow, thanks again for the help

bondorky gravatar imagebondorky ( 2013-12-02 05:51:52 +0000 )edit

Btw, are you sure `i3-dmenu-desktop` is not installed already by default with i3? You could try to skip the first step of answer 2 and try to just run `i3-dmenu-desktop` from the original dmenu or a terminal.

geo909 gravatar imagegeo909 ( 2013-12-02 16:50:12 +0000 )edit

thanks, i couldn't summon up i3-dmenu-desktop with a terminal, and i finally had time and much to my neophyte's delight was able to create a file such as you described, but was unsure what .exe to use to end the path, i need to experiment a little more, thank you again

bondorky gravatar imagebondorky ( 2013-12-06 02:18:21 +0000 )edit

i tried all three .exe files to end the path, one at a time, but still nothing appeared in the dmenu, i checked and the file is a bourne again shellscript and is in /usr/bin. the folder that has the .exe files also has a dozen other files, mostly .dll and .pyd, one .qm one .dat. thanks for trying

bondorky gravatar imagebondorky ( 2013-12-06 03:48:41 +0000 )edit

i found a way to open the wine programs with the terminal, so now i can use them while using i3.

bondorky gravatar imagebondorky ( 2013-12-10 06:08:53 +0000 )edit
0

answered 2015-02-26 02:16:13 +0000

bondorky gravatar image

updated 2015-03-01 03:04:28 +0000

the method i originally found to open .exe apps using wine on i3 was to open a terminal and type 'wine' and then the location of the .exe, for example

wine ~/documents/larousse/setup.exe.

this works fine, but what i find to be a little easier is to use the pcman file manager to open the folder that contains the .exe, right click on the .exe, choose 'open with wine windows program loader', and go through the installation process. after that in the side panel in pcmanfm on the left is a 'applications' option, which has a full menu for the computer, and the wine programs are listed under 'other'. i don't know if this would work in other file managers or not, or if it's dependant on ubuntu, in which case the terminal method would probably still work.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-11-30 23:17:31 +0000

Seen: 791 times

Last updated: Mar 01