Sponsored Content
Operating Systems Linux Switch Desktop Environments via Terminal Post 302865599 by maerlyngb on Friday 18th of October 2013 11:01:35 PM
Old 10-19-2013
Switch Desktop Environments via Terminal

Hi All,

Does anyone know if it's possible to switch desktop environments via the terminal?

I'm writing a script to install Cinnamon on Ubuntu and I would then like to remove unity but at the moment I have to ask the user to log out, log in with cinnamon and then continue the script to remove unity.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Crontab Environments

I have a user trying to execute a command,in crontab, which requires certain envrionmental variables to be set. He is using tcsh on a Solaris 7 system. I have created a hack by doing the following in the crontab entry... 0 0-23 * * * rsh localhost -l user /path/command This doesn't seem... (4 Replies)
Discussion started by: SmartJuniorUnix
4 Replies

2. Shell Programming and Scripting

setting environments

Hello, How can I setup environments in a bash and tcsh? I need to setup some paths and classpath. thanks xNYx (3 Replies)
Discussion started by: xNYx
3 Replies

3. UNIX for Dummies Questions & Answers

Description of Environments Supported By....

Im a learner on the unix/linux OS,i wanted a description of the main environments supported by the unix/linux environment. Thanks (2 Replies)
Discussion started by: zizu
2 Replies

4. UNIX for Dummies Questions & Answers

How to switch between terminal screens in Sun Solaris 10

:) Hi everybody.. This is my firt post in this great forum.: I have installed Sun Solaris 10 on an Intel machine.. Now i login in CDE desktop as root. I want to switch between terminal screens pressing CTRL+ALT F1 (through F6) but nothing happens ?? any suggestions thank you (2 Replies)
Discussion started by: peterpan
2 Replies

5. Shell Programming and Scripting

Switch environments on a single unix server

Hi All, I have written a script for a particular user say tren212 ,which checks the disk space of the user. I wish to check the disk space of another user say tren213 in the same script. How can I do the same? I have tried using su command but it asks for the password at the... (4 Replies)
Discussion started by: Taranjeet Singh
4 Replies

6. SCO

How to export file from terminal to Windows desktop

I have a file in Unix terminal under $, any command can make this file to be transferred to Windows desktop or C:\, I know that I can use software like FileZilla ftp to transfer file from Unix terminal to desktop. But I am really interested in using command to do this job. anyone knows? (1 Reply)
Discussion started by: wendyz
1 Replies

7. Solaris

How do I switch from CDE to Java Desktop in Solaris 10?

I am a newbie to Solaris/UNIX. I just installed Solaris 10 and accidentally chose CDE as my desktop instead of Java. How can I set Java Desktop as my desktop? Because before i installed my mechine is using java and more beauty from CDE.. (2 Replies)
Discussion started by: moslemovic
2 Replies

8. UNIX for Dummies Questions & Answers

Giving a name to a Terminal in "Xfce" desktop environment

Hi, I work noramly with 3/4/5 Terminals (not xterms) open. In the different Terminal I set different tools (software). Unfortunately I loose easily the overview of all these Terminals. Which setup is in which Terminal? It would be nice to have a possibility to name Termianls. By the way I work... (4 Replies)
Discussion started by: hooge789
4 Replies

9. Shell Programming and Scripting

Automating the task in two environments

Hi all, I have a task which need to be done in two test environment.both the script does the same work.i am plannig to automate that like writing a perl program to execute the script in parallel in both the test environment.i am able to call the unix script from the using in both the... (3 Replies)
Discussion started by: pals70423
3 Replies

10. Shell Programming and Scripting

Switch user terminal error

Hello All, Here I am trying to login a Linux machine as admin user from a Solaris box.. & then switch to root user.. Code I use: ssh admin@<IP> << END su - root << A echo "Hello I am logged in as root" exit A exit END But the error I get.. su: must be run from a... (3 Replies)
Discussion started by: ailnilanjan
3 Replies
DESKTOP-FILE-INSTALL(1) 				      General Commands Manual					   DESKTOP-FILE-INSTALL(1)

NAME
desktop-file-install, desktop-file-edit - Installation and edition of desktop files SYNOPSIS
desktop-file-install [--dir=DIR] [-m MODE|--mode=MODE] [--vendor=VENDOR] [--delete-original] [--rebuild-mime-info-cache] [EDITOPTION]... FILE... desktop-file-edit [EDITOPTION]... FILE DESCRIPTION
The desktop-file-install program is a tool to install, and optionally edit, desktop files. The desktop-file-edit program is a tool to edit a desktop file. They are mostly useful for developers and packagers. Various options are available to edit the desktop files. The edit options can be specified more than once and will be processed in the same order as the options passed to the program. desktop-file-install and desktop-file-edit will always try to validate the resulting desktop file. A failure to validate might lead to the abortion of the installation of the desktop files. The list of registered categories and desktop environments is defined in the Menu specification: http://freedesktop.org/wiki/Specifica- tions/menu-spec. OPTIONS
The following options are supported: --dir=DIR Install desktop files to the DIR directory. -m, --mode=MODE Set the permissions of the destination files to MODE. --vendor=VENDOR Add a vendor prefix to the desktop files. If a file already has this prefix, nothing happens; else, the file will be named VENDOR- FILE. For example: if VENDOR is freedesktop.org and FILE is specification.desktop, the result file will be freedesktop.org-specifi- cation.desktop. --delete-original Delete the source desktop files, leaving only the target files. Effectively "renames" the desktop files. --rebuild-mime-info-cache Rebuild the MIME types application database after installing the desktop files. See update-desktop-database(1) for information about this database. EDIT OPTIONS
The following edit options are supported: --set-key=KEY Set the KEY key to the value passed to the next --set-value option. A matching --set-value option is mandatory. --set-value=VALUE Set the key specified with the previous --set-key option to VALUE. A matching --set-key option is mandatory. --set-name=NAME Set the name (key Name) to NAME. If a name was already set, it will be overridden. Localizations of the old name will be removed. --copy-name-to-generic-name Copy the value of the Name key to the GenericName key. Note that a desktop file requires a Name key to be valid, so this option will always have an effect. --set-generic-name=GENERIC-NAME Set the generic name (key GenericName) to GENERIC-NAME. If a generic name was already set, it will be overridden. Localizations of the old generic name will be removed. --copy-generic-name-to-name Copy the value of the GenericName key to the Name key, if the GenericName key is present. --set-comment=COMMENT Set the comment (key Comment) to COMMENT. If a comment was already set, it will be overridden. Localizations of the old comment will be removed. --set-icon=ICON Set the icon (key Icon) to ICON. If an icon was already set, it will be overridden. Localizations of the old icon will be removed. --add-category=CATEGORY Add CATEGORY to the list of categories (key Categories). If CATEGORY was already present in the list, this operation is a no-op. A non-registered category should be prefixed with X-. --remove-category=CATEGORY Remove CATEGORY from the list of categories (key Categories). If CATEGORY was not present in the list, this operation is a no-op. --add-mime-type=MIME-TYPE Add MIME-TYPE to the list of MIME types (key MimeType). If MIME-TYPE was already present in the list, this operation is a no-op. --remove-mime-type=MIME-TYPE Remove MIME-TYPE from the list of MIME types (key MimeType). If MIME-TYPE was not present in the list, this operation is a no-op. --add-only-show-in=ENVIRONMENT Add ENVIRONMENT to the list of desktop environments where the desktop files should be displayed (key OnlyShowIn). If ENVIRONMENT was already present in the list, this operation is a no-op. A non-registered desktop environment should be prefixed with X-. Note that an empty OnlyShowIn key in a desktop file means that the desktop file will be displayed in all environments. --remove-only-show-in=ENVIRONMENT Remove ENVIRONMENT from the list of desktop environments where the desktop files should be displayed (key OnlyShowIn). If ENVIRON- MENT was not present in the list, this operation is a no-op. --add-not-show-in=ENVIRONMENT Add ENVIRONMENT to the list of desktop environments where the desktop files should not be displayed (key NotShowIn). If ENVIRONMENT was already present in the list, this operation is a no-op. A non-registered desktop environment should be prefixed with X-. Note that an empty NotShowIn key in a desktop file means that the desktop file will be displayed in all environments. --remove-not-show-in=ENVIRONMENT Remove ENVIRONMENT from the list of desktop environments where the desktop files should not be displayed (key NotShowIn). If ENVI- RONMENT was not present in the list, this operation is a no-op. --remove-key=KEY Remove the KEY key from the desktop files, if present. ENVIRONMENT
Some environment variables change the behavior of desktop-file-install: DESKTOP_FILE_VENDOR This variable can be used as an alternative to the --vendor option. If the --vendor option is used, this environment variable will be ignored. DESKTOP_FILE_INSTALL_DIR This variable can be used as an alternative to the --dir option. If the --dir option is used, this environment variable will be ignored. RPM_BUILD_ROOT This variable is set when building RPM packages. If the --dir option and the DESKTOP_FILE_INSTALL_DIR environment variable are not used, it will automatically be prepended to the default install directory to install the desktop files appropriately when building packages. BUGS
If you find bugs in the desktop-file-install program, please report these on https://bugs.freedesktop.org. SEE ALSO
desktop-file-validate(1) update-desktop-database(1) FREEDESKTOP.ORG DESKTOP-FILE-INSTALL(1)
All times are GMT -4. The time now is 05:33 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy