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 Wed 02 Sep 2015, 02:37
All times are UTC - 4
 Forum index » Advanced Topics » Puppy Derivatives
[solved] fatdog64: what is the equivalent to fixmenus?
Moderators: Flash, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [3 Posts]  
Author Message
Uten


Joined: 29 Jan 2008
Posts: 96

PostPosted: Tue 04 Aug 2015, 11:17    Post subject:  [solved] fatdog64: what is the equivalent to fixmenus?
Subject description: How do I update menu after loading a sfs?
 

I'm adapting some of my sfs's to fd64-701.

At the moment I have to questions.
How do I update the menu entries? ( I have *.desktop files in /usr/share/applications/ ). Do I need to add their entries anywhere else?

And as a side question:
Is there a proper way to add startup and shutdown scripts which will be executed when the sfs is loaded/unloaded?

Best regards
Uten

[solution]
If anyone else needs this:
razor-panel is the name of the application.
Menu updates is supposed to happen on the fly. But. as it did not with my sfs, don't know why, but it's probably something I have done wrong. Anyway, this little command line fixed it for now.
Code:

Killall razor-panel && razor-panel &
Back to top
View user's profile Send private message 
step

Joined: 04 May 2012
Posts: 368

PostPosted: Wed 05 Aug 2015, 08:47    Post subject: Re: [solved] fatdog64: what is the equivalent to fixmenus?
Subject description: How do I update menu after loading a sfs?
 

Uten wrote:
I'm adapting some of my sfs's to fd64-701.
And as a side question:
Is there a proper way to add startup and shutdown scripts which will be executed when the sfs is loaded/unloaded?

Make sure to install a recent fatdog-updates-700-noarch-1.txz package from gslapt. refs: Changelog 2015-04-25
Note that fatdog-updates may change many other system files/scripts, so be careful. I believe the only script that's involved in SFS (un)loading is /sbin/load_sfs.sh.
Name your startup/shutdown script /tmp/sfs/autorun.sh and place it in the sfs directory; set executable permissions. Here's a simple template
Code:

#!/bin/sh
# This is /tmp/sfs/autorun.sh
#
# In addition to standard structure, Fatdog64 SFS stores metadata in
# /tmp/sfs. Metadata isn't normally visible as /tmp is usually
# over-mounted and hidden by tmpfs. The metadata are:
# a) /tmp/sfs/autorun.sh. When this script runs it has access to the
#    sfs itself. Parameter $1 tells what is being done on the sfs
#    (load/unload/systemload/systemunload).
#    $2 is the sfs path (/aufs/pup_roxxxx).
# b) /tmp/sfs/msg - the message that is displayed after loading the sfs.
#

case "$1" in
  *unload)
  ;;
  *load)
  ;;
esac

_________________
Fatdog64-700|+Packages|find-n-run|Blue Pup 4|DebianDog+OpenMediaVault
Back to top
View user's profile Send private message 
Uten


Joined: 29 Jan 2008
Posts: 96

PostPosted: Fri 14 Aug 2015, 20:14    Post subject:  

Hi step,

Thanks for this great tip. I'll explore it when I get the time..Surprised)
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [3 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Puppy Derivatives
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0267s ][ Queries: 11 (0.0043s) ][ GZIP on ]