Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Desktop
User Name
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.


  Search this Thread
Old 11-23-2008, 12:07 PM   #1
LQ Newbie
Registered: Nov 2008
Posts: 3

Rep: Reputation: 0
passing arguments to binary file called by launcher in GNOME desktop

My distro is Debian Etch 4.0 , proc. AMD64,
Printing server CUPS.

The problem is that status monitor "cngpijmonip4500"
for my printer (original binary from *deb package from Canon Inc.)
works fine calling by command in terminal window (within GNOME-desktop)
and does not work guite properly when is called
as a GNOME desktop menu item.

Let's explain a little bit closer:
- in terminal window it gets correctly printer name
as an argument and every thing is O.K.
Title bar says "Canon iP4500 printer .." so it has received
the printer correctly from CUPS.
Executed (typed) in terminal window command is: cngpijmonip4500 iP4500

- when it is run as an menu item of GNOME desktop command:
Exec=/usr/bin/cngpijmonip4500 iP4500
in file: /usr/share/applications/xxx.desktop
it does not recognize the printer.
Title bar says: "Unknown printer ..."

Maybe it does not parse properly an argument in xxx.desktop
file or maybe there is any delay or something like this
in sequence of binary execution fromwithin
the GNOME desktop. And a client cngpijmonip4500
does not get the correct data from CUPS server.
Or maybe there is something wrong with permissions, but where ?

What is the difference in GNOME between calling binaries
from menu (launcher) and from terminal window ???
Does each of above ways require different permissions ???

Have anybody any suggestions how to fix it ?
Old 12-11-2008, 05:00 PM   #2
Registered: Feb 2004
Location: Olympia, WA
Distribution: SolydK
Posts: 442
Blog Entries: 3

Rep: Reputation: 60
The difference may be in the environment each startup method provides to the running program.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Passing args in terminal window is OK. but isn't when passing in GNOME launcher why? majrys1962 Debian 0 11-18-2008 07:00 PM
Running a command from a launcher (on gnome desktop) Virtuality Linux - Newbie 1 12-17-2007 09:32 AM
Passing a text file to the command line as arguments wimnat Linux - General 2 12-05-2005 09:09 AM
New Launcher in Gnome doesn't appear on the desktop baltho Linux - Software 2 03-28-2005 10:46 PM
Gnome create launcher for binary newbutold Linux - General 5 07-21-2003 02:28 AM > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 03:49 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration