Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sat 25 Oct 2014, 20:01
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
Creating Dir that shows as ROX Application, inode/directory?
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count  
Author Message
RSH


Joined: 05 Sep 2011
Posts: 2420
Location: Germany

PostPosted: Wed 06 Aug 2014, 00:44    Post_subject:  Creating Dir that shows as ROX Application, inode/directory?
Sub_title: SOLVED SOLVED SOLVED
 

Hi.

When I'm creating a directory using Rox right-click function, the preferences shows it as inode/directory, inode/directory.

The RoxApp directories shows up as ROX Application, inode/directory.

How can I create a directory that shows up as ROX Application, inode/directory using a bash script?

Is there a command to create a directory of type ROX Application?

Edit:

Ok, this one is solved.

Somehow Bash is acting different to ROX when creating directories. I remembered my RoxApp Builder that creates already RoxApp directories from within a Bash script.

So this code:
Code:
#!/bin/sh
APPDIR="`dirname "$0"`"

mkdir -p $APPDIR/cde-package
cp -af /usr/local/apps/abiword/.DirIcon $APPDIR/cde-package/

echo '<?xml version="1.0"?>
<AppInfo>
  <Summary>Abiword text editor</Summary>
</AppInfo>
' > $APPDIR/cde-package/AppInfo.xml

echo '#!/bin/bash -a
#------------------------------------------------------------------------------
' > $APPDIR/cde-package/AppRun
chmod 755 $APPDIR/cde-package/AppRun

creates a functional RoxApp directory, which is somehow confusing, since manual copy/insert of AppInfo.xml and AppRun does NOT turn the inode/directory type into a ROX Application type.

However: solved!

_________________
LazY Puppy
RSH's DNA
SARA B.
Back to top
View user's profile Send_private_message 
technosaurus


Joined: 18 May 2008
Posts: 4353

PostPosted: Wed 06 Aug 2014, 01:36    Post_subject:  

it automagically becomes one once you put the AppRun script in it.

got to $HOME/Choices/Templates and create a directory named ROXApp
then add a script inside of $HOME/Choices/Templates/ROXApp named AppRun

Now you should have a right click option to add a new ROXApp

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Off-Topic Area » Programming
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0414s ][ Queries: 12 (0.0041s) ][ GZIP on ]