Creating Dir that shows as ROX Application, inode/directory?

For discussions about programming, programming questions/advice, and projects that don't really have anything to do with Puppy.
Post Reply
Message
Author
User avatar
RSH
Posts: 2397
Joined: Mon 05 Sep 2011, 14:21
Location: Germany

Creating Dir that shows as ROX Application, inode/directory?

#1 Post by RSH »

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: Select all

#!/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!
[b][url=http://lazy-puppy.weebly.com]LazY Puppy[/url][/b]
[b][url=http://rshs-dna.weebly.com]RSH's DNA[/url][/b]
[url=http://murga-linux.com/puppy/viewtopic.php?t=91422][b]SARA B.[/b][/url]

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#2 Post by technosaurus »

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
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

Post Reply