Fedora Linux Support Community & Resources Center
Old 30th January 2017, 02:53 AM
dannybpng Offline
Registered User
Join Date: Oct 2004
Location: Papua New Guinea
Posts: 2
fc23 dolphin .desktop file execution failing

I have a bunch of bash scripts that I want to make available to my coworkers who cannot work at the command line. Dolphin lets you drag and drop files and directories onto .desktop files which pass the file names to my scripts. The names of the desktop files describe the available actions; kind of like a quick and dirty, yet flexible, menu of actions. From a split dolphin window I want to drag and drop files or folders in the left window to .desktop folders in the right window.

It seems that dolphin does not process the Exec key in a .desktop file to the specifications. I want to pass command line arguments to my bash shell scripts via the Exec key string. While running dolphin I drag-and-drop a directory onto the desktop file and it runs the script passing the directory path to the script via the %f (%F) argument. Here is what happens.

The .desktop file with this Exec key works. Up comes a terminal window and the command runs.
Exec=slgsync /home/distributions/SaveLongGod %f
This Exec key does not. All that happens is a new entry shows on the Task Panel for several seconds and then goes away. Nothing runs.
Exec=slgsync -x /home/distributions/SaveLongGod %f
Here is the full .desktop file content that works
[Desktop Entry]
Comment[en_US]=Copy and delete files from the drive to match SLG master
Comment=Copy and delete files from the drive to match SLG master
Exec=slgsync /home/distributions/SaveLongGod %f
GenericName[en_US]=Synchronize SLG to a drive
GenericName=Synchronize SLG to a drive
Name[en_US]=SLG Sync to Drive
Name=SLG Sync to Drive
I have tried this with other standard Linux commands and end up with the same problem. Without any "-something" argument they work and with any "-something" argument they don't.

I have seen samples of desktop files with Exec command line argument posted on fedoraforum and wonder why theirs work and mine do not. Here is one:
Exec=bash -c 'sleep 5 && /usr/local/bin/trackpad-options'
This would not work on my system (even if I had the specified program) as the "-c" throws everything off.

Any ideas as to why this does not work or what I'm doing wrong would be appreciated.
Reply With Quote

desktop, dolphin, execution, failing, fc23, file

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Die Nautilus die! FC23 - How to change to another file manager completely? luminarycrush Using Fedora 18 4th December 2016 09:43 AM
Where the heck is core dump file in FC23? rickyzhang Using Fedora 4 22nd January 2016 06:28 PM
Dolphin error when try to delete file... Raveni Using Fedora 0 27th November 2013 03:33 PM
File execution question Socrates440 Using Fedora 2 29th May 2012 08:40 AM
file execution aquarianutsav Linux Chat 1 1st February 2010 04:29 PM

Current GMT-time: 13:19 (Wednesday, 16-08-2017)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat