You are not logged in.

Dear visitor, welcome to KDE-Forum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Saturday, September 25th 2004, 10:21am

Trying to get apps to open to a default location.

I have 2 screens that are put together as an extended desktop. I would like to have applications that run under KDE to defualt to my right monitor when opening them up. Also when starting KDE up the kde splash screen starts on the left screen and I would like it to startup on the right screen.

Is there any way to fix this?

m4ktub

Intermediate

Posts: 257

Location: Lisbon, Portugal

Occupation: Software Engineer

  • Send private message

2

Saturday, September 25th 2004, 4:25pm

I'm not sure but I think that the in KDE 3.3 each window can have specific settings. So maybe you can choose in wich desktop it appears.

I'm still using 3.2 so I can't confirm :-(

3

Saturday, September 25th 2004, 7:33pm

Aren't those just two different X displays? That is, can't you just do the following?
[code:1] DISPLAY=:1 someprogram [/code:1]

4

Sunday, September 26th 2004, 2:15am

Quoted

Original von epte

Aren't those just two different X displays? That is, can't you just do the following?
[code:1] DISPLAY=:1 someprogram [/code:1]


This interests me... how do I do this? Where do I edit to get the program to go to a specific screen like that?

5

Sunday, September 26th 2004, 8:38pm

The example I gave is assuming that you are starting the program on the command line. Basically, make sure the DISPLAY variable is set to whatever the x dsplay number is of the monitor you are tring to reach (options are probably :0 and :1). Then start your program. If you wanted later to have a GUI button to click on, then when specifying the command for the button, you could probably include setting the DISPLAY variable in the properties of the application button. But my druthers would be trying it on the command line first to make sure that it works somehow.

So, for example, if the X display I want to send to is number 1, and I want to start mozilla-firefox on it, I might try from a command prompt (i.e. terminal window):

[code:1] DISPLAY=:1 mozilla-firefox [/code:1]

6

Sunday, September 26th 2004, 8:41pm

Noticing that you wanted this to be a default location, assuming that the test run worked, it would be possible to set the DISPLAY variable in your .bash_profile. I'm not sure if that would have the desired effect (would too much go to the alternate screen?) but it would be worth a shot.

7

Monday, September 27th 2004, 4:40am

Quoted

Original von epte

Noticing that you wanted this to be a default location, assuming that the test run worked, it would be possible to set the DISPLAY variable in your .bash_profile. I'm not sure if that would have the desired effect (would too much go to the alternate screen?) but it would be worth a shot.


I ran into some issues when I tried doing that command... it seems that xinerama is causing one issue... so I turned off the KDE xinerama support and got a second issue.

When xinerama was enabled and window placement support is on... most programs actually default to the 1st window... (display 0) Which is good.

When I tried to use the command you gave to switch the display the app started on it would only defualt to the xineram defualt.. in other words they would only open up on the right monitor, display 0.

When KDE xinerama support was disabled the programs would defualt to display 1... and when I trired to use that command they would *still* defualt to display 1 instead of going to display 0 with command display=:0 /usr/local/netscape/netscape (display 1 being the secondary monitor on the left of the primary monitor)

Which looks to mean that the command you gave me is not working.

Further some apps would still defualt to display 0 even after xinerama was turned off. One of these excpetions was XMMS. And that app would only open on to display 0 even if I tried to force it using display=:1 xmms

Here's my XF86Config file if that helps you any:

www.geocities.com/claudetyler/XF86Config.html

Thanks for your help!