Jump to content

Where to put command to execute at startup[solved]


RVDowning
 Share

Recommended Posts

Since this should be run after KDE has loaded, it's sensible to create a .desktop file for it and put it in ~/.kde/Autostart

The contents of the Desktop file should be something like

[Desktop Entry]
Comment=
Comment[en-US]=
Encoding=UTF-8
Exec=kwin --replace &
GenericName=
GenericName[en-US]=
Icon=exec
MimeType=
Name=
Name[en-US]=
Path=
StartupNotify=true
Terminal=false
TerminalOptions=
Type=Application
X-DCOP-ServiceType=
X-KDE-SubstituteUID=false
X-KDE-Username=

Link to comment
Share on other sites

RVDowning:

 

I use an nvidia related startup file with a single line in my ~.kde/Autostart folder. It works just fine :unsure: and looks like this:

 

#!/bin/bash

nvidia-settings --load-config-only

 

Just be sure to save this file as an executable file after placing it in ~.kde/Autostart folder.

 

Hope this helps.

Link to comment
Share on other sites

You may be doing it too soon, before compiz-fusion is fully loaded? You could try using sleep

sleep 10; kwin --replace &

The 10 is a pause in seconds before your command, you can adjust that as needed to allow time for your desktop to load.

Link to comment
Share on other sites

All fixed. The problem was that emerald was not installed. It was not on the pwp dvd and so I had to get it from the online repositories. Once installed all was well. The tiitle bars show up as expected without having to execute any additional command anywhere.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...