This forum has been archived. All content is frozen. Please use KDE Discuss instead.

How to start and application without window borders on a bash script

Tags: None
(comma "," separated)
jucas_lo
Registered Member
Posts
3
Karma
0
Hi I need to start an application (VLC) using a bash script, but I really need to be able to launch it without window borders.

I'm able to remove the borders, by right-clicking in the window title, then Advanced->No borders.

But I need to be able to di this from command line.

I tried kstart but I didn't see any option regarding the window borders

I'm using Opensuse 10.3

thanks!
mipwrangler
Registered Member
Posts
4
Karma
0
I'm not an expert, but I have konsole windows open w/o borders as part of my kwin session. Those settings seem to be stored in .kde/share/config/session. From what I can tell, the files kwin_* define window classes that are then referenced by the other _* files. The key that seems to store whether or not a border is used is:

Code: Select all
userNoBorder1=true


Where "1" is the index of the window class being defined and is associated with key:

Code: Select all
resourceClass1=konsole
in my case.

I'm not sure how to make use of this when launching a command directly, but it shows some evidence that kwin has the capability to do what you want.

Hopefully this is of some use - cheers!
jucas_lo
Registered Member
Posts
3
Karma
0
thanks! will try that right away!
jucas_lo
Registered Member
Posts
3
Karma
0
I'm still unable to find the solution :-(
User avatar
anda_skoa
KDE Developer
Posts
783
Karma
4
OS
Try starting with kstart

Cheers,
_


anda_skoa, proud to be a member of KDE forums since 2008-Oct.
User avatar
Hans
Administrator
Posts
3304
Karma
24
OS
Would it be OK if VLC always start without window borders? Then you can set a special window/application setting for VLC: right click on window border -> Advanced -> Special Application Settings...
In the popup dialog: Preferences tab -> check "No border" -> choose e.g. "Apply Initially" -> check checkbox to the right.

Before you click on "OK", take a look in "Window" and "Window Extra" tab to see that everything looks correct.

You can change this later in System Settings -> Window Behavior -> Window-Specific.


Problem solved? Please click on "Accept this answer" below the post with the best answer to mark your topic as solved.

10 things you might want to do in KDE | Open menu with Super key | Mouse shortcuts


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], ourcraft