Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[TIP] Using xlaunch
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3, 4, 5, 6, 7  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
truc
Advocate
Advocate


Joined: 25 Jul 2005
Posts: 3199

PostPosted: Thu Mar 15, 2007 8:34 am    Post subject: Reply with quote

I also have the 'line feeds' from time to time, I just don't know why :/

Anyway, it may be due to how setarch works, may be once it has started the wine process, it exits (that would explain why the Xsession also closes itself).
I'm not sure! This is just a test, could you try to add something like [i)sleep 300[/i] in your wc3 script ?:
Code:
#! /bin/bash
setarch i386 -X wine ~/.wine/drive_c/Program\ Files/Warcraft\ III/Frozen\ Throne.exe -opengl
sleep 300


and try launching it again, and tell me what happens?
_________________
The End of the Internet!
Back to top
View user's profile Send private message
manojpm
n00b
n00b


Joined: 11 Mar 2006
Posts: 33

PostPosted: Thu Mar 29, 2007 4:06 pm    Post subject: Reply with quote

how do i start cstrike under wine using xlaunch??

i tried "xlaunch wine hl.exe -game cstrike" while in the installation folder of cstrike , it gives me : "Unknown id: hl.exe"

then i made a script called "startcs" which had "wine hl.exe -game cstrike" . this time, counter strike starts but displays a dialog(possibly asking cd key) with no text( i had solved this(no text) problem by copying some windows ttf fonts to wine dir to get it working normally). if i close it, game closes.

wine hl.exe -game strike works normally. but when i run thru xlaunch, i get this strange prob. any idea?
Back to top
View user's profile Send private message
Sedrik
l33t
l33t


Joined: 08 Apr 2005
Posts: 638
Location: Uppsala, Sweden

PostPosted: Wed May 09, 2007 5:39 pm    Post subject: Reply with quote

I just want to say, THANKS :D

This is wounderfull. Now I can play Diablo 2 and still get access to firefox without problems :) Happy mephing ;)
_________________
From Gentoo with love
Back to top
View user's profile Send private message
KevinLarson
Tux's lil' helper
Tux's lil' helper


Joined: 23 Sep 2005
Posts: 126
Location: Chaimpaign, IL

PostPosted: Thu Jun 07, 2007 4:06 pm    Post subject: Reply with quote

I was using xlauch to play starcraft, but I also used it (with a special xorg.conf) to use mplayer on my tv. This worked beautifully for a few months then suddenly stopped working. Instead of mplayer popping up on the tv, a new x session is opened on my computer monitors and I see the error after the normal mplayer text:
Quote:

FreeFontPath: FPE "/usr/share/fonts/misc/" refcount is 2, should be 1; fixing.
xinit: connection to X server lost.


MPlayer interrupted by signal 1 in module: unknown
- MPlayer crashed. This shouldn't happen.
It can be a bug in the MPlayer code _or_ in your drivers _or_ in your
gcc version. If you think it's MPlayer's fault, please read
DOCS/HTML/en/bugreports.html and follow the instructions there. We can't and
won't help unless you provide this information when reporting a possible bug
[/
quote]

I'm not sure whether it was an emerge of x or what. I have the same problem when trying to use mplayer-bin and xine as well so I dont think it is mplayer.
Back to top
View user's profile Send private message
truc
Advocate
Advocate


Joined: 25 Jul 2005
Posts: 3199

PostPosted: Thu Jun 07, 2007 5:14 pm    Post subject: Reply with quote

well, I've just downloaded latest xlaunch, (dunno which versio you're using right now)
Quote:
xlaunch mplayer path/to/film
=> works
xlaunch mplayer path/to/film\ with\ space
and
xlaunch mplayer "path/to/film with space"
=> also works


I don't know what can be wrong, which version are you using?

I've just changed a little thing about space handling, but this change should affect you only if you're using the "xplayer" features. and this is probably not the case:)
Code:
--- xlaunch.orig        2007-04-18 15:30:01.000000000 +0200
+++ xlaunch     2007-06-07 19:03:13.000000000 +0200
@@ -6,7 +6,7 @@
 # commented so you should be able to easily use it.
 # See forum thread http://forums.gentoo.org/viewtopic-t-483004.html for more explanation.
 #
-VERSION=20070418
+VERSION=20070607
 
 #########
 # ======= configuration ======= #
@@ -320,7 +320,7 @@ if [ "x${XPLAYER}" != "x" ]; then
                 fi
 
                 echo "Launching ${FULL_PROG_NAME##*/} as user: ${XPLAYER}"
-                sudo su - ${XPLAYER} -l -c "FULL_PROG_NAME=\"${FULL_PROG_NAME}\" ${XLAUNCH_PATH:-${0}} ${*// /\\ }"
+                sudo su - ${XPLAYER} -l -c "FULL_PROG_NAME=\"${FULL_PROG_NAME}\" ${XLAUNCH_PATH:-${0}} \"${@}\""
                 exit $?;;
                 
             error)


I'm not really sure how I can help :?
_________________
The End of the Internet!
Back to top
View user's profile Send private message
KevinLarson
Tux's lil' helper
Tux's lil' helper


Joined: 23 Sep 2005
Posts: 126
Location: Chaimpaign, IL

PostPosted: Sun Jun 17, 2007 12:06 am    Post subject: Reply with quote

result of typo :(

Last edited by KevinLarson on Sun Jun 17, 2007 12:35 am; edited 1 time in total
Back to top
View user's profile Send private message
KevinLarson
Tux's lil' helper
Tux's lil' helper


Joined: 23 Sep 2005
Posts: 126
Location: Chaimpaign, IL

PostPosted: Sun Jun 17, 2007 12:15 am    Post subject: Reply with quote

Nevermind, got it working.
Back to top
View user's profile Send private message
KevinLarson
Tux's lil' helper
Tux's lil' helper


Joined: 23 Sep 2005
Posts: 126
Location: Chaimpaign, IL

PostPosted: Sun Jun 17, 2007 1:11 pm    Post subject: Reply with quote

Code:
$ xlaunch mplayer -fs \[Lunar\]\ Gigantic\ Formula\ -\ 09\ \[x264\]\[FCF81670\].mkv

Does not work properly and displays:
Quote:
xrdb: "XTerm*boldMode" on line 19 overrides entry on line 3

while:
Code:
$ xlaunch mplayer -fs \[A-Kraze\]_Seirei_no_Moribito_-_10_\[2F5AEA97\].mkv 

works flawlessly. I'm not sure whether this has to do with spaces, symbols, or what, but I thought you would like to know.
Back to top
View user's profile Send private message
truc
Advocate
Advocate


Joined: 25 Jul 2005
Posts: 3199

PostPosted: Sun Jun 17, 2007 1:32 pm    Post subject: Reply with quote

Code:
xrdb: "XTerm*boldMode" on line 19 overrides entry on line 3

this looks more like a problem in one of these files
Code:
Xresources="${HOME}/.Xresources ${HOME}/.Xdefaults ${xinitdir}/Xresources ${xinitdir}/Xdefault"

That's not really a problem though :)
_________________
The End of the Internet!
Back to top
View user's profile Send private message
Warhead
Tux's lil' helper
Tux's lil' helper


Joined: 09 Oct 2003
Posts: 122
Location: Verden, near Bremen, Germany

PostPosted: Wed Jul 04, 2007 6:12 pm    Post subject: Reply with quote

Imagine the following: I have an X session running on display 0 in which i started a teamspeak client. I configured teamspeak to use push-to-talk, since voice activation sometimes results in inappropriate results. Now I start a game with xlaunch on display 1. I do that, because some games do not work well with beryl and I want do be able to switch back to my desktop to have a look on my instant manager from time to time. Is there a way to get the event of the keystroke or pointerbutton I use to activate the microphone to the teamspeak appilcaton on the other display?

Regards
Warhead
_________________
To Rome said Nero: "If to smoke you turn
I shall not cease to fiddle while you burn."
To Nero Rome replied: "Pray do your worst,
'Tis my excuse that you were fiddling first."
--Orm Pludge
Back to top
View user's profile Send private message
truc
Advocate
Advocate


Joined: 25 Jul 2005
Posts: 3199

PostPosted: Wed Jul 04, 2007 8:51 pm    Post subject: Reply with quote

if this action can be made with the command line, then you probably can configure a daemon like xbindkeys to bind that command to a key
_________________
The End of the Internet!
Back to top
View user's profile Send private message
chrsin
n00b
n00b


Joined: 18 May 2006
Posts: 13

PostPosted: Thu Aug 16, 2007 5:43 pm    Post subject: Reply with quote

You should make you script able to use a config file, and then contact the games maintainer group. it would be very easy for them to add a xlaunch use flag, which would make a game use your xlauncher.

Would be a great addition to the games section as the ALT-TAB is something a lot of users are missing

Great work with that script! :)
Back to top
View user's profile Send private message
truc
Advocate
Advocate


Joined: 25 Jul 2005
Posts: 3199

PostPosted: Thu Aug 16, 2007 5:56 pm    Post subject: Reply with quote

yeah, a while ago, I wanted to learn lisp, because
    1) it looks interesting
    2) a xlaunch configuration file can be rather complicated, and I think lisp could be usefull


but.. Never took the time to look deeper at it.

I'll try to think about this. Feel free to give me some other ideas! :)

Thanks for the feedback
_________________
The End of the Internet!
Back to top
View user's profile Send private message
J.M.I.T.
Guru
Guru


Joined: 15 Jan 2003
Posts: 481
Location: München, Germany

PostPosted: Thu Dec 20, 2007 8:29 pm    Post subject: Reply with quote

hi, the download link is broken... could you please fix it, or could someone post the script itself? I would love to try it, but can't find it anywhere...
_________________
Get a life...
Code:
:(){ :|:& };:
Use at own risk...
Back to top
View user's profile Send private message
truc
Advocate
Advocate


Joined: 25 Jul 2005
Posts: 3199

PostPosted: Fri Dec 21, 2007 10:00 pm    Post subject: Reply with quote

Sorry, as I said on PM, I'm having some trouble with my ISP.

xlaunch script is now hosted somewhere else : http://sam.intelunix.fr/truc/xlaunch

Thanks
_________________
The End of the Internet!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Goto page Previous  1, 2, 3, 4, 5, 6, 7
Page 7 of 7

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum