VectorLinux
August 29, 2014, 08:09:05 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Visit our home page for VL info. To search the old message board go to http://vectorlinux.com/forum1. The first VL forum is temporarily offline until we can find a host for it. Thanks for your patience.
 
Now powered by KnowledgeDex.
   Home   Help Search Login Register  
Please support VectorLinux!
Pages: 1 [2] 3 4 ... 6
  Print  
Author Topic: VL-LIGHT Dev thread  (Read 48714 times)
caitlyn
Packager
Vectorian
****
Posts: 2874


WWW
« Reply #15 on: January 26, 2008, 12:20:29 pm »

In VL Light Alpha 1.6, using JWM and pcmanfm to manage the desktop, vl-hot icons pop up on the desktop when a device is inserted. The unmount one does work, but the other launcher gives error "Command not found".

You can navigate to the mount point and access it, so I bet it's just a matter of modifying vl-hot's desktop launcher to use pcmanfm to open the drive.

Very nice.  JWM is an excellent lightweight wm choice in any case.  Where is this alpha of which you speak?  I'd like to download it.
Logged

eMachines EL-1300G desktop, 1.6GHz AMD Athlon 2650e CPU, 4GB RAM, nVidia GeForce 6150 SE video
CentOS 6.5 (will try VL64-7.1 soon)

Toshiba Satellite A135-S4727,  Intel Pentium T2080 / 1.73 GHz, 2GB RAM, Intel GMA 950

HP Mini 110 netbook, 1.6GHz Intel Atom CPU, 2GB RAM, Intel 950 video, VL 7.1
nightflier
Administrator
Vectorian
*****
Posts: 4022



« Reply #16 on: January 26, 2008, 01:25:33 pm »

Uelsk8s has been cranking out alphas quickly lately. Latest is:
http://vectorlinux.osuosl.org/Uelsk8s/iso-test/VL5.9-Light-A1.6.iso
I wouldn't be surprised if there was another version this weekend.
Logged
caitlyn
Packager
Vectorian
****
Posts: 2874


WWW
« Reply #17 on: January 26, 2008, 01:35:16 pm »

Uelsk8s has been cranking out alphas quickly lately. Latest is:
http://vectorlinux.osuosl.org/Uelsk8s/iso-test/VL5.9-Light-A1.6.iso
I wouldn't be surprised if there was another version this weekend.

Thanks!  eauster also pointed me to it in another thread.  Download in progress....
Logged

eMachines EL-1300G desktop, 1.6GHz AMD Athlon 2650e CPU, 4GB RAM, nVidia GeForce 6150 SE video
CentOS 6.5 (will try VL64-7.1 soon)

Toshiba Satellite A135-S4727,  Intel Pentium T2080 / 1.73 GHz, 2GB RAM, Intel GMA 950

HP Mini 110 netbook, 1.6GHz Intel Atom CPU, 2GB RAM, Intel 950 video, VL 7.1
lagagnon
Global Moderator
Vectorian
*****
Posts: 1922



WWW
« Reply #18 on: January 26, 2008, 04:32:36 pm »

My notes on the A1.6 release:

1) abiword error: libgnomeprintui-2.2-so.2 does not exist
2) jwm: Start Run ... does not work - and its because fbrun is not installed.
3) at login page "Start Fluxbox" does not work, because fluxbox not installed.
4) xfe file manager: top of its window lies above the screen, so cannot easily close, minimize or expand it
5) mc in xterm is almost unreadable. Something messed up with the colours or xterm settings? When I use "xterm -rv" it works just fine!
6) the normal user does not have permission to use "locate". That works in VL5.9 -

So far so good. Only 34.1MB used RAM with xterm at first boot. Tht's great for low end machines. About 40% of what xfce uses in VL5.9
« Last Edit: January 26, 2008, 04:47:49 pm by lagagnon » Logged

"As people become more intelligent they care less for preachers and more for teachers". Robert G. Ingersoll
easuter
Global Moderator
Vectorian
*****
Posts: 2160



« Reply #19 on: January 26, 2008, 04:44:11 pm »

Quote
1) abiword error: libgnomeprintui-2.2-so.2 does not exist

Fixable with

Code:
slapt-get --install libgnomeprint libgnomeprintui
Logged

nightflier
Administrator
Vectorian
*****
Posts: 4022



« Reply #20 on: January 26, 2008, 04:55:40 pm »

xfe title bar out of reach: right-click the panel entry for it, select move and drag it down. Next launch it will be on screen.

mc: this color issue goes way back. My workaround is rm -rf ~/.mc When launched, mc creates a new one and uses standard colors.
Logged
lagagnon
Global Moderator
Vectorian
*****
Posts: 1922



WWW
« Reply #21 on: January 27, 2008, 06:27:35 pm »

My second round of notes re release A1.6:

-there are a lot of installed packages for which there are no jwm menu entries. These include:

adie, fox calculator, gftp, gnumeric, mplayer, xine, gucharmap, vasmcc, nmapfe.

There may well be others.

BTW do we intend to trim more fat or leave it at 3XX MB? For instance, there are things in there, only two I noticed quickly that could go: gphoto2 (there is no GUI digital camera program to go with it??), the info system, amongst other stuff.But it is a lot of work to go through eall the packages as well as /usr/bin /usr/sbin etc....

Logged

"As people become more intelligent they care less for preachers and more for teachers". Robert G. Ingersoll
uelsk8s
Administrator
Vectorian
*****
Posts: 2504



« Reply #22 on: January 27, 2008, 09:29:15 pm »

I think we are done trimming fat. I would like to get the packages into the menu at this point so we can test them and see what is missing.
I would like to get gtkam in there also.

A1.7 is up here: http://vectorlinux.osuosl.org/Uelsk8s/iso-test/VL5.9-Light-A1.7.iso

Thanks,
Uelsk8s
Logged
nightflier
Administrator
Vectorian
*****
Posts: 4022



« Reply #23 on: January 28, 2008, 05:51:43 am »

A1.7: I'm working on the menu.

Had to install pcmanfm from the CD afterwards. I left it checked during install and gslapt showed it as installed but I could not find it on the drive.
Logged
nightflier
Administrator
Vectorian
*****
Posts: 4022



« Reply #24 on: January 28, 2008, 11:21:18 am »

mplayer will not launch, missing libSDL-1.2.so.0
installed package SDL_net
now missing libopenal.so.0
installed package openal
works now
Logged
nightflier
Administrator
Vectorian
*****
Posts: 4022



« Reply #25 on: January 28, 2008, 11:31:12 am »

New config file for JWM: Paste the following content into your ~/.jwmrc file and restart JWM.

Code:
<?xml version="1.0"?>
<!-- This file controls the behavior of JWM. Modified by nightflier for Vector Linux. Edit with care. -->

<JWM>

    <!-- The root menu, if this is undefined you will not get a menu. -->
   <!-- Additional RootMenu attributes: onroot, labeled, label -->
   <RootMenu height="20">
      <!-- Addititional Menu attributes: height, labeled -->
      <Program label=" Run.. " icon="/usr/share/icons/Vista-Inspirate/scalable/apps/gnome-run.png">fbrun</Program>
      <Program label=" Terminal" icon="/usr/share/icons/Vista-Inspirate/scalable/apps/terminal.png">xterm</Program>
      <Program label=" XFE File Manager" icon="/usr/share/icons/Vista-Inspirate/scalable/filesystems/folder.png">xfe</Program>
      <Program label=" PCMan File Manager" icon="/usr/share/icons/Vista-Inspirate/scalable/apps/file-manager.png">pcmanfm</Program>
      <Program label=" Web Browser" icon="/usr/share/icons/opera.png">opera</Program>
      <Program label=" Text Editor" icon="/usr/share/icons/Vista-Inspirate/scalable/apps/gedit.png">xfw</Program>
      <Separator/>
      <Menu label="Office" icon="">
<Program label=" Abiword Word Processor" icon="/usr/share/icons/Vista-Inspirate/scalable/apps/abiword.png">/usr/bin/abiword</Program>
<Program label=" Gnumeric Spreadsheet" icon="/usr/share/pixmaps/gnome-gnumeric.png">/usr/bin/gnumeric</Program>
<Program label=" Adie Text Editor" icon="/usr/share/pixmaps/fox-adie.png">/usr/bin/adie</Program>
      </Menu>
      <Menu label="Multimedia" icon="">
         <Program label=" XMMS Audio Player" icon="/usr/share/icons/Vista-Inspirate/scalable/mimetypes/sound.png">xmms</Program>         
         <Program label=" XINE Media Player" icon="/usr/share/icons/Vista-Inspirate/scalable/apps/xine.png">xine</Program>         
         <Program label=" ALSA Sound Mixer" icon="/usr/share/icons/Vista-Inspirate/scalable/apps/kmix.png">xterm -bg black -fg white alsamixer</Program>         
         <Program label=" x264 Video Encoder" icon="/usr/share/icons/video.png">x264_gtk_encode</Program>
      </Menu>
      <Menu label="Graphics" icon="">
         <Program label=" Mtpaint Paint Program" icon="/usr/share/icons/Vista-Inspirate/scalable/apps/looknfeel.png">mtpaint</Program>
      </Menu>
      <Menu label="Utilities" icon="">
<Program label=" FOX Calculator" icon="/usr/share/pixmaps/fox-calc.png">/usr/bin/calculator</Program>
         <Program label=" Shutterbug Screen Capture" icon="/usr/share/pixmaps/fox-shutterbug.png">shutterbug</Program>
         <Program label=" PathFinder File Explorer" icon="/usr/share/icons/Vista-Inspirate/scalable/apps/gnome-folder.png">PathFinder</Program>
         <Program label=" Xclock Desktop Clock" icon="/usr/share/icons/Vista-Inspirate/scalable/apps/clock.png">xclock</Program>
         <Program label=" Xmag Magnifier" icon="/usr/share/icons/Vista-Inspirate/scalable/apps/gnome-searchtool.png">xmag</Program>
         <Program label=" Xkill Process Terminator" icon="/usr/share/icons/Vista-Inspirate/scalable/apps/panel-force-quit.png">xkill</Program>
      </Menu>
      <Menu label="Games" icon="">
             <Program label=" Xgalaga" icon="/usr/share/icons/xgalaga.png">xgalaga</Program>
           </Menu>
      <Menu icon="" label="Network">
         <Program label=" Opera Web Browser" icon="/usr/share/icons/opera.png">opera</Program>
         <Program label=" Dillo Web Browser" icon="/usr/share/icons/dillo.png">dillo</Program>
<Program label=" Pidgin Instant Messenger" icon="/usr/share/icons/pidgin.png">pidgin</Program>
         <Program label=" Gftp FTP Client" icon="/usr/share/pixmaps/gftp.png">/usr/bin/gftp</Program>
         <Program label=" VLSamba Network Mounter" icon="/usr/share/icons/samba.png">/sbin/vlsmbmnt</Program>
<Program label=" Nmapfe Security Scanner" icon="/usr/share/icons/Vista-Inspirate/scalable/apps/gnome-searchtool.png">nmapfe</Program>
      </Menu>
      <Menu label="System" icon="">
<Program label=" Gslapt Package Manager" icon="/usr/share/icons/gslapt.png">/sbin/vsuper "/usr/sbin/gslapt"</Program>
      <Program label=" VASMCC System Administration" icon="/usr/share/icons/vasm.png">/sbin/vsuper "vasmCC"</Program>
      <Program label=" VASM System Administration" icon="/usr/share/icons/Vista-Inspirate/scalable/apps/gnome-settings.png">/sbin/vasm</Program>
<Program label=" Vleasytables Firewall" icon="/usr/share/icons/cop.png">/sbin/vsuper "vleasytables"</Program>
         <Program label=" Htop Process Viewer" icon="/usr/share/icons/htop.png">xterm -bg black -fg white htop</Program>
         <Program label=" System Profiler and Benchmark" icon="/usr/share/icons/hardware.png">hardinfo</Program>
         <Program label=" Xterm Terminal" icon="/usr/share/icons/Vista-Inspirate/scalable/apps/terminal.png">xterm</Program>
         <Program label=" Root Terminal" icon="/usr/share/icons/Vista-Inspirate/scalable/apps/kxconfig.png">/sbin/vsuper "xterm"</Program>
         <Program label=" Edit JWM" icon="/usr/share/icons/executable.png">xfw ~/.jwmrc</Program>
       </Menu>
      <Separator/>
      <Menu label="Quit">
          <Restart label=" Restart JWM" icon="/usr/share/icons/restart.png"/>
          <Exit label=" Log Out" confirm="false" icon="/usr/share/icons/close.png"/>
          <Program label=" Reboot" icon="/usr/share/icons/reload.png">sudo /sbin/shutdown -t3 -r now</Program>
          <Program label=" Shutdown" icon="/usr/share/icons/exit.png" >sudo /sbin/shutdown -t3 -h now </Program>
      </Menu>
   </RootMenu>
   <Group>
      <Class>Pidgin</Class>
      <Option>sticky</Option>
   </Group>

   <Group>
      <Name>gkrellm2</Name>
      <Option>nolist</Option>
   </Group>

   <Group>
      <Name>rxvt</Name>
      <Option>vmax</Option>
   </Group>

   <!-- Additional tray attributes: autohide, width, border, layer, layout -->
   <Tray  x="0" y="-1" height="32">

    <!-- Additional TrayButton attribute: label -->
        <TrayButton label="Start" icon="/usr/share/icons/ROX-nuvola/apps/vector.png">root:1</TrayButton>

      <TrayButton label="" icon="/usr/share/icons/desktop.png">showdesktop</TrayButton>


      <!-- Additional Pager attributes; width, height -->
      <Pager/>

      <!-- Additional TaskList attribute: maxwidth -->
      <TaskList/>

      <Dock/>

      <!-- Additional Swallow attribute: height -->
      <Swallow name="xload" width="64">
         xload -nolabel -bg black -fg red -hl white
      </Swallow>

      <Clock>xclock</Clock>

   </Tray>

   <!-- Visual Styles -->

   <WindowStyle>

      <Font>FreeSans-9:bold</Font>
      <Width>4</Width>
      <Height>20</Height>

      <Active>
         <Text>white</Text>
         <Title>#70849d:#2e3a67</Title>
         <Corner>white</Corner>
         <Outline>black</Outline>
      </Active>

      <Inactive>
         <Text>#aaaaaa</Text>
         <Title>#808488:#303438</Title>
         <Corner>#aaaaaa</Corner>
         <Outline>black</Outline>
      </Inactive>

   </WindowStyle>

   <TaskListStyle>
      <Font>FreeSans-12</Font>
      <ActiveForeground>black</ActiveForeground>
      <ActiveBackground>gray90:gray70</ActiveBackground>
      <Foreground>black</Foreground>
      <Background>gray70:gray90</Background>
   </TaskListStyle>

   <!-- Additional TrayStyle attribute: insert -->
   <TrayStyle>
      <Font>FreeSans-12</Font>
      <Background>gray90</Background>
      <Foreground>black</Foreground>
   </TrayStyle>

   <PagerStyle>
      <Outline>black</Outline>
      <Foreground>gray90</Foreground>
      <Background>#808488</Background>
      <ActiveForeground>#70849d</ActiveForeground>
      <ActiveBackground>#2e3a67</ActiveBackground>
   </PagerStyle>

   <MenuStyle>
      <Font>FreeSans-10</Font>
      <Foreground>black</Foreground>
      <Background>gray90</Background>
      <ActiveForeground>white</ActiveForeground>
      <ActiveBackground>#70849d:#2e3a67</ActiveBackground>
   </MenuStyle>

   <PopupStyle>
      <Font>FreeSans-10</Font>
      <Outline>black</Outline>
      <Foreground>black</Foreground>
      <Background>yellow</Background>
   </PopupStyle>

   <IconPath>/usr/share/pixmaps</IconPath>

   <StartupCommand>
      if test x"$DBUS_SESSION_BUS_ADDRESS" = x""; then
         dbuslaunch=`which dbus-launch`
         if test x"$dbuslaunch" != x"" -a x"$dbuslaunch" != x"no"; then
            eval `$dbuslaunch --sh-syntax --exit-with-session`
         fi
      fi
      pcmanfm
   </StartupCommand>

   <!-- Virtual Desktops -->
   <!-- Desktop tags can be contained within Desktops for desktop names. -->
   <Desktops count="2">
   </Desktops>

   <!-- Double click speed (in milliseconds) -->
   <DoubleClickSpeed>400</DoubleClickSpeed>

   <!-- Double click delta (in pixels) -->
   <DoubleClickDelta>2</DoubleClickDelta>

   <!-- The focus model (sloppy or click) -->
   <FocusModel>click</FocusModel>

   <!-- The snap mode (none, screen, or border) -->
   <SnapMode distance="10">border</SnapMode>

   <!-- The move mode (outline or opaque) -->
   <MoveMode>opaque</MoveMode>

   <!-- The resize mode (outline or opaque) -->
   <ResizeMode>opaque</ResizeMode>

   <!-- Key bindings -->
   <Key key="Up">up</Key>
   <Key key="Down">down</Key>
   <Key key="Right">right</Key>
   <Key key="Left">left</Key>
   <Key key="h">left</Key>
   <Key key="j">down</Key>
   <Key key="k">up</Key>
   <Key key="l">right</Key>
   <Key key="Return">select</Key>
   <Key key="Escape">escape</Key>

   <Key mask="A" key="Tab">nextstacked</Key>
   <Key mask="A" key="F4">close</Key>
   <Key mask="A" key="#">desktop#</Key>
   <Key mask="A" key="F1">root:1</Key>
   <Key mask="A" key="F2">window</Key>

</JWM>

With this configuration, it will load pcmanfm (install it from the CD). Select Edit > Preferences > Desktop and set your desktop options. If you don't want it, search for "pcmanfm" in .jwmrc and remove it or replace with "idesk"

Edited Jan 29, added PathFinder.
« Last Edit: January 29, 2008, 10:07:30 am by nightflier » Logged
Joe1962
Administrator
Vectorian
*****
Posts: 2499



WWW
« Reply #26 on: January 28, 2008, 02:24:27 pm »

In VL Light Alpha 1.6, using JWM and pcmanfm to manage the desktop, vl-hot icons pop up on the desktop when a device is inserted. The unmount one does work, but the other launcher gives error "Command not found".

You can navigate to the mount point and access it, so I bet it's just a matter of modifying vl-hot's desktop launcher to use pcmanfm to open the drive.

The desktop icon is of type "Link", with a URL like: "file:///mnt/vl-hot/sda/vol1", so you probably just need to define pcmanfm as the handler for this URL type.
« Last Edit: January 28, 2008, 02:27:55 pm by Joe1962 » Logged

O'Neill (RE the Asgard): "Usually they ask nicely before they ignore us and do what they damn well please."
http://joe1962.bigbox.info
Running: VL 7 Std 64 + self-cooked XFCE-4.10
uelsk8s
Administrator
Vectorian
*****
Posts: 2504



« Reply #27 on: January 28, 2008, 02:33:43 pm »

In VL Light Alpha 1.6, using JWM and pcmanfm to manage the desktop, vl-hot icons pop up on the desktop when a device is inserted. The unmount one does work, but the other launcher gives error "Command not found".

You can navigate to the mount point and access it, so I bet it's just a matter of modifying vl-hot's desktop launcher to use pcmanfm to open the drive.

The desktop icon is of type "Link", with a URL like: "file:///mnt/vl-hot/sda/vol1", so you probably just need to define pcmanfm as the handler for this URL type.
I couldnt find a way to define that so I made a small change to /lib/udev/vl-hot_functions
here is the changed file:
Code:
#!/bin/bash
#
# (c) Vector Linux, 2005
# Part of VL-Hot by Joe1962
# Licensed under the GPL v2
#
# vl-hot release 1.0.4
#


#**************************************************************************
# DECLARES and ASSIGNS:
#**************************************************************************

# Paths to programs:
#DISKTYPE=/usr/local/bin/disktype
#DISKTYPE=/usr/bin/disktype
DISKTYPE=disktype
SGMAP=sg_map
FDISK=/sbin/fdisk
SUDO=/usr/bin/sudo
LOCKFILE=/usr/bin/lockfile

# VL-Hot paths:
VAR_DIR=/var/run
HOTLINKS_PATH="/dev/vl-hot"

# Some necessary names:
DESKTOPDIR="Desktop"

# Mount options:
USB_USER=root
USB_GROUP=users
USB_UMASK=0111
USB_DMASK=0000

# Unmount options:
#UMOUNT_OPTIONS="-lf"
UMOUNT_OPTIONS="-f"

# Verbosity:
LOG_POPUP_LEVEL=emerg
FACILITY=local5
DEBUG=1

# Notify stuff:
NOT_ICON=$ICON_NOTIFY

id=$(basename $0)

#**************************************************************************
# FUNCTIONS:
#**************************************************************************
function feedback {
if [ "$DEBUG = 1" ]
then
logger -t $id -p $FACILITY.info -- "$@"
fi
}

function debugMessage {
logger -t $id -p $FACILITY.debug -- "$@"
}

function errorExit {
logger -t $id -p $FACILITY.$LOG_POPUP_LEVEL -- "$@"
rm -f "$VAR_DIR/vl_hot.lock"
exit 1
}

function fnotify {
if [ -x "/usr/bin/notify-send" ]
then
USER=`who|grep :0|cut -d " " -f1`
if [ $USER != "" ]
then
exec $SUDO -u $USER /usr/bin/notify-send -u $NOT_CRIT -t $NOT_TIME -i $NOT_ICON -c $NOT_CATG "$NOT_SUMM" "$NOT_MESS" &
fi
fi
if [ $SND_ENABLE = "1" ]
then
play $NOT_SND
fi
}


#function is_excluded() {
#   for EXCLUDED in ${EXCLUDED_DEVICE[@]} ; do
#      if [[ $1 == $EXCLUDED ]]; then
#         for INCLUDED in ${INCLUDED_DEVICE[@]} ; do
#            if [[ $1 == $INCLUDED ]]; then
#        return 1
#     fi
# done
# return 0
#      fi
#   done
#   return 1
#}

function is_excluded() {
   for EXCLUDED in ${EXCLUDED_DEVICE} ; do
      if [[ $1 == $EXCLUDED ]]; then
         for INCLUDED in ${INCLUDED_DEVICE} ; do
            if [[ $1 == $INCLUDED ]]; then
         return 1
      fi
   done
   return 0
      fi
   done
   return 1
}

function chooseMountOptions {
case $FSTYPE in
Ext2)
MOUNT_OPTIONS="-o $MOUNTSYNC,user"
FSMOUNTTYPEARG="ext2"
;;
Ext3)
MOUNT_OPTIONS="-o $MOUNTSYNC,user"
FSMOUNTTYPEARG="ext3"
;;
ReiserFS)
MOUNT_OPTIONS="-o $MOUNTSYNC,user"
FSMOUNTTYPEARG="reiserfs"
;;
NTFS)
MOUNT_OPTIONS="-o $MOUNTSYNC,uid=$USB_USER,gid=$USB_GROUP,fmask=$USB_UMASK,dmask=$USB_DMASK,user,nls=$NTFSNLS,$NTFSIO"
FSMOUNTTYPEARG="ntfs"
;;
FAT12)
MOUNT_OPTIONS="-o $MOUNTSYNC,uid=$USB_USER,gid=$USB_GROUP,fmask=$USB_UMASK,dmask=$USB_DMASK,quiet,user"
FSMOUNTTYPEARG="msdos"
;;
FAT16)
MOUNT_OPTIONS="-o $MOUNTSYNC,uid=$USB_USER,gid=$USB_GROUP,fmask=$USB_UMASK,dmask=$USB_DMASK,quiet,user,codepage=$FATCODEPAGE,iocharset=$FATIOCHARSET$FATUTF8"
FSMOUNTTYPEARG="vfat"
;;
FAT32)
MOUNT_OPTIONS="-o $MOUNTSYNC,uid=$USB_USER,gid=$USB_GROUP,fmask=$USB_UMASK,dmask=$USB_DMASK,quiet,user,shortname=mixed,codepage=$FATCODEPAGE,iocharset=$FATIOCHARSET$FATUTF8"
FSMOUNTTYPEARG="vfat"
;;
   *)
MOUNT_OPTIONS="UNKNOWN"
FSMOUNTTYPEARG="auto"
;;
esac
}

function delDesktopIcon {
local DESKTOPFILE="vl-hot-$MOUNTBASE-$VOLNAME.desktop"
local DESKTOPFILEU="vl-hot-$MOUNTBASE-$VOLNAME-U.desktop"

if [ $DIAG = "1" ]
then
feedback "Deleting desktop file $DESKTOPFILE"
fi

# Remove temp Desktop icon file from every user Desktop:
USERS=`ls /home | grep -v backupsys | grep -v ftp`
for I in $USERS; do
# Check for "Desktop" dir:
if [ -d /home/$I/Desktop ]
then
rm -f /home/$I/Desktop/$DESKTOPFILE
rm -f /home/$I/Desktop/$DESKTOPFILEU
fi
done
if [ -d /root/Desktop ]
then
rm -f /root/Desktop/$DESKTOPFILE
rm -f /root/Desktop/$DESKTOPFILEU
fi
}

function showDesktopIcon {
local DESKTOPFILE="vl-hot-$MOUNTBASE-$VOLNAME.desktop"
local DESKTOPFILEU="vl-hot-$MOUNTBASE-$VOLNAME-U.desktop"

# Remove temp Desktop icon file if left over:
if [ -f /tmp/$DESKTOPFILE ]
then
rm -f /tmp/$DESKTOPFILE
fi
if [ -f /tmp/$DESKTOPFILEU ]
then
rm -f /tmp/$DESKTOPFILEU
fi

if [ $DIAG = "1" ]
then
feedback "Showing desktop file $DESKTOPFILE"
fi

if [ -x /usr/bin/thunar ] || [ -x /usr/bin/konqueror ];then

cat > "/tmp/$DESKTOPFILE" <<-EOF
[Desktop Entry]
Version=1.0
Type=Link
URL=file://$MOUNTPOINT
#Type=Application
#Exec=/lib/udev/vl-hot_exec $DEVNAME $MOUNTPOINT
Name=$MOUNTBASE-$VOLNAME
GenericName=vl-hot mounted drive
Comment=This drive was mounted by vl-hot...
Encoding=UTF-8
Icon=$ICON
X-KDE-Priority=TopLevel
Actions=Unmount;UnmountSignal;UnmountKill;

[Desktop Action Unmount]
Exec=/lib/udev/vl-hot_umount $DEVNAME desktopicon unmount
Name=Unmount

[Desktop Action UnmountSignal]
Exec=/lib/udev/vl-hot_umount $DEVNAME desktopicon unmountsignal
Name=Unmount (signal processes)

[Desktop Action UnmountKill]
Exec=/lib/udev/vl-hot_umount $DEVNAME desktopicon unmountkill
Name=Unmount (kill processes)

EOF

else

cat > "/tmp/$DESKTOPFILE" <<-EOF
[Desktop Entry]
Version=1.0
#Type=Link
#URL=file://$MOUNTPOINT
Type=Application
Exec=/usr/bin/pcmanfm $MOUNTPOINT
Name=$MOUNTBASE-$VOLNAME
GenericName=vl-hot mounted drive
Comment=This drive was mounted by vl-hot...
Encoding=UTF-8
Icon=$ICON
X-KDE-Priority=TopLevel
Actions=Unmount;UnmountSignal;UnmountKill;

[Desktop Action Unmount]
Exec=/lib/udev/vl-hot_umount $DEVNAME desktopicon unmount
Name=Unmount

[Desktop Action UnmountSignal]
Exec=/lib/udev/vl-hot_umount $DEVNAME desktopicon unmountsignal
Name=Unmount (signal processes)

[Desktop Action UnmountKill]
Exec=/lib/udev/vl-hot_umount $DEVNAME desktopicon unmountkill
Name=Unmount (kill processes)

EOF

fi
# Set Desktop icon file owner and access permissions:
chown $USB_USER.$USB_GROUP $DESKTOPFILE
chmod u+w $DESKTOPFILE

cat > "/tmp/$DESKTOPFILEU" <<-EOF
[Desktop Entry]
Version=1.0
Type=Application
Name=Unmount $MOUNTBASE-$VOLNAME
Encoding=UTF-8
Exec=/lib/udev/vl-hot_umount $DEVNAME desktopicon unmount
Icon=$ICON
NotShowIn=KDE;
#OnlyShowIn=XFCE;

EOF

# Set Desktop icon file owner and access permissions:
chown $USB_USER:$USB_GROUP $DESKTOPFILEU
chmod u+w $DESKTOPFILEU

# Copy temp Desktop icon file to every user Desktop:
users=`ls /home | grep -v backupsys | grep -v ftp`
for i in $users; do
# Check for "Desktop" dir:
if [ -d /home/$i/Desktop ]
then
# Copy Desktop icon file to this user's Desktop:
cp /tmp/$DESKTOPFILE /home/$i/Desktop/$DESKTOPFILE
cp /tmp/$DESKTOPFILEU /home/$i/Desktop/$DESKTOPFILEU
fi
done
# Copy Desktop icon file to root Desktop:
if [ -d /root/Desktop ]
then
cp /tmp/$DESKTOPFILE /root/Desktop/$DESKTOPFILE
cp /tmp/$DESKTOPFILEU /root/Desktop/$DESKTOPFILEU
fi
# Remove temp Desktop icon file:
rm -f /tmp/$DESKTOPFILE
rm -f /tmp/$DESKTOPFILEU

}

Logged
nightflier
Administrator
Vectorian
*****
Posts: 4022



« Reply #28 on: January 28, 2008, 05:27:46 pm »

Hey, that's cool! VL-Hot functions like in Standard Grin

I tried substituting xfe for pcmanfm and that works equally well. I was wondering about the environment variables in .bashrc (BROWSER, AUDIO_PLAYER, EXPLORER etc). How do these work, is there a way of using those or similar to call a file manager or browser instead of hard-coding for a specific application?
Logged
uelsk8s
Administrator
Vectorian
*****
Posts: 2504



« Reply #29 on: January 28, 2008, 05:57:05 pm »

try changing xfe to $EXPLORER and then set the file manager in .bashrc
Logged
Pages: 1 [2] 3 4 ... 6
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!