Sponsored Content
Top Forums Programming Works from console but not when clicked in KDE Post 302115138 by jasonkb on Sunday 22nd of April 2007 06:24:29 AM
Old 04-22-2007
Quote:
My guess would be that it worked but you don't know where it worked. Or that it failed because testDir already exists.
After reading that I did a search and lo and behold, when I execute from the console, testDir is created in the current directory. When executed from KDE, it creates the directory but in ~/ !!!


Quote:
try "perror()"
Thanks very much for pointing me to that function. It's really very useful. It actually tells you why something works or doesn't!

(just to clear things up, I am totally new to system programming being a java programmer... I have dabbled in Fortran but wanted to tackle Unix and C so here I am slaving away with a really really thick book... :-) Thanks for your patience.)

So my next question is:
Why on earth does it begin executing from home when it's clicked from another directory? Seems like a weird thing to do. Is their a function that can test where it was clicked from and to then change to that dir so it is now current?

You guys have been very helpful. Thanks.
Jason.
 

10 More Discussions You Might Find Interesting

1. UNIX Desktop Questions & Answers

Kde 3.0

Hello, i,ve installed suse with kde 3.0, I had never used an X for unix before. So I don't know much. Most things were easy to find, but what anoyes me a lot is that the desktop is larger than mij monitor, so I have to move my mouse to see the rest of the desktop. I've tried to set the... (1 Reply)
Discussion started by: counTnegaTive
1 Replies

2. UNIX for Dummies Questions & Answers

How To...KDE on Solaris 8

I have my shinny new SunFire 280 server with a fresh copy of Solaris 8 installed. I installed the options CD which includes KDE. I can't seem to get it to work. (This is what happens when management gives a Unix box to an x86 Network Admin and says "Figure it out" ) I have played with Mandrake and... (1 Reply)
Discussion started by: RandySmith23
1 Replies

3. What is on Your Mind?

KDE names

I was kinda bored one day, so I renamed my files in KDE. Here are some examples: 1) I renamed my Hard Drive "Komputer" 2) I renamed my Trashcan to "Krap Bin" I'm kinda stuck on those two and I would like some suggestions on other file names. Please help a bored luser! ^_^ (1 Reply)
Discussion started by: gnerd
1 Replies

4. UNIX for Advanced & Expert Users

console /dev/console get image

We are using software (Pegasys) which runs on SunOS 5.8 and reads images from a Philips nuclear camera. The software is designed to run from the console. I need to be able to capture the images it produces on the display. The caveat is that I cannot use the X Windows display because the X Server... (3 Replies)
Discussion started by: sreyes27
3 Replies

5. UNIX for Dummies Questions & Answers

KDE on Solaris ?

I want to install KDE on my Solaris PC , I downloaded solaris companion CD and question is there KDE available to install because I want that all my households work on one stable PC , but one condition is they must have K3B for burning files , and some GUI torrent program for downloading like Vuze... (2 Replies)
Discussion started by: solaris_user
2 Replies

6. Shell Programming and Scripting

how to access console of a switch having rj45 on switch side to db 9 female on pc side console cable

hi, how to access console of a switch having rj45 on switch side to db 9 female on pc side console cable which needs to be connected to one console server having rj11 on its side and db 9 female on other end.i.e. on switch side,console cable has rj45 and db 9 pin female connector on other side of... (1 Reply)
Discussion started by: pankajd
1 Replies

7. UNIX for Dummies Questions & Answers

Windows to Linux remote console using VNC brings up blank console screen with only mouse pointer

:confused:Hi This was installed on the Linux box a few weeks back by a guy that no longer works for us. All worked fine until last week. Now when we connect its just a blank screen with no icons. I get a whole bunch of errors when starting the service too: Tue Feb 23 14:29:45 2010 ... (1 Reply)
Discussion started by: wbdevilliers
1 Replies

8. AIX

SSH login hangs, serial console works

Server, running AIX 6.1 developed strange problem when logging in via SSH -- ssh client hangs without any error. It is possible to run commands on server, using ssh ("ssh servername ls -l" is OK) It is possible to log in normally, using serial console connected to server. It was possible to... (2 Replies)
Discussion started by: ivar.zarans
2 Replies

9. Solaris

Trap signal on Window Manager "X" button clicked?

Well, my first post... thanks in advance! Can applications be notified of the X Window close (with "X" button) so the signal handler can run a cleanup process method? About the app: built with GNU C/C++ on Solaris 10, with WxWidgets. It is launched by a shell script as a background task. The... (2 Replies)
Discussion started by: HandsOGold
2 Replies

10. UNIX for Dummies Questions & Answers

IP Console Vs Serial console.

Hi Gurus, Can some one explain me the difference between a IP console and a serial console. (1 Reply)
Discussion started by: rama krishna
1 Replies
KDEINIT4(8)							 KDE User's Manual						       KDEINIT4(8)

NAME
kdeinit4 - Start all other KDE programs and kdeinit loadable modules (KLMs). SYNOPSIS
kdeinit4 [--help] [--no-fork | --no-kded | --suicide] [+programs | programs] DESCRIPTION
kdeinit4 is a process launcher somewhat similar to the famous init used for booting UNIX. It executes KDE programs and kdeinit loadable modules (KLMs) starting them more efficiently. Using kdeinit4 to launch KDE applications makes starting a typical KDE application a couple times faster and reduces memory consumption by a substantial amount. kdeinit4 is linked against all libraries a standard KDE application needs. With this technique, starting an application becomes much faster because now only the application itself needs to be linked whereas otherwise both the application as well as all the libaries it uses need to be linked. DISADVANTAGES
The process name of applications started via kdeinit4 is "kdeinit4". This problem can be corrected to a degree by changing the application name as shown by ps. However, applications like killall will only see kdeinit4 as the process name. To workaround this, use kdekillall (from kdesdk/scripts) for applications started via kdeinit4. OPTIONS
--help Show help about options --no-fork Do not fork, i.e. do not exit until all the executed programs ends --no-kded Do not start kded --suicide Terminate when no KDE applications are left running +programs runs the programs handling requests programs runs the programs without handling requests USAGE
A standard way to run this program is by simply specifying the following command at the prompt kdeinit4 program or kdeinit4 +program FILES
/tmp/kde-$USER/kdeinit4_$INSTANCE ... ENVIRONMENT VARIABLES
$HOME Specifies the home directory of the current user $KDE_HOME_READONLY Specifies if the home directory of the current user is read only $KDE_IS_PRELINKED If set, tells kdeinit4 that the KDE programs are pre-linked. (Prelinking is a process that allows you to speed up the process of dynamic linking.) $KDE_DISPLAY If set, tells kdeinit4 that it is running on a KDE desktop. SEE ALSO
kded, kdekillall BUGS
There are probably tons of bugs. Use bugs.kde.org: http://bugs.kde.org to report them. AUTHORS
Waldo Bastian <bastian@kde.org>, Mario Weilguni <mweilguni@sime.com>, Lubos Lunak <l.lunak@kde.org>. 2008-10-03 KDEINIT4(8)
All times are GMT -4. The time now is 12:26 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy