Sponsored Content
Top Forums Programming Works from console but not when clicked in KDE Post 302115175 by jasonkb on Sunday 22nd of April 2007 11:14:54 PM
Old 04-23-2007
Quote:
I suggest you look at what you are trying to do and work out is creating a directory in the same directory as the program a good idea?
Well I guess this is a problem. I don't have a specific thing that I am trying to do- just learning how all this works for now, with the unfortunate beginning from a Java developers perspective (there are some major differences although much is similar). If I executed a Java application from clicking on it, the current directory is the execution dir, and it was simply possible to grab the execution path. However what you have said makes real sense- what if two people run at the same time??? Can't have two separate testDir. They would need separate directories to put results into located in their home directory. But say that the program had config files it had to read in-would make sense to put them in the same directory as the executable...

Seeing as I am not anywhere near that level yet to even begin thinking of these matters or working on my app I am writing no-brainers to learn how functions for the Unix environment work.

Still leaves me with the problem of determining where the program is actually located so I could read in config files... :-( I have used make and make install for other programs before. Can one rely on the installation directory being constant on all Unix systems should make be used? If so I'll find some stuff to read up on it. That way I could hard code the installation directory into the app... Much to learn... :-| I sense some frustration in your last post, sorry if these noob questions are getting on your nerves. If you have any tutorials on say program design in the Unix environment, you can post them I'll read them to hopefully ask more sensible questions.

Cheers
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
cups-config(1)							    Apple Inc.							    cups-config(1)

NAME
cups-config - get cups api, compiler, directory, and link information. SYNOPSIS
cups-config --api-version cups-config --build cups-config --cflags cups-config --datadir cups-config --help cups-config --ldflags cups-config [ --image ] [ --static ] --libs cups-config --serverbin cups-config --serverroot cups-config --version DESCRIPTION
cups-config is the CUPS program configuration utility. It should be used by application developers to determine the necessary command-line options for the compiler and linker, as well as determining installation directories for filters, configuration files, and drivers. OPTIONS
--api-version Displays the current API version (major.minor). --build Displays a system-specific build number. --cflags Displays the necessary compiler options. --datadir Displays the default CUPS data directory. --help Displays the program usage message. --image When used with --libs, adds the CUPS imaging library to the list of displayed libraries. --ldflags Displays the necessary linker options. --libs Displays the necessary librarys to link to. --serverbin Displays the default CUPS binary directory, where filters and backends are stored. --serverroot Displays the default CUPS configuration file directory. --static When used with --libs, shows the static libraries instead of the default (shared) libraries. --version Displays the full version number of the CUPS installation (major.minor.patch). SEE ALSO
http://localhost:631/help COPYRIGHT
Copyright 2007-2013 by Apple Inc. 23 October 2008 CUPS cups-config(1)
All times are GMT -4. The time now is 10:11 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy