[Solved] Setting my own desktop environment

Hi, I'm trying to setup my own desktop environment with the following packages:
* slim
* metacity
* compton
* wbar
This is my slim conf:
# Path, X server and arguments (if needed)
# Note: -xauth $authfile is automatically appended
default_path /bin:/usr/bin:/usr/local/bin
default_xserver /usr/bin/X
xserver_arguments -nolisten tcp vt07
# Commands for halt, login, etc.
halt_cmd /sbin/shutdown -h now
reboot_cmd /sbin/shutdown -r now
console_cmd /usr/bin/xterm -C -fg white -bg black +sb -T "Console login" -e /bin/sh -c "/bin/cat /etc/issue; exec /bin/login"
#suspend_cmd /usr/sbin/suspend
# Full path to the xauth binary
xauth_path /usr/bin/xauth
# Xauth file for server
authfile /var/run/slim.auth
# Activate numlock when slim starts. Valid values: on|off
numlock on
# Hide the mouse cursor (note: does not work with some WMs).
# Valid values: true|false
# hidecursor false
# This command is executed after a succesful login.
# you can place the %session and %theme variables
# to handle launching of specific commands in .xinitrc
# depending of chosen session and slim theme
# NOTE: if your system does not have bash you need
# to adjust the command according to your preferred shell,
# i.e. for freebsd use:
# login_cmd exec /bin/sh - ~/.xinitrc %session
login_cmd exec /bin/bash -login ~/.xinitrc %session
# Commands executed when starting and exiting a session.
# They can be used for registering a X11 session with
# sessreg. You can use the %user variable
# sessionstart_cmd some command
# sessionstop_cmd some command
# Start in daemon mode. Valid values: yes | no
# Note that this can be overriden by the command line
# options "-d" and "-nodaemon"
# daemon yes
# Set directory that contains the xsessions.
# slim reads xsesion from this directory, and be able to select.
sessiondir /usr/share/xsessions/
# Executed when pressing F11 (requires imagemagick)
screenshot_cmd import -window root /slim.png
# welcome message. Available variables: %host, %domain
welcome_msg Bienvenido a %host
# Session message. Prepended to the session name when pressing F1
# session_msg Session:
# shutdown / reboot messages
shutdown_msg The system is halting...
reboot_msg The system is rebooting...
# default user, leave blank or remove this line
# for avoid pre-loading the username.
#default_user simone
# Focus the password field on start when default_user is set
# Set to "yes" to enable this feature
#focus_password no
# Automatically login the default user (without entering
# the password. Set to "yes" to enable this feature
#auto_login no
# current theme, use comma separated list to specify a set to
# randomly choose from
current_theme archlinux-slim-theme-whitey
# Lock file
lockfile /var/lock/slim.lock
# Log file
logfile /var/log/slim.log
Now, my desktop entry for the sessions, which is located $HOME/.config/joelDE/joelDE.desktop:
[Desktop Entry]
Name=joelDE
Comment=Mi entorno de escritorio
Exec=/home/joel/.config/joelDE/joelDE
TryExec=/home/joel/.config/joelDE/joelDE
Icon=/home/joel/.config/joelDE/joelDE.png
Type=Application
I made the symlink: ln -s /home/joel/.config/joelDE/joelDE.desktop /usr/share/xsessions/joelDE.desktop and it DOES appears in slim sessions (F1), now jolDE script:
#!/bin/bash
# mi propio entorno
(sleep 1s && metacity --replace &)
bash $HOME/.fehbg &
xscreensaver -no-splash &
(sleep 1s && compton --config $HOME/.config/compton.conf -b) &
(sleep 1s && wbar) &
and finally my .xinitrc:
#!/bin/bash
# ~/.xinitrc
if [[ ! "$1" ]]; then
WM_Name=startxfce4
else
WM_Name=$1
fi
setxkbmap -layout latam
if [ -z "$GTK_PATH" ] ; then
GTK_PATH="/usr/lib/gtk-2.0"
else
GTK_PATH="$GTK_PATH:/usr/lib/gtk-2.0"
fi
export GTK_PATH
if [ -z "$GTK_MODULES" ] ; then
GTK_MODULES="canberra-gtk-module"
else
GTK_MODULES="$GTK_MODULES:canberra-gtk-module"
fi
export GTK_MODULES
export LANG=es_MX.UTF-8
echo ${WM_Name} >$HOME/DE_name.txt
if [ ${WM_Name} != "startxfce4" ]; then
export DESKTOP_SESSION=${WM_Name}
export GTK2_RC_FILES=$HOME/.gtkrc-2.0
exec dbus-launch --sh-syntax --exit-with-session ${WM_Name} >$HOME/xinitrc-log.txt 2>&1
else
exec ${WM_Name} >$HOME/xinitrc-log.txt 2>&1
fi
# :~ EOF
This is the thing: after choosing "joelDE" in slim sessions it shows a black screen and rerun slim...
1.- Doesn't SLim run x11?
2.- If not, how do I call it?
Thanks!
Last edited by Joel (2014-07-14 04:37:30)

Try moving the metacity line in joelDE to the end of the file and remove the last '&':
#!/bin/bash
# mi propio entorno
bash $HOME/.fehbg &
xscreensaver -no-splash &
(sleep 1s && compton --config $HOME/.config/compton.conf -b) &
(sleep 1s && wbar) &
sleep 1s && metacity --replace
With startx, and I think that this is true for SLiM as well, your X session will last as long as your ~/.xinitrc (or, I think more technically, the exec $whatever that may be at the end of the file).  So if everything in ~/.xinitrc forks (or in your case, your joelDE script), that script will complete immediately, and the X session will exit with it.

Similar Messages

  • Set up my desktop environment

    Hi and hello.
    I wanted to try a light-weight environment, so I decided to give Archlinux a try. I really want a keyboard-oriented environment, and have installed Awesome, pretty vanilla right now. What else should I do now? Any apps I should install, any settings (for looks or functionality)? I saw some pretty cool screenshots in the screenshot thread, but I'm totally lost what configs people are exchanging there.
    So far, I guess I should install conky (done, but now what?). You know, all that configuration stuff. Is there a guide?
    Thanks.

    Ranguvar wrote:Do you have a desktop environment installed (KDE, GNOME,
    I really wouldn't consider one of these when creating a leight weight, keyboard oriented environment .
    At topic
    If you want to stick with awesome http://wiki.archlinux.org/index.php/Awesome would be another possible place to start. Apart from that, think about what you want to have - you can use the Screenshots Threads for inspiration - then, when you have a list of specific features (transparency, fancy CPU monitor, pink toasters with wings flying through your background, ...) go through it and try to find out how to get each one, searching the forums, the wiki, google and reading documentation.
    I admit the toasters could be difficult.
    I know it is possible to set up a keyboard orientet environment in kde/gnome but I don't think they should be the first choice to do so.

  • [SOLVED] X server and desktop environment?

    ok I have 2 Q now I've been studding this quite a long time
    well 1. Q
    if I want to have a desktop I have to install X server and Desktop environment?
    well2. Q
    according to this article:
    http://en.gentoo-wiki.com/wiki/Intel_GMA
    I'd ask do I have to create a new file or is this an old topic for an old X server?
    as I have now like this:
    /etc/X11/
    /twm
    system.twmrc
    /xinit
    xinitrc
    xserverrc
    /xorg.conf.d
    10-evdev.conf
    10-monitor.conf
    10-quirks.conf
    Last edited by psihokiller4 (2010-08-07 13:50:03)

    psihokiller4 wrote:
    1. ok thanks
    2.
    it's sad:
    X11 Configuration
    If you find yourself needing to tell X11 to use the intel driver, set Driver to "intel" in /etc/X11/xorg.conf as in the example below,
    File: /etc/X11/xorg.conf
    Section "Device"
    Identifier "My Intel Video Card"
    Driver "intel"
    EndSection
    but I don't have it there so... do I need to create a new file or do I get this 4 lines in to
    /etc/X11/xorg.conf.d/10-evdev.conf
    Depends what works for you. You should do away with xorg.conf, but some setups are easier to pull off with it.
    How about creating a new file named 20-intel.conf, just as you do with nvidia?

  • What custom desktop environment do you use?

    I know one of the reasons I love arch is that you get to build a system from the ground up--you get to build your own desktop environment out of whatever login manager/window manager/file manager/etc you want.
    I'm still experimenting with openbox and slim, so I'm just wondering what everyone else is using to make their computer "their" computer. What's your custom desktop environment built from? Maybe this will be a good starting place for other noobs (like myself), who want to be able to replace gnome or kde without losing all the features.
    btw, what office tools are you using? I don't really like openoffice, and I really don't like abiword.
    thanks for sharing!

    I am a gnome > xfce > lxde-ish > nothing-in-particular convert, so my post will be rather GTK-biased
    Panel-wise...I threw together the visibility iconbox/desktop manager thing and two tweaked dzen scripts (power status and time). It's not so much a panel as it is two blocks in the corners and a large gap in the middle where I can middle click.
    I use gmrun in lieu of Gnome's alt-F2 run dialog. I found that lxtask was a decent task manager. Seems to be unusually CPU-heavy for a task manager, though. I prefer htop. I use hardinfo for computer specs when I can't be bothered to look up the right commands.
    As far as office tools go, I keep Openoffice around for compatibility and those times when vim+latex or geany+latex is overkill. I like gnumeric as a spreadsheet program.
    I use alsamixer to control sound and nitrogen for backgrounds. No login manager here. I just xinit in my ~/.bash_profile . I've installed a lot of browsers for testing (I do a bit of web design), but I generally use uzbl, midori when uzbl doesn't work, and firefox when midori doesn't work.
    Somewhere up there, jasonwryan mentioned the LnF thread. It might be worth also checking out the Crunchbang distro's applications list. The list is not as, well, light and fast, but it does have quite a few not-heavy desktop environment-independent apps.
    http://crunchbanglinux.org/wiki/applications
    PS If thunar isn't working for you, perhaps you might like pcmanfm better?

  • [SOLVED] root gets desktop environment, user gets bare-bones window ma

    Installed everything, following (as best I could) step-by-step instructions in beginners guide...
    Everything works ok, except it was all installed by myself as 'root', and I want to start day-to-day operation as a user called 'piers'.
    When 'root' logs in and invokes startx, desktop environment fires up.
    When 'piers' logs in and invokes startx, all I get is the rudimentary windows-manager screen of three xorg windows, as installed earlier in the proceedings for testing purposes...
    How does 'piers' get to see the desktop?  I'm sorry, I must be missing something terribly obvious! 
    TIA!
    Last edited by pierssnell (2011-11-21 11:08:25)

    Thanks SS4 and karol, you're very kind; that seems to have done the trick.
    For some reason, the 'piers' startx only gets the Gnome fallback, where 'root' gets full service, but I had an idea I hadn't gone the full distance yet with my display driver, which is what Gnome tells me is deficient.  I'll try to do battle with that next!
    Thanks again.

  • [Solved]deepin desktop environment.

    Hello everyone. I am trying to install deepin desktop environment. And for the last step I'm installing deepin-webkit form aur. It has been 4 hours now.
    Can that take that much time? Or is there a problem with it? Should I cancel or wait?
    Last edited by thedeli (2013-12-28 17:13:34)

    Browser engines can take a very long time to compile even on the fastest machines. Four hours isn't surprising for some computers.
    Last edited by skottish (2013-12-28 16:47:45)

  • Using FF to access my AOL emails I get "There was an error while loading the message. Please try again later." Access is OK via Chrome, IE & AOL's own desktop.

    "There was an error while loading the message. Please try again later." is a recent (3/4 days) error message I get when accessing my AOL emails. I can access the page and move them between states but cannot open them to read. Chrome, IE and AOL's own desktop open emails OK & can access them from the wife's PC using my AOL details. Have cleaned the history tab of everything in FF, have also removed it with add/rem progs and reinstalled - still I get the above message.
    PC - W7 Pro 64 bit, 16GB RAM etc.

    Hello,
    Certain Firefox problems can be solved by performing a ''Clean reinstall''. This means you remove Firefox program files and then reinstall Firefox. Please follow these steps:
    '''Note:''' You might want to print these steps or view them in another browser.
    #Download the latest Desktop version of Firefox from http://www.mozilla.org and save the setup file to your computer.
    #After the download finishes, close all Firefox windows (click Exit from the Firefox or File menu).
    #Delete the Firefox installation folder, which is located in one of these locations, by default:
    #*'''Windows:'''
    #**C:\Program Files\Mozilla Firefox
    #**C:\Program Files (x86)\Mozilla Firefox
    #*'''Mac:''' Delete Firefox from the Applications folder.
    #*'''Linux:''' If you installed Firefox with the distro-based package manager, you should use the same way to uninstall it - see [[Installing Firefox on Linux]]. If you downloaded and installed the binary package from the [http://www.mozilla.org/firefox#desktop Firefox download page], simply remove the folder ''firefox'' in your home directory.
    #Now, go ahead and reinstall Firefox:
    ##Double-click the downloaded installation file and go through the steps of the installation wizard.
    ##Once the wizard is finished, choose to directly open Firefox after clicking the Finish button.
    Please report back to see if this helped you!
    Thank you.
    <!-- VERY important to include-->
    <b>WARNING:</b> Do not run Firefox's uninstaller or use a third party remover as part of this process, because that could permanently delete your Firefox data, including but not limited to, extensions, cache, cookies, bookmarks, personal settings and saved passwords. <u>These cannot be recovered unless they have been backed up to an external device!</u>

  • What's a good desktop environment/general system UI for a television?

    So right now I just upgraded to Arch (without planning to do so, but that's another story) on my media station, and I'm trying to figure out what desktop environment to use with it.  It is hooked up to an old analog TV as the only display (I do most of my configuration via ssh and the command line), and my wife (who's not a Linux user by any stretch) uses it a lot.
    I'm finding Gnome 3 (since it had Gnome on it before I just went with that) is really not suited to this purpose.  It seems to want things like a higher resolution than what can be readable easily on the TV, and if I set it to a lower resolution setting menus will get pushed off the screen.  I also prefer something where I can do all the configuration from the command line, because I'm usually going to be configuring it remotely.
    What the media station does normally is play videos in VLC (either saved video files or DVDs), play YouTube videos in a browser, and move around and delete files on the desktop with a mouse.  The way the keyboard is set up it's hard to use as well.  So I'm wanting something that makes all of those really simple with the constraints of a low resolution TV, and avoids needing the keyboard if at all possible.
    Any suggestions?
    Bonus points if people can come up with a way that someone can easily move around and delete the files from a browser on a Windows machine, as that's what my wife has with her a lot when she's sitting at the couch.  She doesn't want to install anything on that computer or use things like Windows filesharing though.

    LXDE isn't optimal if CLI configuration matters to you... but does this really matter if you expect to set it up once and be done with it?
    Openbox' XML syntax is needlessly annoying if you don't want to use the optional GUIs or other little helpers, I'd go with a simple window manager rather than a DE.
    Fluxbox is easy, text-friendly and doesn't require a DE on top to meet modern expectations. Personally, I think a well-tweaked FVWM beats the pants off anything else.
    Nevertheless, debugging the wife seems to be a higher priority for now... with good suggestions already.

  • Do I need to reinstall desktop environment for each user?

    Hello,
    I have installed xwindows and the i3 desktop environment on my root account by mistake.  I created a user account and logged into it, but I could not start a xwindows because it wasn't installed on that account.  Do I need to reinstall everything on the new user or is there a way to copy everything over?
    Thanks

    offtopic @Xyne
    What I am still wondering is if using xorg wrap is a hack as opposed to some "cleaner" systemd solution.
    Well, simply not using Xwrapper.config, then Xorg will handle this on it's own (see man page extract below). I don't think Openbox has problems with this, so I think the problems you had would have to be looked at separately. But maybe better on their own topic...
    'man Xorg.wrap'
    By default Xorg.wrap will autodetect if root rights are necessary, and if
    not it will drop its elevated rights before starting the real X server. By
    default Xorg.wrap will only allow executing the real X server from login
    sessions on a physical console.
    When auto-detecting the wrapper will drop rights if kms graphics are avail‐
    able and not drop them if no kms graphics are detected. If a system has
    multiple graphics cards and some are not kms capable auto-detection may
    fail, in this case manual configuration should be used.
    You're a bit late on that one

  • What is the best Desktop Environment in Arch Linux?

    Hello, Arch Community! I am having troubble desiding which DE to install on my new Arch box. I have narrowed it down to KDE, GNOME, and Xfce.
    I like KDE's customization but I also like GNOME's simplicity. Xfce is lightweight, but in previous experience GNOME apps such as NetworkManagerApplet don't run that well with it and I had troubble with Compiz Fusion in Xfce. Please help me decide. Please don't tell me that it is 'apples and oranges' or any crap like that. I just want an answer that talks about performance and customization, etc.
    BTW I am glad to return to Arch after getting sick of Fedora's massive updates. I am in love with Arch's rolling release cycle.
    Last edited by theDBANfan (2009-07-26 03:00:32)

    you dont even need a proper desktop environment, thats part of the reason i like arch so much, you can use ~/.xinitrc as your own personal desktop environment.
    just put what you want in your ~/.xinitrc
    this is mine
    xbindkeys &
    lxde-settings-daemon &
    xfdesktop &
    xfwm4 &
    xfce4-panel &
    exec ck-launch-session startlxde
    i have the minimal lxde install (just lxde-common, lxde-settings-daemon & lxsession-lite + lxapperance for my themes) so all my settings like themes  etc... are loaded on boot then i just added the panel i wanted, the window manager i wanted etc...
    if you want a fast minimal install with only the apps you want then do something similar, load somekind of settings manager so all your settings are loaded every time you boot then pick and choose you favorite panel, window manager etc...

  • SSL-Problems when setting up a test environment with Exchange

    Hello everyone,
    I am trying to set up a test environment with Exchange 2013 to learn how the stuff works. However, I am facing some problems due to the fact that Exchange is designed for use with SSL certificates. The main thing that makes problems is the connection with
    RPC over HTTP. I've used the MS remote connectivity analyzer to find out why it is not working and as I thought it is because of a missing SSL certificate (it seems the self signed doesn't work here). Now in order to get this working I just bought a certificate
    for "mydomain.com". Now here is the first problem: This certificate is NOT a wildcard certificate. So if I understood correctly it works for mydomain.com but it won't work for subdomain.mydomain.com. Is this correct? (First question)
    If this is correct I will probably another problem: As I said this is a learning-environment so the server is at home behind a router. This means: Only one WAN-IP. I think could get this working by forwarding everything to the Exchange Server (like mydomain.com
    goes to the WAN-IP where the router is forwarding everything like port 25 or 443 directly to the exchange Server). This way I wouldn't have any problems I think: mydomain.com has a valid SSL cert, it resolves to my WAN-IP which forwards everything to the internal
    Exchange Server. Now here is the problem: I plan to setup a SharePoint Server as well. I thought about using ARR (IIS) to make both available behind the same WAN-IP without using ports inside the url. Ideally the Exchange Server should then be available via
    "mail.mydomain.com". This will work fine with ARR but then I probably have SSL problems again? (second question)
    Do you have any ideas what I can do to solve such problems? Should I buy another certificate for mail.mydomain.com? But then I would need to buy several certificates (e.g. for autodiscover.mydomain.com to get this working as well). This can become very expensive...
    Thanks!
    Regards
    Christian

    Hi,
    For your first question, if there is a single certificate just for “mydomain.com”, it cannot work for subdomain.mydomain.com.
    Generally, antodiscover.domain.com is used to access the autodiscover service for external users. If you just need test users to access Exchange server from internal environment, it is not necessary to get a certificate for autodiscover.domain.com.
    Therefore, for your second question what I can ensure is that if all URLs that used to connect Exchange from internal and external are configured to mail.mydomain.com with all services(IIS,SMTP,POP,IMAP), there will be no certificate problems in Exchange
    side.
    Best Regards,
    Winnie Liang
    TechNet Community Support

  • Deepin Desktop Environment on Arch

    I've finnaly made it work on my arch! :-)
    Here are my PKGBUILD files and repo for most of the packages if anyone is interested.
    First things first...
    - I'm using "compiz-ubuntu" from unity-for-arch repo because "deepin-compiz" still needs old boost (1.53) version...
    OF COURSE THE USUAL WARNINGS APPLY:  IT WILL EAT YOUR CAT, HAMSTER... BLAHBLAH  :-)
    [home_metakcahura_arch-deepin_Arch_Extra]
    SigLevel = Never
    Server = http://download.opensuse.org/repositories/home:/metakcahura:/arch-deepin/Arch_Extra/$arch
    #Server = http://anorien.csc.warwick.ac.uk/mirrors/download.opensuse.org/repositories/home:/metakcahura:/arch-deepin/Arch_Extra/$arch
    And some obligatory screenshots... (those are "deepin-movie" player and deepin-terminal below... btw)
    UPDATE: After contacting FaSheng (one of the developers on Deepin team) and showing him the current progress I made, he pointed out that I forgot to add python2 to makedepends and that's why those packages wouldn't build (startdde and deepin-desktop-environment). Now, they're all in OBS repo and available for testing.
    Last edited by metak (2014-05-26 01:46:53)

    rAX wrote:
    Yeah, I figured it out. I just wanted you to know.
    But After installing deepin-desktop-environment, I login from GDM and it freezes, nothing happen.
    I haven't tried it with GDM so I don't know... can you try installing lightdm from this repo that has greeter set to lightdm-deepin-greeter? It works for me that way.
    systemctl start lightdm    and I get that fancy animation.
    BTW many packages have been updated and rebuilt.   OBS has some weird tricks and when it rebuilds package the service file automatically sets the version in PKGBUILD which is great in theory and works for most part, BUT the problem is when version doesn't change and package is just rebuilt, it doesn't do pkgrel bumps which would trigger update. Not that I know anyway... That's why you're getting those errors about downloaded packages. Removing the old package in /var/cache/pacman/pkg and re-downloading fixes this issue in most cases if the OBS mirrors are synced.
    Last edited by metak (2014-05-27 00:26:01)

  • Rox Desktop Environment

    Hi All
    For those of you who may not know, the rox file manager can be pretty much ran as a smallish desktop environment.
    I have started putting together a little repo that has rox and some of it's useful counterparts.  More will be added over the weekend.  Please let me know of any rox parts you would like to see in the repo.
    Add this to pacman.conf to access the repo
    [rox]
    Server = http://www.foxjames.co.uk/linux/rox
    Follow it with pacman -Sy of course.
    The few packages in the repo so far are
    archive - archive handler for rox-filer
    edit - text editor based on rox
    mplayer-rox - rox wrapper for mplayer
    oroborox - window manager for rox
    ripper - cd ripper for rox
    rox - rox filer obviously
    rox-lib - rox libraries
    rox-mime - rox mime type editor
    rox-session - rox-session manager (if you use a ~.xinitrc back it up first)
    roxterm - a lightweight terminal for rox
    videothumbnail - video thumbnail viewer for rox
    I would recommend installing all the packages that are there so far.  Running rox-session will create a .xinitrc to run the rox-desktop, you will be asked which window manager you would like to use.  I typed in oroborox, you can use openbox or any other wm you like.
    Like I say it is incomplete, and probably will break, (considering I have never even made a package for AUR yet).  Feedback would be nice on improvements etc etc.
    Enjoy
    Last edited by gazj (2008-12-14 10:59:43)

    I didn't know abour desktop2app, so I wrote my own script for conversions, with a -a option to process all your system-wide .desktop files. It mostly uses messy heuristics based on own my partial understanding of freedesktop.org conventions, but still seems to work alright.
    Run it with -h to see its options.
    #!/bin/dash
    # Configuration
    APPSDIR=/usr/share/applications/
    ROXDIR=~/ROXApps/.Auto/
    ROXCONFIG=~/.config/rox.sourceforge.net/
    # leave blank for the default language (en_US)
    LANGUAGE=""
    # if you want another, then for example
    # LANGUAGE=fr
    # command line to run an application in a terminal
    TERMCOMMAND="roxterm -e"
    # acceptable icon sizes, by decreasing preference
    ICONSIZES="scalable 256x256 128x128 64x64 48x48 32x32 24x24 22x22 16x16"
    # End configuration
    makeapp () {
    if [ -e "$DESTDIR" ]; then
    if [ "$FORCE" ]; then
    rm -r "$DESTDIR" && echo "Removed already existing directory: $DESTDIR" > $OUT || return 1
    elif [ $ASK ]; then
    read -p "$DESTDIR: An application directory with this name already exists. Overwrite? (y/n) [n] " answer
    [ ! "y" = "$answer" ] && echo "Skipping $APP" && return 1
    rm -r "$DESTDIR" || return 1
    echo "Removed $DESTDIR" > $OUT
    else
    echo "$DESTDIR: Directory exists, skipping" > /dev/stderr
    return 1
    fi
    fi
    mkdir "$DESTDIR" || return 1
    echo "Created $DESTDIR" > $OUT
    echo "#!/bin/dash" > "${DESTDIR}/AppRun"
    if [ "`echo $COMMAND | grep "%u"`" ]; then
    echo 'if [ "$1" ]; then' >> "${DESTDIR}/AppRun"
    echo " `echo $COMMAND | sed -e 's/%u/\"\$@\"/'`" >> "${DESTDIR}/AppRun"
    echo 'else' >> "${DESTDIR}/AppRun"
    echo " `echo $COMMAND | sed -e 's/%u/ /'`" >> "${DESTDIR}/AppRun"
    echo 'fi' >> "${DESTDIR}/AppRun"
    else
    echo 'if [ "$1" ]; then' >> "${DESTDIR}/AppRun"
    echo " $COMMAND \"\$@\"" >> "${DESTDIR}/AppRun"
    echo 'else' >> "${DESTDIR}/AppRun"
    echo " $COMMAND" >> "${DESTDIR}/AppRun"
    echo "fi" >> "${DESTDIR}/AppRun"
    fi
    chmod +x "${DESTDIR}/AppRun"
    echo "Created executable AppRun file, contents:" > $OUT
    cat "${DESTDIR}/AppRun" > $OUT
    echo '<?xml version="1.0"?>' > ${DESTDIR}/AppInfo.xml
    echo '<AppInfo>' >> ${DESTDIR}/AppInfo.xml
    [ "$DESC" ] && echo "<Summary>$DESC</Summary>" >> ${DESTDIR}/AppInfo.xml || echo "<!--<Summary>Insert tooltip here</Summary>-->" >> ${DESTDIR}/AppInfo.xml
    echo '<About>' >> ${DESTDIR}/AppInfo.xml
    [ "$PURPOSE" ] && echo " <Purpose>$PURPOSE</Purpose>" >> ${DESTDIR}/AppInfo.xml||echo ' <!--<Purpose></Purpose>-->' >> ${DESTDIR}/AppInfo.xml
    echo ' <!--<Version></Version>-->' >> ${DESTDIR}/AppInfo.xml
    echo ' <!--<Authors></Authors>-->' >> ${DESTDIR}/AppInfo.xml
    echo ' <!--<License></License>-->' >> ${DESTDIR}/AppInfo.xml
    echo ' <!--<Homepage></Homepage>-->' >> ${DESTDIR}/AppInfo.xml
    echo '</About>' >> ${DESTDIR}/AppInfo.xml
    echo '<AppMenu>' >> ${DESTDIR}/AppInfo.xml
    echo " <!-- You can define items in the left-click menu which call the program with different arguments. Here's an example: -->" >> ${DESTDIR}/AppInfo.xml
    echo ' <!-- <Item option="-v"> -->' >> ${DESTDIR}/AppInfo.xml
    echo ' <!-- <Label>Verbose output</Label> -->' >> ${DESTDIR}/AppInfo.xml
    echo ' <!-- </Item> -->' >> ${DESTDIR}/AppInfo.xml
    echo '</AppMenu>' >> ${DESTDIR}/AppInfo.xml
    echo '</AppInfo>' >> ${DESTDIR}/AppInfo.xml
    echo "Created AppInfo.xml file, contents:" > $OUT
    cat "${DESTDIR}/AppInfo.xml" > $OUT
    [ "$ICON" ] && ICON=`echo $ICON | line` && cp "$ICON" "${DESTDIR}/.DirIcon" && echo "Copied $ICON to ${DESTDIR}/.DirIcon" > $OUT
    echo "Done with this application" > $OUT
    return 0
    setvars () {
    DESTDIR=""
    [ "$LANGUAGE" ] && DESTDIR=`grep "^Name\[${LANGUAGE}\]=" $APP | cut -c$(($LANGUAGELEN + 6))-`
    [ ! "$DESTDIR" ] && DESTDIR=`grep "^Name=" $APP | cut -c6-`
    DESTDIR=$ROXDIR/$DESTDIR/
    echo "Destination: $DESTDIR" > $OUT
    PRECOMMAND=`grep '^Exec=' $APP | cut -c6- | sed -e 's/ %U/ %u/g' | sed -e 's/ %F/ %u/g' | sed -e 's/ %f/ %u/'`
    if [ "true" = "`grep "^Terminal=" $APP | cut -c10-`" ]; then
    echo "Application runs in a terminal" > $OUT
    COMMAND="$TERMCOMMAND $PRECOMMAND"
    else
    COMMAND="$PRECOMMAND"
    fi
    echo "Command: $COMMAND" > $OUT
    DESC=""
    [ "$LANGUAGE" ] && DESC=`grep "^Comment\[${LANGUAGE}\]=" $APP | cut -c$(($LANGUAGELEN + 9))-`
    [ ! "$DESC" ] && DESC=`grep "^Comment=" $APP | cut -c9-`
    [ "$DESC" ] && echo "Description: $DESC" > $OUT || echo "No description found" > $OUT
    PURPOSE=""
    [ "$LANGUAGE" ] && PURPOSE=`grep "^GenericName\[${LANGUAGE}\]=" $APP | cut -c$(($LANGUAGELEN + 13))-`
    [ ! "$PURPOSE" ] && PURPOSE=`grep "^GenericName=" $APP | cut -c13-`
    [ "$PURPOSE" ] && echo "Purpose: $PURPOSE" > $OUT || echo "No purpose (GenericName) found" > $OUT
    ICONNAME=`grep "^Icon=" $APP | cut -c6-`
    if [ $ICONNAME ]; then
    [ "/" = "`echo $ICONNAME | cut -c1`" ] && FULLICONNAME=$ICONNAME || FULLICONNAME=""
    ICONNAME=`basename $ICONNAME`
    EXTENSION=`echo $ICONNAME | grep -o '\.\w\w*$'`
    [ "$EXTENSION" ] && ICONNAME=`basename $ICONNAME $EXTENSION`
    echo "Will look for the following icon: $ICONNAME" > $OUT
    if [ "$ICONTHEME" ]; then
    TFILE=/tmp/makeroxapp-`uuidgen`
    find $ICONTHEME -name "$ICONNAME.*" -fprint $TFILE
    for size in $ICONSIZES; do
    ICON=`grep "/${size}/" $TFILE`
    [ -n "$ICON" ] && echo "Icon found: $ICON" > $OUT && rm $TFILE && return 0
    done
    echo "Couldn't find icon in the ROX icon theme" > $OUT
    rm $TFILE
    fi
    if [ "$FULLICONNAME" ]; then
    ICON=$FULLICONNAME
    [ -e "$ICON" ] && echo "Icon found: $ICON" > $OUT && return 0
    echo "Couldn't find icon at $ICON" > $OUT
    fi
    ICON=/usr/share/pixmaps/$ICONNAME.svg
    [ -e "$ICON" ] && echo "Icon found: $ICON" > $OUT && return 0
    ICON=/usr/share/pixmaps/$ICONNAME.png
    [ -e "$ICON" ] && echo "Icon found: $ICON" > $OUT && return 0
    ICON=/usr/share/pixmaps/$ICONNAME.xpm
    [ -e "$ICON" ] && echo "Icon found: $ICON" > $OUT && return 0
    echo "Couldn't find icon in /usr/share/pixmaps" > $OUT
    ICON=""
    TFILE=/tmp/makeroxapp-`uuidgen`
    find /usr/share/icons/hicolor/ -name "$ICONNAME.*" -fprint $TFILE
    for size in $ICONSIZES; do
    ICON=`grep "/$size/" $TFILE`
    [ -n "$ICON" ] && echo "Icon found: $ICON" > $OUT && rm $TFILE && return 0
    done
    echo "Couldn't find icon in the default theme" > $OUT
    rm $TFILE
    echo "No icon found" > $OUT
    ICON=""
    else
    echo "No icon" > $OUT
    ICON=""
    fi
    return 0
    findicontheme () {
    ICONTHEME=`grep '"icon_theme"' ${ROXCONFIG}ROX-Filer/Options`
    ICONTHEME=`echo $ICONTHEME | grep -o '>..*<'`
    ICONTHEME=`basename $ICONTHEME "<" | cut -c2-`
    if ([ "$ICONTHEME" ] && [ "`ls ~/.icons | grep \"^$ICONTHEME\$\"`" ]); then
    ICONTHEME=~/.icons/${ICONTHEME}/
    elif ([ "$ICONTHEME" ] && [ "`ls /usr/share/icons | grep \"^$ICONTHEME\$\"`" ]); then
    ICONTHEME=/usr/share/icons/${ICONTHEME}/
    else ICONTHEME=""
    fi
    [ "$ICONTHEME" ] && echo "ROX icon theme found: $ICONTHEME" > $OUT || echo "ROX icon theme not found" > $OUT
    return 0
    dispatch () {
    [ "$MANUAL" ] && [ "$ALL" ] && echo "Incompatible options: -a -m" && usage && exit 1
    if [ "$ALL" ]; then
    echo "Processing all applications in $APPSDIR" > $OUT
    findicontheme
    for APP in `ls $APPSDIR | grep "..*\.desktop"`; do
    APP=$APPSDIR/$APP
    if [ "Application" = `grep "^Type=" $APP | cut -c6-` ]; then
    echo "Application found: $APP" > $SOUT
    setvars
    makeapp
    fi
    done
    echo "Done" > $OUT
    elif [ "$MANUAL" ]; then
    echo "Manually creating app dir" > $OUT
    DESTDIR=~/ROXApps/$1/
    echo " destination: $DESTDIR" > $OUT
    COMMAND=$1
    echo " command: $COMMAND" > $OUT
    ICON=$2
    [ "$ICON" ] && echo " icon: $ICON" > $OUT || echo " no icon" > $OUT
    makeapp
    echo "Done" > $OUT
    else
    APP=$1
    if [ "`basename \"$APP\" .desktop`" = "$APP" ]; then
    APP=$APPSDIR/$APP.desktop
    fi
    echo "Making application directory for application $APP" > $OUT
    [ ! -e $APP ] && echo "Cannot find application" > /dev/stderr && exit 1
    findicontheme
    setvars
    makeapp
    echo "Done" > $OUT
    fi
    return 0
    usage () {
    echo 'Usage: makeroxapp [OPTIONS] APPLICATION'
    echo ' makeroxapp -a [OPTIONS]'
    echo ' makeroxapp -m [OPTIONS] COMMAND [ICON]'
    echo ' -a: process all .desktop files in the default applications directory'
    echo ' -h, --help: print this message'
    echo ' -v: verbose output'
    echo ' -q: silent'
    echo ' -l LANGUAGE: try to use names and information in this language'
    echo ' -m: manually provide a command and an (optional) icon'
    echo ' -i DIR: look for .desktop files in the directory DIR instead'
    echo ' of the default'
    echo ' -d DIR: create application directories in DIR instead of the'
    echo ' default'
    echo ' -f: overwrite the application directory if it already exists'
    echo ' -k: asks whether to overwrite the app dir if it already exists'
    return 0
    ALL=""
    MANUAL=""
    SILENT=""
    VERBOSE=""
    FORCE=""
    ASK=""
    COMMAND=""
    ICON=""
    APP=""
    while getopts ad:fhi:kl:mqv opt; do
    case $opt in
    a) ALL=true;;
    d) ROXDIR=$OPTARG;;
    f) FORCE=true;;
    h) usage; exit 0;;
    i) APPSDIR=$OPTARG;;
    k) ASK=true;;
    l) LANGUAGE=$OPTARG;;
    m) MANUAL=true;;
    q) SILENT=true;;
    v) VERBOSE=true;;
    \?) echo "Unknown option: $opt"
    usage()
    exit 1
    esac
    done
    shift $(($OPTIND - 1))
    [ "$VERBOSE" ] && OUT=/dev/stdout || OUT=/dev/null
    [ "$SILENT" ] && SOUT=/dev/null || SOUT=/dev/stdout
    LANGUAGELEN=$((`echo $LANGUAGE | wc -c` + 1)) # we're counting the brackets
    [ ! -e "$ROXDIR" ] && mkdir "$ROXDIR" && echo "$ROXDIR didn't exist, created it"
    dispatch "$@"
    exit 0
    Last edited by Arkane (2008-06-19 13:34:26)

  • How do I set up my desktop?

    I am trying to set up my desktop of new computer.  Cannot figure out how to set up icons on opening page showing desktop items of major interes to me.

    Hello Ogarcia013,
    I understand you have a new computer and you are not seeing the desktop setup, is that correct? I will try to assist you with this problem.
    Can you explain exactly what you are seeing at this time?  In addition, can you provide the full make and model of the computer you have.
    Please respond back at your earliest convenience.
    Thanks
    Clicking the White Kudos star on the left is a way to say Thanks!
    Clicking the 'Accept as Solution' button is a way to let others know which steps helped solve the problem!

  • Recommend me a desktop environment, please ;)

    Hi! I just installed xorg and it looks like it is set up. Now I have to choose a desktop environment. I'd like something simple (and small in terms of download), yet offering great amount of functionality. What could it be?

    When I started using Linux in 2002, there wasn't the plethora of window managers available as they are now. I used to use GNOME 2 in those days (not even HAL was there!); then I used KDE for sometime too.
    After I discovered Arch, I moved through many DEs and WMs.... XFCE, Gnome, KDEmod, openbox, fluxbox, ion3, wmii, dwm and finally xmonad. I find tiling window managers really easy on me as I tend to have many windows open at some time; and though openbox is really cool (it has one of the best theme collections), with 10 windows open, manually managing them becomes a chore. With the tiling WMs, I can concentrate on my work, rather than moving windows around all day.
    If you stick with XFCE, I suggest you try out Compiz; it has a nice feature which shows you all the windows at once.

Maybe you are looking for