How do you make a .Desktop entry run as root?

I know in KDE you add "X-KDE-Username=root" but what do you need to add for Gnome users (there's nothing in the desktop-entry-spec )? So is there a setting for it or do I need to make a script to run the command with gksudo/kdesu depending on the desktop environment?
TIA

i just put on Exec something like that
Exec=gksu -u root /path/to/application      it requires root password
Exec=gksudo /path/to/application      if i want to use my password/no password depends on the way i setup sudoers
Last edited by wonder (2007-05-18 19:56:33)

Similar Messages

  • How do you make a jmf application run on a computer without jmf installed?!

    I can create a jar with a program i made using jmf. It works on my comp, but i realized tht it doesn't work on others computers because they don't have jmf installed. How do i incorperate the jmf in my jar so that it can run on any comp whether or not they have jmf installed.
    Please help me asap, i really need to get this done.
    Thank You

    So here's some more info, Not only have i never used a mac before, I don't really know how to use one, and my girlfriend is at school pretty far away right now, shes not good with computers either. So i don't wanna have to resort to asking her to install jmf on her macbook. If i do have to do that i guess i could get her friend to help her out.
    But i'd still rather get this problem fixed. How do i incorperate jmf with my program, so it runs on all computers. I checked the native folder in SipCommunicator 1 release 2 and 3, but its only one dll file called ShellLink.dll
    I checked everywhere in both of the downloads and i couldn't find any other dlls.
    I must be downloading the wrong thing....
    I downloaded
    SIP Communicator 1.0-alpha2 release: Generic installer for all OSs
    and also
    SIP Communicator 1.0-alpha3 nightly builds: Generic installer for all OSs, Java installation required
    The reason i got the generic installer is because I have a vista, and i want to run this on a mac. I don't have or know any one living near me with a mac, so i need to be able to build it on my comp.

  • How do you make an wizard install into alternate root location???

    Is there a switch or environment variable that I can set before firing off an install script to cause the package to install in an alternate location for the patches and packages being installed? I am trying to use live upgrade to create a clone of my booted OS (Solaris-8) and then wish to add the Gnome package to the alternate boot image. Bringing up the installation wizard always wants to put it in the root partition but I want to do the effect of the '-R /a' switch to patchadd and pkgadd. How can I accomplish this when the installation scripts are on CD-ROM?
    Thanks in Advance
    Charlie Jack

    do you have room to just through the cd contents onto a hard disk then edit the script as needed?

  • How do you make imessage work? The icon is there. You can type in the recipient but are not allowed to hit the send button

    How do you make imessage work? We upgraded to verision5. The icon is there. You can type the message but the send button is not available.

    There is some instability in  iMessage.  It is a versatile and confusing app even though there are so few options in its use. 
    I had issues trying to get iMessage work on both my iPads and my iPhone. 
    ON the iPhone, turning off WiFi service and then trying iMessage fixed the problem.
    On the iPad 2, same thing.  Turning off WiFi service fixed it.
    On the iPad 1, I took a suggestion from zoomzoom and changed the WiFi network configuration on the iPad to use 8.8.8.8 as a DNS server and then use iMessage.  That fixed it.   Now I put the DNS back to default and it still works.
    I suspect the iPod Touch will have the same fix as the iPad.
    If you have a WiFi and 3G iPad or iPhone, try turing off WiFi and see if that fixes it. 
    Why?  (beware, some of this is guesswork)
    iMessage can talk SMS to cellphones and smartphones (that are using the cell-network).  It can also talk Apple iMessage format to iPhones and iPads whether they are on cell-network or on WiFi.  If you are talking to an SMS cellphone, iMessage figures that out and blindly sends your message.  If you are talking to a iOS5 device, iMessage figures that out too, checks to see that they are on-line, and then does something different if they are or are not on-line.  If you type in an email address, and not a phone number, I think iMessage attempts to see if the email address is registered with Apple (or iCloud or whatever) and if it is not, it does something to let you know, possibly by making the Send button not light up. 
    In order to register iMessage and an email, you have to let the iOS device see whatever service it is that iMessage uses.  That is where the problem happenes.  zoomzoom suggested manually setting the WiFi DNS to google's 8.8.8.8 IP address, then run IMessage, and that seemed to fix the problem.  Setting the iOS device to use 3G-only (by turning off WiFi) also fixed the problem.  I suspect going down to StarBucks or McDonalds and using their WiFi would also fix the problem.  Once the problem is fixed, it doesn't seem to come back so I can't test these 'fixes'. 
    To change the DNS on your iPad find your WiFi networks configuration, click on the blue arrow, touch DNS, backspace over the number that is shown, type in 8.8.8.8    Then click on the WiFiNetworks button at the top of the screen.  Now go run iMessage.  After that, you can delete the DNS entry again and leave it blank.  Your iPad will fill it in from the WiFi router when it needs it.

  • How can I make a calender entry that makes a sound when it is its turn?

    How can I make a calender entry that makes a sound when it is its turn?

    Have you even looked at the calendar app? Did you not notice the "Alert" field in the event details when you create a calendar event?

  • My Mac Book Pro has slowed to less than a crawl (possibly from a worm or virus).  How do I make sure it's running at peak efficiency before I complain to comcast

    My Mac Book Pro has slowed to less than a crawl (possibly from a worm or virus).  How do I make sure it's running at peak efficiency before I complain to comcast

    Please answer as many of the following questions as you can. You may already have answered some of them; in that case, there's no need to repeat the answers.
    Restart the router and the broadband device, if they're separate. Any change?
    Run Software Update and install all available updates for OS X or the computer's firmware. Any change?
    If possible, connect to the router with an Ethernet cable and turn off Wi-Fi. Any difference?
    Are any other devices on the network, and if so, are they the same?
    If you can connect to more than one network, are they all the same?
    Are all network applications affected, or only some? If only some, which ones?
    Is networking always the same, or is the problem intermittent?
    Disconnect all other devices from the network. Any change?
    If you're running a MacBook with the lid closed, open the lid. Any difference?
    Start up in safe mode and test. Any difference?
    Start up in Recovery mode. From the OS X Utilities screen, select Get Help Online. A clean copy of Safari will launch. No plugins, such as Flash, will be available. Any difference?
    If possible, turn off Bluetooth and disconnect any USB 3 devices. Any difference?

  • How do you make an array of image icons and then call them?

    How do you make an array of image icons and then call them, i have searched all over the internet for making an array of icons, but i have
    found nothing. Below is my attempt at making an array of icons, but i cant seem to make it work. Basically, i want the image to match the value of the roll of the dice (rollVal)
    Any help would be greatly appreciated, some code or link to tuturial, ect.
    /** DiceRoller.java
    * Roll, print, Gui
    import javax.swing.*;
    public class DiceRoller extends JFrame
         private ImageIcon[] image  ;
         public String[] images = { "empty", "dice1.jpg",
                   "dice2.jpg", "dice3.jpg", "dice4.jpg",
                   "dice5.jpg", "dice6.jpg" };
         public Dice die;
         private int rollVal;
         public int rollNum;
         private JLabel j1;
         public DiceRoller(){
              j1= new JLabel("");
           die =new Dice();
           int rollVal;
           rollVal = die.roll();     
           image = new  ImageIcon[images.length];
         for(int i = 0; i < images.length; i++){
          image[i] = new ImageIcon(images);
         if (image!=null){
              j1.setIcon(image[rollVal]);
         System.out.println("Roll = "+die.roll());

    Demo:
    import java.awt.*;
    import java.net.*;
    import javax.swing.*;
    public class IconExample {
        public static void main(String[] args) {
            EventQueue.invokeLater(new Runnable(){
                public void run() {
                    launch();
        static void launch() {
            try {
                Icon[] icons = new Icon[6];
                for(int i=0; i<icons.length; ++i) {
                    String url = "http://www.eureka-puzzle.be/cast/images/dice" + (i + 1) + ".jpg";
                    icons[i] = new ImageIcon(new URL(url));
                display(icons);
            } catch (MalformedURLException e) {
                throw new RuntimeException(e);
        static void display(Icon[] icons) {
            JPanel cp = new JPanel();
            for(Icon icon : icons) {
                cp.add(new JLabel(icon));
            JFrame f = new JFrame();
            f.setContentPane(cp);
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.pack();
            f.setLocationRelativeTo(null);
            f.setVisible(true);
    }

  • In windows 8 how do you make the bookmarks column "flexible"? I used to be able to make it narrower.

    Windows 8 how do you make the bookmarks column "flexible"?

    Is the problem with the Bookmarks Sidebar -- the one you can open and close by pressing Ctrl+b? It does seem to have a minimum width and won't get narrower than that, but I'm not sure whether you are running into that limitation or whether for some reason you are not getting the resizing arrow when you mouse over the thin border between the sidebar and the page.

  • How do you make Mozilla listen to users and stop FFFFirefox Auto Updating despite being set to NOT auto update?

    I am spitting nails
    After all the STUPID problems outlined here
    https://support.mozilla.org/en-US/questions/999831?esab=a&s=&r=0&as=s
    I set Firefox to stop auto updating,
    Then the other day I installed a new user on my laptop, when they loaded Firefox it auto updated MY version of Firefox.
    Has NOTHING been learnt?
    STUPID STUPID STUPID STUPID STUPID
    So I have 2 questions
    How do you make Mozilla listen to users?
    and how do prevent what happened to me happening again?

    SuperSluether
    Not a millionth, you have only provided 150 answers and I doubt they were all this issue.
    If you don't like it, don't use it.
    If a business took this attitude they would soon be out of business
    Updates help KEEP YOU SAFE
    Sometimes, but in my experience FFirefox updates can really screw up your system, lose you data, mess up your user interface. I have run IT for one of the biggest intranets on the planet and we never allowed even Mictosoft updates until we did User Acceptance Testing and understood the impact of the upgrade. I am a grown up not a child, I have system where I test updates for performance, security and impact, I WILL DECIDE when I want to install it. If Mozilla wants to provide real security updates I would take them but if you look at the link in my OP you will see it said an update was security and it completely messed up.
    Updates add tons of great new features
    Actually with FFirefox in my experience they take more away than they add, things I did not ask them to take, they do not look at my config and leave my settings as they were and then tell me about new options, no they completely screw my productivity as it takes days to figure out how to undo the kwap they have added. Copying the AWFUL Chrome interface is not an improvement, Google has one of the worst UI's on the planet accross all their products.
    Firefox is designed to be customized PER USER, NOT CROSS-SYSTEM
    There are some things that benefit from being per user and some that are per machine, windows has group policies per machine and per user. My OP is telling Mozilla that this is another area where they have "designed" badly, I tell them this so that they improve it and in the vain hope that there is some config setting that will stop this nonsense.
    So SuperSluether you have not really helped, all you seem to say is FO if you do not like it. Good job you do not run a business. With that attitude probably best you do not contribute.

  • How do you make screen shots in OSX v10.6?

    How do you make screen shots with Mac OS 10.6?

    Press the Shift, Command, and 3 keys to capture the whole screen.
    Press the Shift, Command, and 4 keys to capture a draggable part of the screen, or follow it with the spacebar to capture a window.
    Open the PNG on the desktop. Alternatively, combine either of the above with the Control key to put the screenshot onto the clipboard instead of the desktop.
    (126218)

  • How do you make it send an email on a condition? Or automate emails?

    How do you make it automatically send emails or even on a condtiion? (like qty left of inventory is 0)

    As far as making the report emailed conditionally, if the report is an exception report (only showing items with inventory = 0, for example), then you could add this to the report footer to prevent an email from being sent if no exceptions exist (basic syntax):
    WhilePrintingRecords
    dim noEmail as number
    if count({any field}) = 0 then  ' If no records processed...
      noEmail = noEmail / noEmail ' divide by zero failure prevents email from being sent
    end if
    This assumes that the data coming back from the database will only be exception records.  If that is not the case, then you'll have to manually count the number of records with inventory = 0 and use that formula field in the IF statement above.
    The down sides to this technique are that this will cause BOE to not generate anything (not even a blank report), and the status of the run will be Failed...
    HTH,
    Carl

  • How do you make an application open on a specific monitor?

    How do you make an application open on a specific monitor? I have two monitors, and I was able to get Firefox to open on the secondary display always by resizing it with the option or command key [I forget which one] and then quitting it. Now everytime I start it, it opens on the second monitor.
    However, when I try to do the same with QuickTime [when playing videos], it always opens on the primary display no matter what I do with it. How do I make it always open on the secondary display?
    Thanks in advance for any help!

    Thanks for the suggestion, but no, Spaces is not what I want. I have two physical monitors, and simply want an application to always open on one monitor, not be able to switch back and forth between different desktops.

  • How do you make a clip move on a frame

    how do you make a clip move on a frame

    777
    It is not clear what you are asking about. Could explain another way?
    Please start with what version of Premiere Elements you are working and on what computer operating system it is running?
    From what you wrote, I am not sure if you are saying
    a. The Timeline Indicator is stuck and will not more from left to right when you try to play back the Timeline content in the Edit area
    or
    b. You want to create an animation
    or
    c. You are doing a Picture in Picture (PiP) and want the picture (or video insert) to move to different locations within the frames over the course of
    time.
    or
    d. Other
    We will be looking forward to your clarification with details so that we can give you the information that you seek.
    Thank you.
    ATR

  • How do you make a web browser?

    I would like to make a Web Browser of my own but how did you make FireFox?

    Read this:
    http://thepattysite.com/window_sizes1.cfm
    You don't want to try to launch your site to full screen,
    honest, as you'd
    drive your (potential) visitors away.
    Jo
    "Steve Zavodny" <[email protected]> wrote in
    message
    news:escrfa$s7$[email protected]..
    > How do you make a web browser launch your site to a
    specific size or even
    > full screen?
    > Thanks...

  • How do you make superscripts and mathematics in Preview's text annotation?

    When adding text annotations that include scientific notations, how do you make superscripts, e.g. "3.2 × 10^{-23}"?
    Searching Help for 'superscript' turns up nothing, suggesting the command does not exist, as it does under Baseline etc. in iWork. Please tell me this is not the case! If it is, has the situation been improved in the new operating system?
    A related issue: I wish to include other mathematics -- is there a way to include mathematics similar to LaTeX? Might Preview incorporate using latex code in the future, so I can easily type "\exp{-\lambda t}" etc and have the math appear?
    I'm adding text annotations to PDF lecture notes in Preview, basically filling in blanks the instructor has left so students will pay attention in class, and these annotations include superscripts; I wish to format properly.
    Thank you!

    Once you have the circle shape displayed, long press on the border of the circle. Once it is highlighted, drag horizontally or vertically. This should allow you to distort the circle into an ellipse (or the square into a rectangle).
    Hope that helps,
    Frank
    Sketch Engineering

Maybe you are looking for

  • Text in Hebrew has gone really weird in Motion and FCP - please help!

    Hi, I have been working in a project for a long time, and produced hundreds of simple titles in Motion in Hebrew. The font I have used throughout is Arial Rounded MT Bold. In the latest title I added one text object and made it Italic. Since then, al

  • Macbook pro won't boot, stuck on white apple screen

    Noticed today, that my macbook pro won't boot . It gets to the white apple screen with the spinner under the apple logo. It stays like this for a long time without doing anything except spinning. I've powered down and tried to boot up several times.

  • Photo CD's Won't Mount on 14", but will on 12"...

    I have two G4 Ibooks in two different locations, a 12" and a 14". Both are running 10.4.8 with adequate RAM and drive space. Both get regular maintenance (repair permissions, etc.) But the 12" will mount Photo CD's burned on a Windows machine while t

  • Keep getting hacked. Anti-virus/Keylogger?

    I am an active Twitter user and my account is constantly getting hacked despite "very strong" passwords. I am concerned that I may have a virus or a keylogger. I have tried iAntiVirus but is there something better? I found iAntiVirus through CNET whe

  • Table creation query

    I just am trying to clarifying how to create a table under the following scenario: A source table contains 3 customer tables (eg. reg1_cust_table etc). All of them have the same structure - city,state, gender etc etc I want to create a dataware house