WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Xvesa without WM + dosbox  (Read 2912 times)

Offline Scampada

  • Full Member
  • ***
  • Posts: 164
Xvesa without WM + dosbox
« on: June 29, 2015, 07:26:06 AM »
Hello,
I'm not sure whether it is a regular Linux question or not, but I think Xvesa that is used in TC along with Xorg may have some tweaks, maybe.
I'm using Xvesa to start X without any window manager, and then start dosbox in it; for now I have exec dosbox& in my .xsession and it works.
But, I want to have two options at my hands: run dosbox in fullscreen (works perfect) and run dosbox not in fullscreen, so it would be just a 640x480 box in the center of display (and then I would try to set a background picture for a display and make it fancy-shmancy, ASO).
I can't manage to do this. Dosbox runs in the top left edge of the screen when in non-fulscreen mode; all my attempts using -geometry, --geometry ASO ended in vain. I've found some relevant note of this:

Quote
Usually to run a program within x without a desktop you would

startx <path/to/dir/filename.ft>
Personally I've never done this with mplayer, but a large variety of games which require x can be run in this way, upon exiting the program, you will be returned to the command-line.

Perhaps this will work for you or will help someone with a similar issue.

So, startx /usr/local/bin/dosbox, right?
Sounds good, but doesn't work. Xvesa starts but dosbox doesn't. Maybe it works only for Xorg, or something, I wonder?

So, how can I position a window (well... not a window when there ain't no WM... a region then) before, or after starting it in Xvesa using command line only?
Yet one more question. This definitely is a brutal, regular Linux one, but, sorry... How can I make X server instance shut down when I'm closing dosbox running inside it? (If I started dosbox first and then it started Xvesa... well, it would be obvious. But it's totally contrary.)
The winning entries in UNIX users' hymns competition were 'What's the buzz, tell me what's happening' and 'Strange Thing Mystifying' songs from A.L.Webber's musical.

Tiny Core Linux. Like Gentoo, except Gentoo is easier.

Offline hal9king

  • Newbie
  • *
  • Posts: 49
Re: Xvesa without WM + dosbox
« Reply #1 on: June 29, 2015, 12:08:21 PM »
I did something like this many years ago -- I cheated and used a small window manager -- I believe it was twm -- i.e. one that doesn't start anything by default.
In science, we know ... what we don't know.

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Xvesa without WM + dosbox
« Reply #2 on: June 29, 2015, 12:33:47 PM »
Flwm doesn't start anything by default either.

Offline Scampada

  • Full Member
  • ***
  • Posts: 164
Re: Xvesa without WM + dosbox
« Reply #3 on: June 29, 2015, 01:00:46 PM »
No window borders, no decorations? No boot time increasing? Xvesa boots instantly... with hackedbox it boots much longer. OK I'll try flwm, it was somewhere between optionals... Thanx
The winning entries in UNIX users' hymns competition were 'What's the buzz, tell me what's happening' and 'Strange Thing Mystifying' songs from A.L.Webber's musical.

Tiny Core Linux. Like Gentoo, except Gentoo is easier.

Offline Scampada

  • Full Member
  • ***
  • Posts: 164
Re: Xvesa without WM + dosbox
« Reply #4 on: July 06, 2015, 04:16:23 PM »
I solved this problem by using SDL variable SDL_VIDEO_CENTERED.
The winning entries in UNIX users' hymns competition were 'What's the buzz, tell me what's happening' and 'Strange Thing Mystifying' songs from A.L.Webber's musical.

Tiny Core Linux. Like Gentoo, except Gentoo is easier.